forked from ports/contrib
28 lines
733 B
Plaintext
28 lines
733 B
Plaintext
# Description: LDAP NSS module
|
|
# URL: http://www.padl.com/OSS/nss_ldap.html
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Depends on: openldap
|
|
|
|
name=nss_ldap
|
|
version=265
|
|
release=3
|
|
source=(http://www.padl.com/download/$name-$version.tar.gz nss_ldap-265-glibc-2.16.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/nss_ldap-265-glibc-2.16.patch
|
|
sed -i -e 's|CVSVERSIONDIR=\$(top_srcdir) vers_string|CVSVERSIONDIR=\$(top_srcdir) ./vers_string|g' Makefile.am Makefile.in
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/lib \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/man \
|
|
--with-ldap-lib=openldap \
|
|
--with-ldap-conf-file=/etc/nss_ldap.conf
|
|
make
|
|
mkdir -p $PKG/lib $PKG/usr/man
|
|
make DESTDIR=$PKG install
|
|
}
|