| 1 | TERMUX_PKG_HOMEPAGE=http://asg.web.cmu.edu/sasl/ |
| 2 | TERMUX_PKG_DESCRIPTION="Cyrus SASL - authentication abstraction library" |
| 3 | TERMUX_PKG_VERSION=2.1.26 |
| 4 | TERMUX_PKG_REVISION=2 |
| 5 | TERMUX_PKG_SRCURL=ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${TERMUX_PKG_VERSION}.tar.gz |
| 6 | TERMUX_PKG_SHA256=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3 |
| 7 | # Seems to be race issues in build (symlink creation):: |
| 8 | TERMUX_MAKE_PROCESSES=1 |
| 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 10 | ac_cv_func_syslog=no |
| 11 | ac_cv_header_syslog_h=no |
| 12 | --disable-gssapi |
| 13 | --disable-otp |
| 14 | --sysconfdir=$TERMUX_PREFIX/etc |
| 15 | --with-dblib=none |
| 16 | --with-dbpath=$TERMUX_PREFIX/var/lib/sasldb |
| 17 | --without-des |
| 18 | --without-saslauthd |
| 19 | --with-plugindir=$TERMUX_PREFIX/lib/sasl2 |
| 20 | " |
| 21 | TERMUX_PKG_RM_AFTER_INSTALL="bin/pluginviewer" |
| 22 | |
| 23 | termux_step_post_configure () { |
| 24 | # Build wants to run makemd5 at build time: |
| 25 | gcc $TERMUX_PKG_SRCDIR/include/makemd5.c -o $TERMUX_PKG_BUILDDIR/include/makemd5 |
| 26 | touch -d "next hour" $TERMUX_PKG_BUILDDIR/include/makemd5 |
| 27 | } |
| 28 | |
| 29 | termux_step_post_massage () { |
| 30 | for sub in anonymous crammd5 digestmd5 plain; do |
| 31 | local base=lib/sasl2/lib${sub} |
| 32 | if [ ! -L ${base}.so ] || [ ! -L ${base}.so.3 ] || [ ! -f ${base}.so.3.0.0 ] ; then |
| 33 | termux_error_exit "libsasl not packaged with $base" |
| 34 | fi |
| 35 | done |
| 36 | } |