# SliTaz package receipt.

PACKAGE="pam_ldap"
VERSION="185"
CATEGORY="system-tools"
SHORT_DESC="Get and update authenticate from LDAP."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.padl.com/OSS/pam_ldap.html"
WGET_URL="http://www.padl.com/download/$TARBALL"
BUILD_DEPENDS="pam-dev perl openldap-dev libldap"
DEPENDS="pam nss_ldap openssl libldap cyrus-sasl libcomerr3"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./vers_string -v
	./configure --prefix=/usr --infodir=/usr/share/info \
	--sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
	make $MAKEFLAGS &&
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr/lib $fs
}