# SliTaz package receipt. PACKAGE="cyrus-sasl" VERSION="2.1.28" CATEGORY="network" SHORT_DESC="SASL authentication server." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="BSD" WEB_SITE="https://www.cyrusimap.org/sasl" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/cyrusimap/cyrus-sasl/archive/$TARBALL" DEPENDS="libcomerr3 libdb libldap libsasl libsasl-modules openssl" BUILD_DEPENDS="automake autoconf m4 libtool groff db-dev \ openldap-dev openssl-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/cyrusimap/cyrus-sasl/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # patch -Np1 -i $stuff/0027_db5_support.patch ./autogen.sh ./configure \ --with-ldap=/usr \ --with-openssl=/usr \ --without-pam \ --with-devrandom=/dev/urandom \ $CONFIGURE_ARGS sed -i 's/WITH_DES/WITH_DES 1/' config.h make -j 1 && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/sasl2 mkdir -p $fs/var/state/saslauthd cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 cp -a $stuff/etc $fs cat $stuff/*.files-list | while read file; do rm -rf $fs$file done }