wok-next diff cyrus-sasl/receipt @ rev 19925

libftdi: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 23:27:36 2017 +0200 (2017-10-14)
parents eb8067417980
children d2dfaae2aa88
line diff
     1.1 --- a/cyrus-sasl/receipt	Sat Nov 30 10:06:29 2013 +0000
     1.2 +++ b/cyrus-sasl/receipt	Sat Oct 14 23:27:36 2017 +0200
     1.3 @@ -1,43 +1,75 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="cyrus-sasl"
     1.8 -VERSION="2.1.23"
     1.9 +VERSION="2.1.26"
    1.10  CATEGORY="network"
    1.11 -SHORT_DESC="SASL authentication server."
    1.12 +SHORT_DESC="SASL authentication server"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="BSD"
    1.15 +WEB_SITE="http://cyrusimap.web.cmu.edu/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://cyrusimap.web.cmu.edu/"
    1.19 -WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL"
    1.20 +WGET_URL="ftp://ftp.cyrusimap.org/cyrus-sasl/$TARBALL"
    1.21  
    1.22 -DEPENDS="libldap openssl libdb libsasl libsasl-modules libcomerr3"
    1.23 -BUILD_DEPENDS="openldap-dev db-dev openssl-dev"
    1.24 +BUILD_DEPENDS="automake libtool openldap-dev db-dev openssl-dev krb5-dev"
    1.25 +SPLIT="libsasl libsasl-modules cyrus-sasl cyrus-sasl-dev"
    1.26 +SIBLINGS="cyrus-sasl-pam libsasl-without-ldap"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	cd $src
    1.32 -	patch -Np1 -i $stuff/0027_db5_support.patch
    1.33 +	autoreconf -fi &&
    1.34 +
    1.35  	./configure \
    1.36 -		--with-ldap=/usr \
    1.37 -		--with-openssl=/usr \
    1.38 +		--sysconfdir=/etc \
    1.39 +		--enable-auth-sasldb \
    1.40 +		--with-dbpath=/var/lib/sasl/sasldb2 \
    1.41 +		--with-saslauthd=/var/run/saslauthd \
    1.42  		--without-pam \
    1.43  		--with-devrandom=/dev/urandom \
    1.44 -		$CONFIGURE_ARGS
    1.45 -	sed -i 's/WITH_DES/WITH_DES 1/' config.h
    1.46 -	make -j 1 && make install
    1.47 +		--with-ldap \
    1.48 +		--with-openssl \
    1.49 +		$CONFIGURE_ARGS &&
    1.50 +	mkdir -p $src/saslauthd/cmulocal &&
    1.51 +	make && make install &&
    1.52 +
    1.53 +	docdir="$install/usr/share/doc/cyrus-sasl-$VERSION"
    1.54 +	mkdir -p $docdir &&
    1.55 +	cd $src/doc &&
    1.56 +	cp *.html *.txt ONEWS TODO ../saslauthd/LDAP_SASLAUTHD $docdir &&
    1.57 +
    1.58 +	cp -a $stuff/etc $install &&
    1.59 +	chown -R root:root $install/etc
    1.60  }
    1.61  
    1.62  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.63  genpkg_rules()
    1.64  {
    1.65 -	mkdir -p $fs/usr/lib/sasl2 $fs/var/state/saslauthd
    1.66 -	cp -a $install/usr/sbin $fs/usr
    1.67 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.68 -	cp -a $install/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2
    1.69 -	cp -a $stuff/etc $fs
    1.70 -	
    1.71 -	cat $stuff/*.files-list | while read file; do
    1.72 -		rm -rf $fs$file
    1.73 -	done
    1.74 +	case $PACKAGE in
    1.75 +		libsasl)
    1.76 +			copy libsasl2*.so*
    1.77 +			CAT="system-tools|library"
    1.78 +			DEPENDS=" "
    1.79 +			;;
    1.80 +		libsasl-modules)
    1.81 +			copy sasl2/*.so*
    1.82 +			CAT="system-tools|library modules"
    1.83 +			PROVIDE="libsasl-without-ldap"
    1.84 +			DEPENDS="libcomerr3 libcrypto libdb libkrb5"
    1.85 +			;;
    1.86 +		cyrus-sasl)
    1.87 +			copy @std
    1.88 +			remove_already_packed
    1.89 +			DEPENDS="libcomerr3 libcrypto libdb libkrb5 libldap libsasl \
    1.90 +			libsasl-modules libssl"
    1.91 +			;;
    1.92 +		*-dev)
    1.93 +			copy @dev
    1.94 +			DEPENDS="db-dev krb5-dev libcrypto-dev"
    1.95 +			;;
    1.96 +	esac
    1.97  }
    1.98 +
    1.99 +post_install_cyrus_sasl() {
   1.100 +	[ -d "$1/var/lib/sasl" ] || install -v -dm700 "$1/var/lib/sasl"
   1.101 +}