wok-next view cyrus-sasl/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | b8b371b1b165 |
children | 0e7893ac206d |
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-without-ldap libsasl-modules cyrus-sasl cyrus-sasl-pam \
16 cyrus-sasl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 autoreconf -fi || return 1
23 mkdir -p $src/saslauthd/cmulocal
24 cp -a $src $src-pam
25 cp -a $src $src-without-ldap
27 ./configure \
28 --sysconfdir=/etc \
29 --enable-auth-sasldb \
30 --with-dbpath=/var/lib/sasl/sasldb2 \
31 --with-saslauthd=/var/run/saslauthd \
32 --without-pam \
33 --with-devrandom=/dev/urandom \
34 --with-ldap \
35 --with-openssl \
36 $CONFIGURE_ARGS &&
37 make && make install || return 1
39 cd $src-pam
40 ./configure \
41 --sysconfdir=/etc \
42 --enable-auth-sasldb \
43 --with-dbpath=/var/lib/sasl/sasldb2 \
44 --with-saslauthd=/var/run/saslauthd \
45 --with-pam \
46 --with-devrandom=/dev/urandom \
47 --with-ldap \
48 --with-openssl \
49 $CONFIGURE_ARGS &&
50 make && make DESTDIR=$DESTDIR-pam install || return 1
52 for inst in $install $install-pam; do
53 docdir="$inst/usr/share/doc/cyrus-sasl-$VERSION"
54 mkdir -p $docdir &&
55 cd $src/doc &&
56 cp *.html *.txt ONEWS TODO ../saslauthd/LDAP_SASLAUTHD $docdir &&
57 cp -a $stuff/etc $inst &&
58 chown -R root:root $inst/etc
59 done
61 cd $src-without-ldap
62 ./configure \
63 --prefix=/usr \
64 --infodir=/usr/share/info \
65 --without-pam \
66 --disable-anon \
67 --disable-cram \
68 --disable-digest \
69 --disable-gssapi \
70 --enable-login \
71 --disable-otp \
72 --enable-plain \
73 --with-openssl \
74 --with-devrandom=/dev/urandom \
75 --mandir=/usr/share/man $CONFIGURE_ARGS &&
76 make && make DESTDIR=$DESTDIR-without-ldap install
77 }
79 # Rules to gen a SliTaz package suitable for Tazpkg.
80 genpkg_rules()
81 {
82 case $PACKAGE in
83 libsasl)
84 copy libsasl2*.so*
85 CAT="system-tools|library"
86 DEPENDS=" "
87 ;;
88 libsasl-without-ldap)
89 install=$install-without-ldap copy libsasl2*.so*
90 CAT="system-tools|library"
91 DEPENDS=" "
92 ;;
93 libsasl-modules)
94 copy sasl2/*.so*
95 CAT="system-tools|library modules"
96 PROVIDE="libsasl-without-ldap"
97 DEPENDS="libcomerr3 libcrypto libdb libkrb5"
98 ;;
99 cyrus-sasl)
100 copy @std
101 remove_already_packed
102 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
103 libsasl libsasl-modules libssl"
104 ;;
105 cyrus-sasl-pam)
106 install=$install-pam copy @std
107 rm -rf $fs/usr/lib
108 CAT="network|using PAM"
109 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
110 libsasl libsasl-modules libssl pam"
111 ;;
112 *-dev)
113 copy @dev
114 DEPENDS="db-dev krb5-dev libcrypto-dev"
115 ;;
116 esac
117 }
119 post_install_cyrus_sasl() {
120 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
121 }
123 post_install_cyrus_sasl_pam() {
124 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
125 }