# Contributor: Leonardo Arena # Maintainer: Natanael Copa pkgname=cyrus-sasl pkgver=2.1.23 pkgrel=13 pkgdesc="Cyrus Simple Authentication Service Layer (SASL)" url="http://cyrusimap.web.cmu.edu/downloads.html#sasl" arch="all" license="custom" subpackages="$pkgname-dev $pkgname-doc libsasl" depends= makedepends="db-dev openldap-dev openssl-dev" source="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$pkgname-$pkgver.tar.gz saslauthd.initd cyrus-sasl-2.1.19-checkpw.c.patch cyrus-sasl-2.1.23-db5-fix.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-anon \ --disable-cram \ --disable-digest \ --disable-gssapi \ --enable-login \ --disable-otp \ --enable-plain \ --with-devrandom=/dev/urandom \ --with-ldap \ -with-saslauthd=/var/run/saslauthd \ --mandir=/usr/share/man || return 1 # parallell buildds is broken make -j1 || return 1 } package() { cd "$srcdir"/cyrus-sasl-$pkgver make -j1 DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING install -Dm755 ../saslauthd.initd "$pkgdir"/etc/init.d/saslauthd install -d "$pkgdir"/var/run/saslauthd } libsasl() { depends= pkgdesc="Cyrus Simple Authentication and Security Layer (SASL) library" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ } md5sums="2eb0e48106f0e9cd8001e654f267ecbc cyrus-sasl-2.1.23.tar.gz 30d7a8cf31448a9ad2bfa632c3ed9659 saslauthd.initd e27ddff076342e7a3041c4759817d04b cyrus-sasl-2.1.19-checkpw.c.patch b60db0033f61106f8eb7740fa12feba5 cyrus-sasl-2.1.23-db5-fix.patch"