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

updated scrollz again (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 16:09:40 2019 +0100 (2019-10-03)
parents d5aab818505e
children
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 COOKOPTS="force-arch" # different .h, .pc
16 BUILD_DEPENDS="automake libtool openldap-dev db-dev openssl-dev krb5-dev pam-dev"
17 SPLIT="libsasl libsasl-modules $PACKAGE $PACKAGE-dev \
18 $PACKAGE-pam:pam libsasl-without-ldap:wo"
20 compile_rules() {
21 autoreconf -fi || return 1
23 mkdir -p $src/saslauthd/cmulocal
25 case "$SET" in
26 '') SET_ARGS='--enable-auth-sasldb --without-pam --with-ldap';;
27 pam) SET_ARGS='--enable-auth-sasldb --with-pam --with-ldap';;
28 wo) SET_ARGS="--without-pam --disable-anon --disable-cram \
29 --disable-digest --disable-gssapi --enable-login --disable-otp \
30 --enable-plain";;
31 esac
33 ./configure \
34 --with-dbpath=/var/lib/sasl/sasldb2 \
35 --with-saslauthd=/var/run/saslauthd \
36 --with-devrandom=/dev/urandom \
37 --with-openssl \
38 $SET_ARGS \
39 $CONFIGURE_ARGS &&
40 fix libtool &&
41 make &&
42 make install || return 1
44 install -Dm755 $stuff/etc/init.d/cyrus-sasl $install/etc/init.d/cyrus-sasl
46 cook_pick_docs doc/*.html doc/*.txt doc/ONEWS doc/TODO \
47 saslauthd/LDAP_SASLAUTHD
48 }
50 genpkg_rules() {
51 case $PACKAGE in
52 libsasl)
53 copy libsasl2*.so*
54 CAT="system-tools|library"
55 DEPENDS=" "
56 ;;
57 libsasl-modules)
58 copy sasl2/*.so*
59 CAT="system-tools|library modules"
60 PROVIDE="libsasl-without-ldap"
61 DEPENDS="libcomerr3 openssl libdb libkrb5"
62 ;;
63 cyrus-sasl)
64 copy @std @rm
65 DEPENDS="libcomerr3 openssl libdb libkrb5 libldap \
66 libsasl libsasl-modules"
67 ;;
68 *-dev)
69 copy @dev
70 DEPENDS="db-dev krb5-dev openssl-dev"
71 ;;
72 cyrus-sasl-pam)
73 copy @std
74 rm -rf $fs/usr/lib
75 CAT="network|using PAM"
76 DEPENDS="libcomerr3 openssl libdb libkrb5 libldap \
77 libsasl libsasl-modules pam"
78 ;;
79 libsasl-without-ldap)
80 copy libsasl2*.so*
81 CAT="system-tools|library"
82 DEPENDS=" "
83 ;;
84 esac
85 }
87 post_install_cyrus_sasl() {
88 [ -d "$1/var/lib/sasl" ] || install -dm700 "$1/var/lib/sasl"
89 }
91 post_install_cyrus_sasl_pam() {
92 [ -d "$1/var/lib/sasl" ] || install -dm700 "$1/var/lib/sasl"
93 }