2010-04-18 17:48:17 +02:00
|
|
|
# Template file for 'cyrus-sasl'
|
|
|
|
pkgname=cyrus-sasl
|
2014-07-25 16:30:19 +02:00
|
|
|
version=2.1.26
|
2015-06-02 11:43:17 +02:00
|
|
|
revision=5
|
2015-02-23 09:42:14 +01:00
|
|
|
patch_args="-Np1"
|
|
|
|
build_options="systemd"
|
|
|
|
hostmakedepends="automake libtool groff pkg-config"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libsasl-devel libressl-devel db-devel libldap-devel
|
2015-02-23 09:42:14 +01:00
|
|
|
mit-krb5-devel pam-devel sqlite-devel postgresql-libs-devel
|
2015-03-27 10:50:40 +01:00
|
|
|
libmysqlclient-devel"
|
2015-02-23 09:42:14 +01:00
|
|
|
depends="libsasl>=${version}"
|
2010-04-18 17:48:17 +02:00
|
|
|
short_desc="Cyrus SASL - auth daemon and administration tools"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-08-02 10:21:59 +02:00
|
|
|
homepage="http://cyrusimap.web.cmu.edu/"
|
|
|
|
license="BSD"
|
2014-07-25 16:30:19 +02:00
|
|
|
distfiles="ftp://ftp.cyrusimap.org/cyrus-sasl/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2014-07-25 16:30:19 +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
|
|
|
|
}
|
2012-08-02 10:21:59 +02:00
|
|
|
do_configure() {
|
2014-07-25 16:30:19 +02:00
|
|
|
export CFLAGS+=" -fPIC"
|
2015-06-02 11:43:17 +02:00
|
|
|
LIBS=-lsasl2 ./configure ${configure_args} \
|
|
|
|
--sbindir=/usr/bin --disable-static --enable-shared \
|
2012-08-02 10:21:59 +02:00
|
|
|
--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 \
|
2014-07-25 16:30:19 +02:00
|
|
|
--with-saslauthd=/run/saslauthd --with-ldap \
|
2012-08-02 10:21:59 +02:00
|
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
|
2014-07-25 16:30:19 +02:00
|
|
|
--with-devrandom=/dev/urandom
|
2012-08-02 10:21:59 +02:00
|
|
|
}
|
|
|
|
do_build() {
|
2014-07-16 00:17:21 +02:00
|
|
|
make
|
2012-08-02 10:21:59 +02:00
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2013-04-09 11:42:41 +02:00
|
|
|
# Remove libsasl{,-devel} files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libsasl*
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man/man3
|
2014-11-11 18:12:14 +01:00
|
|
|
rm ${DESTDIR}/usr/lib/pkgconfig/libsasl2.pc
|
2013-04-09 11:42:41 +02:00
|
|
|
|
2011-10-11 03:38:24 +02:00
|
|
|
# systemd
|
2015-02-23 09:42:14 +01:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/saslauthd.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/saslauthd.tmpfiles.d 644 usr/lib/tmpfiles.d saslauthd.conf
|
|
|
|
fi
|
2012-08-02 10:21:59 +02:00
|
|
|
|
2015-02-23 09:42:14 +01:00
|
|
|
vlicense COPYING LICENSE
|
2010-04-18 17:48:17 +02:00
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
cyrus-sasl-modules-ldap_package() {
|
|
|
|
depends="cyrus-sasl>=${version}_${revision}"
|
|
|
|
short_desc="Cyrus SASL - pluggable authentication modules (LDAP)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/sasl2/libldapdb.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cyrus-sasl-modules-sql_package() {
|
|
|
|
depends="cyrus-sasl>=${version}_${revision}"
|
|
|
|
short_desc="Cyrus SASL - pluggable authentication modules (SQL)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/sasl2/libsql.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cyrus-sasl-modules-gssapi_package() {
|
|
|
|
depends="cyrus-sasl>=${version}_${revision}"
|
|
|
|
short_desc="Cyrus SASL - pluggable authentication modules (GSSAPI)"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/sasl2/libgssapi*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cyrus-sasl-modules_package() {
|
|
|
|
depends="cyrus-sasl>=${version}_${revision}"
|
|
|
|
short_desc="Cyrus SASL - pluggable authentication modules"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/sasl2
|
|
|
|
}
|
|
|
|
}
|