jobcore/libsasl/PKGBUILD

101 lines
3.1 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
2022-05-01 23:31:49 +02:00
# NOTE: upgrade libsasl in tandem with extra/cyrus-sasl
# As one PKGBUILD can (currently) not provide packages for several
# repositories, libsasl and the rest of cyrus-sasl are provided separately
# (else this would require mariadb and postgresql in [core])
2022-03-20 13:19:37 +01:00
2022-05-01 23:31:49 +02:00
_name=cyrus-sasl
2022-03-20 13:19:37 +01:00
pkgname=libsasl
2022-05-01 23:31:49 +02:00
pkgver=2.1.28
2022-11-15 16:49:16 +01:00
pkgrel=04 ## rebuilt against Obarun's updated postgresql
2022-03-20 13:19:37 +01:00
pkgdesc="Cyrus Simple Authentication Service Layer (SASL) library w/o systemd"
arch=('x86_64')
url="https://www.cyrusimap.org/sasl/"
2022-05-01 23:31:49 +02:00
depends=(gdbm libgdbm.so glibc openssl)
makedepends=(krb5 libldap mariadb-libs postgresql-libs sqlite)
provides=(libsasl2.so)
# options=(debug) ## uncomment this to produce the debug package
source=(https://github.com/cyrusimap/$_name/releases/download/$_name-$pkgver/$_name-$pkgver.tar.gz{,.sig})
2022-03-20 13:19:37 +01:00
prepare() {
2022-05-01 23:31:49 +02:00
cd $_name-$pkgver
autoreconf -fiv
2022-03-20 13:19:37 +01:00
}
build() {
2022-05-01 23:31:49 +02:00
cd $_name-$pkgver
2022-03-20 13:19:37 +01:00
./configure --prefix=/usr \
2022-05-01 23:31:49 +02:00
--disable-krb4 \
--disable-macos-framework \
--disable-otp \
--disable-passdss \
--disable-srp \
--disable-srp-setpass \
2022-03-20 13:19:37 +01:00
--disable-static \
--enable-alwaystrue \
2022-05-01 23:31:49 +02:00
--enable-anon \
--enable-auth-sasldb \
2022-03-20 13:19:37 +01:00
--enable-checkapop \
--enable-cram \
--enable-digest \
--enable-gssapi \
2022-05-01 23:31:49 +02:00
--enable-ldapdb \
2022-03-20 13:19:37 +01:00
--enable-login \
--enable-ntlm \
2022-05-01 23:31:49 +02:00
--enable-plain \
--enable-shared \
2022-03-20 13:19:37 +01:00
--enable-sql \
2022-05-01 23:31:49 +02:00
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--sbin=/usr/bin \
--sysconfdir=/etc \
--with-dblib=gdbm \
--with-devrandom=/dev/urandom \
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2 \
--with-ldap \
2022-03-20 13:19:37 +01:00
--with-mysql=/usr \
--with-pam \
2022-05-01 23:31:49 +02:00
--with-pgsql=/usr/lib \
2022-03-20 13:19:37 +01:00
--with-saslauthd=/var/run/saslauthd \
2022-05-01 23:31:49 +02:00
--with-sqlite3=/usr/lib \
2022-03-20 13:19:37 +01:00
--without-systemd
2022-05-01 23:31:49 +02:00
# prevent excessive overlinking by libtool
2022-03-20 13:19:37 +01:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
2022-05-01 23:31:49 +02:00
check() {
make -k check -C $_name-$pkgver
2022-03-20 13:19:37 +01:00
}
2022-05-01 23:31:49 +02:00
package() {
local _target
make DESTDIR="$pkgdir" install-pkgconfigDATA -C $_name-$pkgver
for _target in include lib sasldb plugins utils; do
make DESTDIR="$pkgdir" install -C $_name-$pkgver/$_target
done
install -vDm 644 $_name-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
# remove files provided by extra/cyrus-sasl
rm -fv "$pkgdir"/usr/lib/sasl2/lib{gs2,gssapiv2,ldapdb,sql}.so*
2022-03-20 13:19:37 +01:00
}
#---- license gpg-key sha256sums ----
2022-05-01 23:31:49 +02:00
2022-03-20 13:19:37 +01:00
license=('custom')
2022-05-01 23:31:49 +02:00
validpgpkeys=(829F339F8C296FE80F409D93E3D7C118C7B9F46A # Partha Susarla <mail@spartha.org>
DEA1999F0CDB1AAEBA001E0DBEE3E3B4D2F06546) # Quanah Gibson-Mount <quanah@fast-mail.org>
sha256sums=(7ccfc6abd01ed67c1a0924b353e526f1b766b21f42d4562ee635a8ebfc5bb38c # cyrus-sasl-2.1.28.tar.gz
e6169548f42234eb2b1af9719415016a57116835b8ea494596f52743b49971fd) # cyrus-sasl-2.1.28.tar.gz.sig
2022-11-15 16:49:16 +01:00