sbcl 2.3.0 rebuild
[arch-packages.git] / cyrus-sasl / trunk / PKGBUILD
blob235e72939956744e54f774555ecddcad107a2ab8
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])
8 pkgbase=cyrus-sasl
9 pkgname=(cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-ldap cyrus-sasl-sql)
10 pkgver=2.1.28
11 pkgrel=2
12 pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library"
13 arch=(x86_64)
14 url="https://www.cyrusimap.org/sasl/"
15 license=(custom)
16 makedepends=(gdbm glibc krb5 libldap libsasl=$pkgver mariadb-libs openssl pam postgresql-libs sqlite)
17 options=(debug)
18 source=(
19   https://github.com/cyrusimap/$pkgbase/releases/download/$pkgbase-$pkgver/$pkgbase-$pkgver.tar.gz{,.sig}
20   saslauthd.service
21   saslauthd.conf.d
22   tmpfiles.conf
24 sha512sums=('db15af9079758a9f385457a79390c8a7cd7ea666573dace8bf4fb01bb4b49037538d67285727d6a70ad799d2e2318f265c9372e2427de9371d626a1959dd6f78'
25             'SKIP'
26             '99573a52c0558d34548cc14e2fc3d95c4b7dc11e0b85f6aba31b1a98d2937d559fed7bb268b88f7ebf929c70e987901b9fe7d406eb74c088628b403a45013197'
27             'e99e2da452d2d5b9c0fc7ef10a844f5aa80f20fe5d5778666e450b5e6eb183876322592ae075d55c7e24d93d8a39bf7d47864697faf398cc40fd589808dd0282'
28             '2cee9d6626aa16b6b51a5f48ad2c162564ce97dabc367738b4d6af654fcd5845e0d2cd78e5c9fb2378dfba2fd67f32fdbfd42321dc59c9a1222369860312d0a7')
29 b2sums=('6cca8c26cebb9c2ee5d539c43797d30b6309a476ec4233225789978e1d7315c4ea5d2abbc7f5464be0f3c0de5fd9212706b43fbc92f40b76cd0b1013cc00f823'
30         'SKIP'
31         'a63fb542a7eb93bb119d655e068ca7a9be71e760298c37f220beae5331ae73c1478fb3d1455e5431a6487bcf0ce7a612e9cdc923e2da5834fc1ae58d810f8e8d'
32         'fd9c1f0a1dd3b812c483e1b119782994b556b997583d75fc905a35ba4d4aae94326b24d0313a3b396fef69d4eb6c7dcbd397144b72fd1b729c590cfba432a275'
33         'e7f38d8c42d48a08b5ca810e237899111856d57635260a5c440cbe8d01ed3dc89541fe7e4d8b84b9d54b1328f17f2c1ea9cf7b6a4a1f37b962bbb6e3cc916da8')
34 validpgpkeys=(
35   '829F339F8C296FE80F409D93E3D7C118C7B9F46A'  # Partha Susarla <mail@spartha.org>
36   'DEA1999F0CDB1AAEBA001E0DBEE3E3B4D2F06546'  # Quanah Gibson-Mount <quanah@fast-mail.org>
39 prepare() {
40   cd $pkgbase-$pkgver
41   autoreconf -fiv
44 build() {
45   cd $pkgbase-$pkgver
46   ./configure --prefix=/usr \
47       --disable-krb4 \
48       --disable-macos-framework \
49       --disable-otp \
50       --disable-passdss \
51       --disable-srp \
52       --disable-srp-setpass \
53       --disable-static \
54       --enable-alwaystrue \
55       --enable-anon \
56       --enable-auth-sasldb \
57       --enable-checkapop \
58       --enable-cram \
59       --enable-digest \
60       --enable-gssapi \
61       --enable-ldapdb \
62       --enable-login \
63       --enable-ntlm \
64       --enable-plain \
65       --enable-shared \
66       --enable-sql \
67       --infodir=/usr/share/info \
68       --mandir=/usr/share/man \
69       --sbin=/usr/bin \
70       --sysconfdir=/etc \
71       --with-dblib=gdbm \
72       --with-devrandom=/dev/urandom \
73       --with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
74       --with-ldap \
75       --with-mysql=/usr \
76       --with-pam \
77       --with-pgsql=/usr/lib \
78       --with-saslauthd=/var/run/saslauthd \
79       --with-sqlite3=/usr/lib
80   # prevent excessive overlinking by libtool
81   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
82   make
85 check() {
86   make -k check -C $pkgbase-$pkgver
89 package_cyrus-sasl() {
90   depends=(gdbm libgdbm.so glibc krb5 libkrb5.so libldap libsasl=$pkgver openssl pam libpam.so)
91   pkgdesc="Cyrus saslauthd SASL authentication daemon"
92   backup=(etc/conf.d/saslauthd)
94   make DESTDIR="$pkgdir" install -C $pkgbase-$pkgver/saslauthd
95   make DESTDIR="$pkgdir" install-data-local -C $pkgbase-$pkgver/saslauthd
96   install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
98   install -vDm 644 saslauthd.conf.d "$pkgdir/etc/conf.d/saslauthd"
99   install -vDm 644 saslauthd.service -t "$pkgdir/usr/lib/systemd/system/"
100   install -vDm 644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/saslauthd.conf"
103 package_cyrus-sasl-gssapi() {
104   pkgdesc="GSSAPI authentication mechanism for Cyrus SASL"
105   depends=(glibc krb5 libgssapi_krb5.so libsasl=$pkgver)
106   replaces=('cyrus-sasl-plugins')
108   install -vdm 755 "$pkgdir/usr/lib/sasl2"
109   cp -av $pkgbase-$pkgver/plugins/.libs/libgs{,sapiv}2.so* "$pkgdir/usr/lib/sasl2/"
110   install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
113 package_cyrus-sasl-ldap() {
114   pkgdesc="ldapdb auxprop module for Cyrus SASL"
115   depends=(glibc libldap libsasl=$pkgver)
116   replaces=('cyrus-sasl-plugins')
118   install -vdm 755 "$pkgdir/usr/lib/sasl2"
119   cp -av $pkgbase-$pkgver/plugins/.libs/libldapdb.so* "$pkgdir/usr/lib/sasl2/"
120   install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
123 package_cyrus-sasl-sql() {
124   pkgdesc="SQL auxprop module for Cyrus SASL"
125   depends=(libsasl=$pkgver mariadb-libs libmariadb.so postgresql-libs libpq.so sqlite)
126   replaces=('cyrus-sasl-plugins')
128   install -vdm 755 "$pkgdir/usr/lib/sasl2"
129   cp -av $pkgbase-$pkgver/plugins/.libs/libsql.so* "$pkgdir/usr/lib/sasl2/"
130   install -vDm 644 $pkgbase-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"