2010-04-18 15:48:17 +00:00
|
|
|
# Template file for 'cyrus-sasl'
|
|
|
|
pkgname=cyrus-sasl
|
2013-04-09 09:42:41 +00:00
|
|
|
version=2.1.25
|
2013-05-09 14:26:34 +00:00
|
|
|
revision=3
|
2010-04-18 15:48:17 +00:00
|
|
|
short_desc="Cyrus SASL - auth daemon and administration tools"
|
2012-08-02 08:21:59 +00: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"
|
2013-04-09 09:42:41 +00:00
|
|
|
checksum=418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe
|
2012-08-02 08:21:59 +00:00
|
|
|
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 15:48:17 +00:00
|
|
|
|
2012-08-02 08:21:59 +00: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 15:48:17 +00:00
|
|
|
|
2013-04-09 09:42:41 +00:00
|
|
|
disable_parallel_build=yes
|
2010-04-18 15:48:17 +00:00
|
|
|
|
2013-04-09 09:42:41 +00:00
|
|
|
hostmakedepends="groff"
|
2013-05-09 14:26:34 +00:00
|
|
|
makedepends="openssl-devel db-devel>=5.3 libldap-devel mit-krb5-devel pam-devel
|
2013-04-09 09:42:41 +00:00
|
|
|
postgresql-libs-devel libmysqlclient-devel>=5.5.27 sqlite-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="libsasl>=${version}"
|
|
|
|
systemd_services="saslauthd.service on"
|
2013-04-09 09:42:41 +00:00
|
|
|
|
2012-08-02 08:21:59 +00:00
|
|
|
do_configure() {
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --disable-static --enable-shared \
|
2012-08-02 08:21:59 +00: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 \
|
|
|
|
--with-saslauthd=/var/run/saslauthd --with-ldap \
|
|
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
|
2013-04-09 09:42:41 +00:00
|
|
|
--with-devrandom=/dev/urandom LDFLAGS=-ldb
|
2012-08-02 08:21:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2010-04-18 15:48:17 +00:00
|
|
|
|
2013-04-09 09:42:41 +00:00
|
|
|
# Remove libsasl{,-devel} files.
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libsasl*
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man/man3
|
|
|
|
|
2011-10-11 01:38:24 +00:00
|
|
|
# systemd
|
2012-08-02 08:21:59 +00:00
|
|
|
vinstall ${FILESDIR}/saslauthd.service 644 usr/lib/systemd/system
|
2011-10-11 01:38:24 +00:00
|
|
|
vinstall ${FILESDIR}/saslauthd.tmpfiles.d 644 \
|
|
|
|
usr/lib/tmpfiles.d saslauthd.conf
|
2012-08-02 08:21:59 +00:00
|
|
|
|
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
2010-04-18 15:48:17 +00:00
|
|
|
}
|
2013-04-12 06:55:23 +00: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
|
|
|
|
}
|
|
|
|
}
|