2013-04-09 09:42:41 +00:00
|
|
|
# Template file for 'libsasl'
|
|
|
|
pkgname=libsasl
|
2014-07-25 13:39:08 +00:00
|
|
|
version=2.1.26
|
|
|
|
revision=1
|
2013-04-09 09:42:41 +00:00
|
|
|
build_style=gnu-configure
|
2013-04-22 09:02:02 +00: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 14:15:10 +00:00
|
|
|
--disable-otp --disable-srp --disable-srp-setpass --disable-krb4
|
|
|
|
--with-devrandom=/dev/urandom"
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2014-07-15 22:10:40 +00:00
|
|
|
makedepends="db-devel>=5.3 mit-krb5-devel"
|
2013-04-09 09:42:41 +00: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 13:39:08 +00:00
|
|
|
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-${version}.tar.gz"
|
|
|
|
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
|
2013-04-09 09:42:41 +00:00
|
|
|
|
2014-07-25 14:15:10 +00:00
|
|
|
patch_args="-Np1"
|
2013-04-09 09:42:41 +00:00
|
|
|
disable_parallel_build=yes
|
|
|
|
|
2014-07-25 14:15:10 +00: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 09:42:41 +00:00
|
|
|
post_install() {
|
|
|
|
# We are only interested in libsasl.
|
|
|
|
rm -rf ${DESTDIR}/usr/{sbin,share,lib/sasl2}
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libsasl-devel_package() {
|
2014-07-25 13:39:08 +00:00
|
|
|
depends="libsasl>=${version}_${revision}"
|
2013-05-09 14:26:34 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2014-02-20 17:45:00 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2014-07-25 13:39:08 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|