2013-04-09 11:42:41 +02:00
|
|
|
# Template file for 'libsasl'
|
|
|
|
pkgname=libsasl
|
2014-07-25 15:39:08 +02:00
|
|
|
version=2.1.26
|
|
|
|
revision=1
|
2013-04-09 11:42:41 +02:00
|
|
|
build_style=gnu-configure
|
2013-04-22 11:02:02 +02:00
|
|
|
configure_args="--enable-cram --enable-digest --enable-auth-sasldb
|
|
|
|
--enable-plain --enable-anon --enable-login --enable-gssapi --enable-ntlm
|
|
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
|
2014-07-25 16:15:10 +02:00
|
|
|
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
|
|
|
|
--with-devrandom=/dev/urandom"
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2014-07-16 00:10:40 +02:00
|
|
|
makedepends="db-devel>=5.3 mit-krb5-devel"
|
2013-04-09 11:42:41 +02:00
|
|
|
wrksrc="cyrus-sasl-${version}"
|
|
|
|
short_desc="Cyrus SASL - runtime shared libraries"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://cyrusimap.web.cmu.edu/"
|
|
|
|
license="BSD"
|
2014-07-25 15:39:08 +02:00
|
|
|
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${version}.tar.gz"
|
|
|
|
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
|
2013-04-09 11:42:41 +02:00
|
|
|
|
2014-07-25 16:15:10 +02:00
|
|
|
patch_args="-Np1"
|
2013-04-09 11:42:41 +02:00
|
|
|
disable_parallel_build=yes
|
|
|
|
|
2014-07-25 16:15:10 +02:00
|
|
|
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
|
|
|
|
}
|
2013-04-09 11:42:41 +02:00
|
|
|
post_install() {
|
|
|
|
# We are only interested in libsasl.
|
|
|
|
rm -rf ${DESTDIR}/usr/{sbin,share,lib/sasl2}
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libsasl-devel_package() {
|
2014-07-25 15:39:08 +02:00
|
|
|
depends="libsasl>=${version}_${revision}"
|
2013-05-09 16:26:34 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-02-20 18:45:00 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2014-07-25 15:39:08 +02:00
|
|
|
vmove usr/lib/pkgconfig
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|