46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2005/01/14 05:35:33 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= pam_ldap-176
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
|
CATEGORIES= security
|
|
MASTER_SITES= ftp://ftp.padl.com/pub/
|
|
|
|
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
|
|
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 "../../mk/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"
|