pkgsrc/security/pam-ldap/Makefile

47 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.17 2004/11/19 19:08:43 jlam Exp $
#
DISTNAME= pam_ldap-176
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= security
MASTER_SITES= ftp://ftp.padl.com/pub/
2003-07-18 00:50:55 +02:00
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.padl.com/pam_ldap.html
COMMENT= Pluggable authentication module for LDAP directories
USE_BUILDLINK3= yes
USE_LIBTOOL= yes
USE_GNU_TOOLS+= make
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ldap-lib=openldap
2003-05-02 16:15:35 +02:00
CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap}
CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/ldap.conf
CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/ldap.secret
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
MAKE_ENV+= SHLIBTOOL=$(SHLIBTOOL)
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
INSTALL_TARGET= install install-data
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
USE_PKGINSTALL= yes
CONF_FILES= ${EGDIR}/ldap.conf ${PKG_SYSCONFDIR}/ldap.conf
.include "../../databases/openldap/buildlink3.mk"
.include "../../security/PAM/buildlink3.mk"
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
.for file in COPYING COPYING.LIB
cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DOCDIR}
.endfor
.for file in ldapns.schema ns-pwd-policy.schema
cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${EGDIR}
.endfor
.include "../../mk/bsd.pkg.mk"