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

cyrus-sasl: typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 15:05:48 2017 +0100 (2017-11-08)
parents d2dfaae2aa88
children b8b371b1b165
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 &&
23 cp -a $src $src-pam
24 cp -a $src $src-without-ldap
26 ./configure \
27 --sysconfdir=/etc \
28 --enable-auth-sasldb \
29 --with-dbpath=/var/lib/sasl/sasldb2 \
30 --with-saslauthd=/var/run/saslauthd \
31 --without-pam \
32 --with-devrandom=/dev/urandom \
33 --with-ldap \
34 --with-openssl \
35 $CONFIGURE_ARGS &&
36 mkdir -p saslauthd/cmulocal &&
37 make && make install &&
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 mkdir -p saslauthd/cmulocal &&
51 make && make DESTDIR=$DESTDIR-pam install &&
53 for inst in $install $install-pam; do
54 docdir="$inst/usr/share/doc/cyrus-sasl-$VERSION"
55 mkdir -p $docdir &&
56 cd $src/doc &&
57 cp *.html *.txt ONEWS TODO ../saslauthd/LDAP_SASLAUTHD $docdir &&
58 cp -a $stuff/etc $inst &&
59 chown -R root:root $inst/etc
60 done
62 cd $src-without-ldap
63 ./configure \
64 --prefix=/usr \
65 --infodir=/usr/share/info \
66 --without-pam \
67 --disable-anon \
68 --disable-cram \
69 --disable-digest \
70 --disable-gssapi \
71 --enable-login \
72 --disable-otp \
73 --enable-plain \
74 --with-openssl \
75 --with-devrandom=/dev/urandom \
76 --mandir=/usr/share/man $CONFIGURE_ARGS &&
77 make && make DESTDIR=$DESTDIR-without-ldap install
78 }
80 # Rules to gen a SliTaz package suitable for Tazpkg.
81 genpkg_rules()
82 {
83 case $PACKAGE in
84 libsasl)
85 copy libsasl2*.so*
86 CAT="system-tools|library"
87 DEPENDS=" "
88 ;;
89 libsasl-without-ldap)
90 install=$install-without-ldap copy libsasl2*.so*
91 CAT="system-tools|library"
92 DEPENDS=" "
93 ;;
94 libsasl-modules)
95 copy sasl2/*.so*
96 CAT="system-tools|library modules"
97 PROVIDE="libsasl-without-ldap"
98 DEPENDS="libcomerr3 libcrypto libdb libkrb5"
99 ;;
100 cyrus-sasl)
101 copy @std
102 remove_already_packed
103 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
104 libsasl libsasl-modules libssl"
105 ;;
106 cyrus-sasl-pam)
107 install=$install-pam copy @std
108 rm -rf $fs/usr/lib
109 CAT="network|using PAM"
110 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
111 libsasl libsasl-modules libssl pam"
112 ;;
113 *-dev)
114 copy @dev
115 DEPENDS="db-dev krb5-dev libcrypto-dev"
116 ;;
117 esac
118 }
120 post_install_cyrus_sasl() {
121 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
122 }
124 post_install_cyrus_sasl_pam() {
125 [ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
126 }