wok-next view cyrus-sasl/receipt @ rev 20513

A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 15:58:17 2018 +0200 (2018-03-21)
parents 0e7893ac206d
children 555cf3b9f1ff
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cyrus-sasl"
4 VERSION="2.1.26"
5 CATEGORY="network"
6 SHORT_DESC="SASL authentication server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://cyrusimap.web.cmu.edu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.cyrusimap.org/cyrus-sasl/$TARBALL"
14 BUILD_DEPENDS="automake libtool openldap-dev db-dev openssl-dev krb5-dev pam-dev"
15 SPLIT="libsasl libsasl-modules cyrus-sasl cyrus-sasl-dev \
16 cyrus-sasl-pam:pam libsasl-without-ldap:wo"
18 compile_rules() {
19 autoreconf -fi || return 1
21 mkdir -p $src/saslauthd/cmulocal
23 case "$SET" in
24 '') SET_ARGS='--enable-auth-sasldb --without-pam --with-ldap';;
25 pam) SET_ARGS='--enable-auth-sasldb --with-pam --with-ldap';;
26 wo) SET_ARGS="--without-pam --disable-anon --disable-cram \
27 --disable-digest --disable-gssapi --enable-login --disable-otp \
28 --enable-plain";;
29 esac
31 ./configure \
32 --sysconfdir=/etc \
33 --with-dbpath=/var/lib/sasl/sasldb2 \
34 --with-saslauthd=/var/run/saslauthd \
35 --with-devrandom=/dev/urandom \
36 --with-openssl \
37 $SET_ARGS \
38 $CONFIGURE_ARGS &&
39 make && make install || return 1
41 cp -a $stuff/etc $install
42 chown -R root:root $inst/etc
44 cook_pick_docs doc/*.html doc/*.txt doc/ONEWS doc/TODO \
45 saslauthd/LDAP_SASLAUTHD
46 }
48 genpkg_rules() {
49 case $PACKAGE in
50 libsasl)
51 copy libsasl2*.so*
52 CAT="system-tools|library"
53 DEPENDS=" "
54 ;;
55 libsasl-modules)
56 copy sasl2/*.so*
57 CAT="system-tools|library modules"
58 PROVIDE="libsasl-without-ldap"
59 DEPENDS="libcomerr3 openssl libdb libkrb5"
60 ;;
61 cyrus-sasl)
62 copy @std @rm
63 DEPENDS="libcomerr3 openssl libdb libkrb5 libldap \
64 libsasl libsasl-modules"
65 ;;
66 *-dev)
67 copy @dev
68 DEPENDS="db-dev krb5-dev openssl-dev"
69 ;;
70 cyrus-sasl-pam)
71 copy @std
72 rm -rf $fs/usr/lib
73 CAT="network|using PAM"
74 DEPENDS="libcomerr3 openssl libdb libkrb5 libldap \
75 libsasl libsasl-modules pam"
76 ;;
77 libsasl-without-ldap)
78 copy libsasl2*.so*
79 CAT="system-tools|library"
80 DEPENDS=" "
81 ;;
82 esac
83 }
85 post_install_cyrus_sasl() {
86 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
87 }
89 post_install_cyrus_sasl_pam() {
90 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
91 }