2010-04-18 17:48:17 +02:00
|
|
|
# Template file for 'cyrus-sasl'
|
|
|
|
pkgname=cyrus-sasl
|
2012-08-02 10:21:59 +02:00
|
|
|
version=2.1.23
|
2012-12-14 15:49:34 +01:00
|
|
|
revision=11
|
2012-08-02 10:21:59 +02:00
|
|
|
wrksrc="cyrus-sasl-${version}"
|
|
|
|
patch_args="-Np1"
|
|
|
|
makedepends="automake libldap-devel mit-krb5-devel e2fsprogs-devel pam-devel
|
2012-12-14 15:49:34 +01:00
|
|
|
openssl-devel postgresql-libs-devel libmysqlclient-devel>=5.5.27 db-devel
|
|
|
|
sqlite-devel groff"
|
2010-04-18 17:48:17 +02:00
|
|
|
short_desc="Cyrus SASL - auth daemon and administration tools"
|
2012-08-02 10:21:59 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://cyrusimap.web.cmu.edu/"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-$version.tar.gz"
|
|
|
|
checksum=20efcc4040cbab6e89a636a07dcf5720ee07b5c62359a4e7bf2500ef6020b136
|
|
|
|
long_desc="
|
|
|
|
SASL is the Simple Authentication and Security Layer, a method for adding
|
|
|
|
authentication support to connection-based protocols. To use SASL, a protocol
|
|
|
|
includes a command for identifying and authenticating a user to a server and
|
|
|
|
for optionally negotiating protection of subsequent protocol interactions.
|
|
|
|
If its use is negotiated, a security layer is inserted between the protocol
|
|
|
|
and the connection. See RFC 2222 for more information.
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2012-08-02 10:21:59 +02:00
|
|
|
Any of: ANONYMOUS, CRAM-MD5, DIGEST-MD5, GSSAPI (MIT or Heimdal Kerberos 5),
|
|
|
|
NTLM, OTP, PLAIN, or LOGIN can be used. If you intend to use this package on a
|
|
|
|
server that provides SASL authentication, then you must install some of the
|
|
|
|
cyrus-sasl-modules* packages."
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2012-08-02 10:21:59 +02:00
|
|
|
subpackages="libsasl libsasl-devel ${pkgname}-modules-ldap
|
2012-12-14 15:49:34 +01:00
|
|
|
${pkgname}-modules-sql ${pkgname}-modules-gssapi ${pkgname}-modules"
|
2011-11-10 12:46:34 +01:00
|
|
|
systemd_services="saslauthd.service on"
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2012-08-02 10:21:59 +02:00
|
|
|
pre_configure() {
|
|
|
|
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
|
|
|
|
|
|
|
|
cd 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
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --disable-static --enable-shared \
|
|
|
|
--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 \
|
|
|
|
--with-saslauthd=/var/run/saslauthd --with-ldap \
|
|
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
|
|
|
|
--with-devrandom=/dev/urandom
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-04-18 17:48:17 +02:00
|
|
|
|
2011-10-11 03:38:24 +02:00
|
|
|
# systemd
|
2012-08-02 10:21:59 +02:00
|
|
|
vinstall ${FILESDIR}/saslauthd.service 644 usr/lib/systemd/system
|
2011-10-11 03:38:24 +02:00
|
|
|
vinstall ${FILESDIR}/saslauthd.tmpfiles.d 644 \
|
|
|
|
usr/lib/tmpfiles.d saslauthd.conf
|
2012-08-02 10:21:59 +02:00
|
|
|
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
2010-04-18 17:48:17 +02:00
|
|
|
}
|