void-packages/srcpkgs/nss-pam-ldapd/template

34 lines
951 B
Bash

# Template file for 'nss-pam-ldapd'
pkgname=nss-pam-ldapd
version=0.9.12
revision=3
build_style=gnu-configure
configure_args="--enable-sasl --enable-kerberos --with-pam-seclib-dir=/usr/lib/security/"
conf_files="/etc/nslcd.conf"
hostmakedepends="autoconf automake"
makedepends="pam-devel libldap-devel libsasl-devel mit-krb5-devel"
short_desc="LDAP identity management via nsswitch"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://arthurdejong.org/nss-pam-ldapd/"
distfiles="https://github.com/arthurdejong/nss-pam-ldapd/archive/$version.tar.gz"
checksum=829b2371be42c040108165d2ea422eb6f6cacba6a01083f67025752a574a685b
system_accounts="nslcd"
case "$XBPS_TARGET_MACHINE" in
*musl) makedepends+=" musl-nscd-devel" ;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*musl)
vsed -i 's/ lookup_netgroup / /' tests/Makefile.am
;;
esac
./autogen.sh
}
post_install() {
vsv nslcd
}