2004-11-19 20:08:43 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2004/11/19 19:08:43 jlam Exp $
|
2000-10-21 20:47:46 +02:00
|
|
|
#
|
|
|
|
|
2004-11-19 20:08:43 +01:00
|
|
|
DISTNAME= pam_ldap-176
|
2002-07-13 23:35:15 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2000-10-21 20:47:46 +02:00
|
|
|
CATEGORIES= security
|
2002-07-13 23:35:15 +02:00
|
|
|
MASTER_SITES= ftp://ftp.padl.com/pub/
|
2000-10-21 20:47:46 +02:00
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2000-10-21 20:47:46 +02:00
|
|
|
HOMEPAGE= http://www.padl.com/pam_ldap.html
|
2003-07-21 19:20:17 +02:00
|
|
|
COMMENT= Pluggable authentication module for LDAP directories
|
2000-10-21 20:47:46 +02:00
|
|
|
|
2004-11-19 16:32:49 +01:00
|
|
|
USE_BUILDLINK3= yes
|
2004-11-19 20:08:43 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_GNU_TOOLS+= make
|
2004-11-19 16:32:49 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-07-13 23:35:15 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap-lib=openldap
|
2003-05-02 16:15:35 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap}
|
2004-11-19 20:08:43 +01:00
|
|
|
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}
|
2004-11-19 16:32:49 +01:00
|
|
|
INSTALL_TARGET= install install-data
|
|
|
|
|
2004-11-19 20:08:43 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
|
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
CONF_FILES= ${EGDIR}/ldap.conf ${PKG_SYSCONFDIR}/ldap.conf
|
|
|
|
|
2004-11-19 16:32:49 +01:00
|
|
|
.include "../../databases/openldap/buildlink3.mk"
|
|
|
|
.include "../../security/PAM/buildlink3.mk"
|
2000-10-21 20:47:46 +02:00
|
|
|
|
|
|
|
post-install:
|
2004-11-19 20:08:43 +01:00
|
|
|
${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}
|
2000-10-21 20:47:46 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|