2008-03-27 20:59:51 -04:30
|
|
|
# Description: LDAP NSS module
|
2020-07-01 14:19:36 +00:00
|
|
|
# URL: https://arthurdejong.org/nss-pam-ldapd/
|
2008-03-27 20:59:51 -04:30
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
2020-05-28 11:24:07 +00:00
|
|
|
# Depends on: openldap krb5
|
2008-03-27 20:59:51 -04:30
|
|
|
|
|
|
|
name=nss_ldap
|
2020-05-28 11:24:07 +00: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-27 20:59:51 -04:30
|
|
|
|
|
|
|
build() {
|
2020-05-28 11:24:07 +00:00
|
|
|
cd $name-$_commit
|
|
|
|
|
|
|
|
patch -p0 -i $SRC/nss_ldap-249-sasl-compile.patch
|
2011-07-25 17:58:19 +09:00
|
|
|
|
2020-01-20 15:21:20 +00:00
|
|
|
sed -i -e 's|CVSVERSIONDIR=\$(top_srcdir) vers_string|CVSVERSIONDIR=\$(top_srcdir) ./vers_string|g' Makefile.am Makefile.in
|
2013-11-23 19:04:03 +09:00
|
|
|
|
2020-01-20 15:21:20 +00: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
|
2020-01-21 12:10:21 +01:00
|
|
|
mkdir -p $PKG/lib
|
2020-01-20 15:21:20 +00:00
|
|
|
make DESTDIR=$PKG install
|
2008-03-27 20:59:51 -04:30
|
|
|
}
|