contrib/nss_ldap/Pkgfile

32 lines
832 B
Plaintext
Raw Normal View History

2008-03-28 02:29:51 +01:00
# Description: LDAP NSS module
2020-07-01 16:19:36 +02:00
# URL: https://arthurdejong.org/nss-pam-ldapd/
2008-03-28 02:29:51 +01:00
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
2020-05-28 13:24:07 +02:00
# Depends on: openldap krb5
2008-03-28 02:29:51 +01:00
name=nss_ldap
2020-05-28 13:24:07 +02:00
version=266
release=1
_commit=154730b5a2b58a4212e419b498476fcb5a60de7b
source=(https://github.com/PADL/nss_ldap/archive/$_commit.tar.gz
nss_ldap-249-sasl-compile.patch)
2008-03-28 02:29:51 +01:00
build() {
2020-05-28 13:24:07 +02:00
cd $name-$_commit
patch -p0 -i $SRC/nss_ldap-249-sasl-compile.patch
2020-01-20 16:21:20 +01:00
sed -i -e 's|CVSVERSIONDIR=\$(top_srcdir) vers_string|CVSVERSIONDIR=\$(top_srcdir) ./vers_string|g' Makefile.am Makefile.in
2020-01-20 16:21:20 +01:00
export PERL5LIB="$PWD"
./configure \
--prefix=/usr \
--libdir=/lib \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--with-ldap-lib=openldap \
--with-ldap-conf-file=/etc/nss_ldap.conf
make
mkdir -p $PKG/lib
2020-01-20 16:21:20 +01:00
make DESTDIR=$PKG install
2008-03-28 02:29:51 +01:00
}