X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/544181cd4fe22c3696af5d5d7d97a920dbc279c6..f9fc47c910efe5e213928dfb67b4fea07b50f36e:/packages/libsasl/build.sh diff --git a/packages/libsasl/build.sh b/packages/libsasl/build.sh index e53c06d3..09029d94 100644 --- a/packages/libsasl/build.sh +++ b/packages/libsasl/build.sh @@ -1,20 +1,36 @@ -TERMUX_PKG_HOMEPAGE=http://asg.web.cmu.edu/sasl/ +TERMUX_PKG_HOMEPAGE=https://www.cyrusimap.org/sasl/ TERMUX_PKG_DESCRIPTION="Cyrus SASL - authentication abstraction library" TERMUX_PKG_VERSION=2.1.26 -TERMUX_PKG_SRCURL=ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_REVISION=2 +TERMUX_PKG_SRCURL=https://cyrusimap.org/releases/cyrus-sasl-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3 # Seems to be race issues in build (symlink creation):: TERMUX_MAKE_PROCESSES=1 -TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" ac_cv_func_syslog=no ac_cv_header_syslog_h=no" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --without-des --disable-otp" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-plugindir=$TERMUX_PREFIX/lib/sasl2 --sysconfdir=$TERMUX_PREFIX/etc" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-dblib=none" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-dbpath=$TERMUX_PREFIX/var/lib/sasldb --with-saslauthd=$TERMUX_PREFIX/var/run/saslauthd" -TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --without-saslauthd" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +ac_cv_func_syslog=no +ac_cv_header_syslog_h=no +--disable-gssapi +--disable-otp +--sysconfdir=$TERMUX_PREFIX/etc +--with-dblib=none +--with-dbpath=$TERMUX_PREFIX/var/lib/sasldb +--without-des +--without-saslauthd +--with-plugindir=$TERMUX_PREFIX/lib/sasl2 +" TERMUX_PKG_RM_AFTER_INSTALL="bin/pluginviewer" termux_step_post_configure () { # Build wants to run makemd5 at build time: gcc $TERMUX_PKG_SRCDIR/include/makemd5.c -o $TERMUX_PKG_BUILDDIR/include/makemd5 - $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_BUILDDIR/include/makemd5 + touch -d "next hour" $TERMUX_PKG_BUILDDIR/include/makemd5 +} + +termux_step_post_massage () { + for sub in anonymous crammd5 digestmd5 plain; do + local base=lib/sasl2/lib${sub} + if [ ! -L ${base}.so ] || [ ! -L ${base}.so.3 ] || [ ! -f ${base}.so.3.0.0 ] ; then + termux_error_exit "libsasl not packaged with $base" + fi + done }