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

bleachbit: up (2.0); fbxkb and foobillardplus: fix build; add jdupes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 02 15:13:13 2018 +0300 (2018-07-02)
parents 757d032c55c7
children d5aab818505e
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 --with-dbpath=/var/lib/sasl/sasldb2 \
33 --with-saslauthd=/var/run/saslauthd \
34 --with-devrandom=/dev/urandom \
35 --with-openssl \
36 $SET_ARGS \
37 $CONFIGURE_ARGS &&
38 fix libtool &&
39 make &&
40 make install || return 1
42 install -Dm755 $stuff/etc/init.d/cyrus-sasl $install/etc/init.d/cyrus-sasl
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 -dm700 "$1/var/lib/sasl"
87 }
89 post_install_cyrus_sasl_pam() {
90 [ -d "$1/var/lib/sasl" ] || install -dm700 "$1/var/lib/sasl"
91 }