1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # NOTE: upgrade cyrus-sasl in tandem with core/libsasl
5 # As one PKGBUILD can (currently) not provide packages for several
6 # repositories, libsasl and the rest of cyrus-sasl are provided separately
7 # (else this would require mariadb and postgresql in [core])
9 pkgname=(cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-ldap cyrus-sasl-sql)
12 pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library"
14 url="https://www.cyrusimap.org/sasl/"
16 makedepends=(gdbm glibc krb5 libldap libsasl=$pkgver mariadb-libs openssl pam postgresql-libs sqlite)
18 https://github.com/cyrusimap/$pkgbase/releases/download/$pkgbase-$pkgver/$pkgbase-$pkgver.tar.gz{,.sig}
23 sha512sums=('db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78'
25 '99573a52c0558d34548cc14e2fc3d95c4b7dc11e0b85f6aba31b1a98d2937d559fed7bb268b88f7ebf929c70e987901b9fe7d406eb74c088628b403a45013197'
26 'e99e2da452d2d5b9c0fc7ef10a844f5aa80f20fe5d5778666e450b5e6eb183876322592ae075d55c7e24d93d8a39bf7d47864697faf398cc40fd589808dd0282'
27 '2cee9d6626aa16b6b51a5f48ad2c162564ce97dabc367738b4d6af654fcd5845e0d2cd78e5c9fb2378dfba2fd67f32fdbfd42321dc59c9a1222369860312d0a7')
28 b2sums=('6cca8c26cebb9c2ee5d539c43797d30b6309a476ec4233225789978e1d7315c4ea5d2abbc7f5464be0f3c0de5fd9212706b43fbc92f40b76cd0b1013cc00f823'
30 'a63fb542a7eb93bb119d655e068ca7a9be71e760298c37f220beae5331ae73c1478fb3d1455e5431a6487bcf0ce7a612e9cdc923e2da5834fc1ae58d810f8e8d'
31 'fd9c1f0a1dd3b812c483e1b119782994b556b997583d75fc905a35ba4d4aae94326b24d0313a3b396fef69d4eb6c7dcbd397144b72fd1b729c590cfba432a275'
32 'e7f38d8c42d48a08b5ca810e237899111856d57635260a5c440cbe8d01ed3dc89541fe7e4d8b84b9d54b1328f17f2c1ea9cf7b6a4a1f37b962bbb6e3cc916da8')
34 '829F339F8C296FE80F409D93E3D7C118C7B9F46A' # Partha Susarla <mail@spartha.org>
35 'DEA1999F0CDB1AAEBA001E0DBEE3E3B4D2F06546' # Quanah Gibson-Mount <quanah@fast-mail.org>
45 ./configure --prefix=/usr \
47 --disable-macos-framework \
51 --disable-srp-setpass \
55 --enable-auth-sasldb \
66 --infodir=/usr/share/info \
67 --mandir=/usr/share/man \
71 --with-devrandom=/dev/urandom \
72 --with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
76 --with-pgsql=/usr/lib \
77 --with-saslauthd=/var/run/saslauthd \
78 --with-sqlite3=/usr/lib
79 # prevent excessive overlinking by libtool
80 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
85 make -k check -C $pkgbase-$pkgver
88 package_cyrus-sasl() {
89 depends=(gdbm libgdbm.so glibc krb5 libkrb5.so libldap libsasl=$pkgver openssl pam libpam.so)
90 pkgdesc="Cyrus saslauthd SASL authentication daemon"
91 backup=(etc/conf.d/saslauthd)
93 make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver/saslauthd
94 make DESTDIR="$pkgdir" install-data-local -C $pkgbase-$pkgver/saslauthd
95 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
97 install -vDm 644 saslauthd.conf.d "$pkgdir/etc/conf.d/saslauthd"
98 install -vDm 644 saslauthd.service -t "$pkgdir/usr/lib/systemd/system/"
99 install -vDm 644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/saslauthd.conf"
102 package_cyrus-sasl-gssapi() {
103 pkgdesc="GSSAPI authentication mechanism for Cyrus SASL"
104 depends=(glibc krb5 libgssapi_krb5.so libsasl=$pkgver)
105 replaces=('cyrus-sasl-plugins')
107 install -vdm 755 "$pkgdir/usr/lib/sasl2"
108 cp -av $pkgbase-$pkgver/plugins/.libs/libgs{,sapiv}2.so* "$pkgdir/usr/lib/sasl2/"
109 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
112 package_cyrus-sasl-ldap() {
113 pkgdesc="ldapdb auxprop module for Cyrus SASL"
114 depends=(glibc libldap libsasl=$pkgver)
115 replaces=('cyrus-sasl-plugins')
117 install -vdm 755 "$pkgdir/usr/lib/sasl2"
118 cp -av $pkgbase-$pkgver/plugins/.libs/libldapdb.so* "$pkgdir/usr/lib/sasl2/"
119 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
122 package_cyrus-sasl-sql() {
123 pkgdesc="SQL auxprop module for Cyrus SASL"
124 depends=(libsasl=$pkgver mariadb-libs libmariadb.so postgresql-libs libpq.so sqlite)
125 replaces=('cyrus-sasl-plugins')
127 install -vdm 755 "$pkgdir/usr/lib/sasl2"
128 cp -av $pkgbase-$pkgver/plugins/.libs/libsql.so* "$pkgdir/usr/lib/sasl2/"
129 install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"