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

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents d3adbeea3a9f
children e6615350078d
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 libcrypto libdb libkrb5"
60 ;;
61 cyrus-sasl)
62 copy @std @rm
63 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
64 libsasl libsasl-modules libssl"
65 ;;
66 *-dev)
67 copy @dev
68 DEPENDS="db-dev krb5-dev libcrypto-dev"
69 ;;
70 cyrus-sasl-pam)
71 copy @std
72 rm -rf $fs/usr/lib
73 CAT="network|using PAM"
74 DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap \
75 libsasl libsasl-modules libssl 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 }