cyrus-sasl: update to 2.1.27.

This commit is contained in:
Christian Buschau 2019-01-14 17:48:08 +01:00 committed by maxice8
parent 30746ac99d
commit 1287750d92

View file

@ -1,8 +1,16 @@
# Template file for 'cyrus-sasl'
pkgname=cyrus-sasl
version=2.1.26
revision=14
patch_args="-Np1"
version=2.1.27
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-shared --enable-checkapop
--enable-cram --enable-digest --disable-otp --disable-srp
--disable-srp-setpass --disable-krb4 --enable-gssapi --enable-auth-sasldb
--enable-plain --enable-anon --enable-login --enable-ntlm --disable-passdss
--enable-sql --enable-ldapdb --disable-macos-framework --with-pam
--with-saslauthd=/run/saslauthd --with-ldap --with-devrandom=/dev/urandom
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
--with-mysql=${XBPS_CROSS_BASE}/usr"
hostmakedepends="automake libtool groff pkg-config"
makedepends="libsasl-devel libressl-devel db-devel libldap-devel
mit-krb5-devel pam-devel sqlite-devel postgresql-libs-devel
@ -10,55 +18,17 @@ makedepends="libsasl-devel libressl-devel db-devel libldap-devel
depends="libsasl>=${version}"
short_desc="Cyrus SASL - auth daemon and administration tools"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="http://cyrusimap.web.cmu.edu/"
license="BSD"
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/${pkgname}-${version}.tar.gz"
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
license="BSD-3-Clause-Attribution"
homepage="https://www.cyrusimap.org/sasl/"
distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
patch_args="-Np1"
pre_configure() {
# XXX
if [ "$CROSS_BUILD" ]; then
sed 's,AC_TRY_RUN,AC_TRY_LINK_FUNC,' -i cmulocal/sasl2.m4
fi
rm -f config/config.guess config/config.sub
rm -f config/ltconfig config/ltmain.sh config/libtool.m4
rm -fr autom4te.cache
libtoolize -c
aclocal -I config -I cmulocal
automake -a -c
autoheader
autoconf
pushd saslauthd
rm -f config/config.guess config/config.sub
rm -f config/ltconfig config/ltmain.sh config/libtool.m4
rm -fr autom4te.cache
libtoolize -c
aclocal -I config -I ../cmulocal -I ../config
automake -a -c
autoheader
autoconf
popd
}
do_configure() {
LIBS=-lsasl2 ./configure ${configure_args} \
--sbindir=/usr/bin --disable-static --enable-shared \
--enable-alwaystrue --enable-checkapop --enable-cram \
--enable-digest --disable-otp --disable-srp \
--disable-srp-setpass --disable-krb4 --enable-gssapi \
--enable-auth-sasldb --enable-plain --enable-anon \
--enable-login --enable-ntlm --disable-passdss --enable-sql \
--enable-ldapdb --disable-macos-framework --with-pam \
--with-saslauthd=/run/saslauthd --with-ldap \
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
--with-devrandom=/dev/urandom
}
do_build() {
make
}
do_install() {
make DESTDIR=${DESTDIR} install
autoreconf -fi
}
post_install() {
# Remove libsasl{,-devel} files.
rm -rf ${DESTDIR}/usr/include
rm -f ${DESTDIR}/usr/lib/libsasl*
@ -75,6 +45,7 @@ cyrus-sasl-modules-ldap_package() {
vmove "usr/lib/sasl2/libldapdb.*"
}
}
cyrus-sasl-modules-sql_package() {
depends="cyrus-sasl>=${version}_${revision}"
short_desc="Cyrus SASL - pluggable authentication modules (SQL)"
@ -82,6 +53,7 @@ cyrus-sasl-modules-sql_package() {
vmove "usr/lib/sasl2/libsql.*"
}
}
cyrus-sasl-modules-gssapi_package() {
depends="cyrus-sasl>=${version}_${revision}"
short_desc="Cyrus SASL - pluggable authentication modules (GSSAPI)"
@ -89,6 +61,7 @@ cyrus-sasl-modules-gssapi_package() {
vmove "usr/lib/sasl2/libgssapi*"
}
}
cyrus-sasl-modules_package() {
depends="cyrus-sasl>=${version}_${revision}"
short_desc="Cyrus SASL - pluggable authentication modules"