72 lines
2.3 KiB
Bash
72 lines
2.3 KiB
Bash
# Template file for 'cyrus-sasl'
|
|
pkgname=cyrus-sasl
|
|
version=2.1.27
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-shared --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=/run/saslauthd --with-ldap --with-devrandom=/dev/urandom
|
|
--with-configdir=/etc/sasl2:/etc/sasl:/usr/lib/sasl2
|
|
--with-mysql=${XBPS_CROSS_BASE}/usr"
|
|
hostmakedepends="automake libtool groff pkg-config"
|
|
makedepends="libsasl-devel libressl-devel db-devel libldap-devel
|
|
mit-krb5-devel pam-devel sqlite-devel postgresql-libs-devel
|
|
libmysqlclient-devel"
|
|
depends="libsasl>=${version}"
|
|
short_desc="Cyrus SASL - auth daemon and administration tools"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="BSD-3-Clause-Attribution"
|
|
homepage="https://www.cyrusimap.org/sasl/"
|
|
distfiles="https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-${version}/cyrus-sasl-${version}.tar.gz"
|
|
checksum=26866b1549b00ffd020f188a43c258017fa1c382b3ddadd8201536f72efb05d5
|
|
patch_args="-Np1"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
# Remove libsasl{,-devel} files.
|
|
rm -rf ${DESTDIR}/usr/include
|
|
rm -f ${DESTDIR}/usr/lib/libsasl*
|
|
rm -rf ${DESTDIR}/usr/share/man/man3
|
|
rm ${DESTDIR}/usr/lib/pkgconfig/libsasl2.pc
|
|
|
|
vlicense COPYING LICENSE
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|