2010-01-17 13:02:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.32 2010/01/17 12:02:43 wiz Exp $
|
2000-10-21 20:47:46 +02:00
|
|
|
|
2007-11-27 09:27:06 +01:00
|
|
|
DISTNAME= pam_ldap-184
|
2002-07-13 23:35:15 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2010-01-17 13:02:03 +01:00
|
|
|
PKGREVISION= 3
|
2000-10-21 20:47:46 +02:00
|
|
|
CATEGORIES= security
|
2007-11-27 09:27:06 +01:00
|
|
|
MASTER_SITES= ftp://ftp.padl.com/pub/ \
|
|
|
|
http://www.padl.com/download/
|
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
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2004-11-19 20:08:43 +01:00
|
|
|
USE_LIBTOOL= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
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
|
2006-05-31 20:22:23 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client}
|
2005-08-29 11:49:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf
|
|
|
|
CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2004-11-19 20:08:43 +01:00
|
|
|
|
2007-01-15 04:24:03 +01:00
|
|
|
MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
|
2004-11-19 20:08:43 +01:00
|
|
|
|
2008-11-21 04:24:29 +01:00
|
|
|
# Fix (workaround?) a bug with openpam/NetBSD
|
|
|
|
# The bug is described in PR security/39313.
|
|
|
|
#
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
#
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CFLAGS+= -DNO_STATIC_MODULES
|
|
|
|
.endif
|
|
|
|
|
2004-11-19 20:08:43 +01:00
|
|
|
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}
|
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= ${DOCDIR}
|
|
|
|
|
2005-08-29 11:49:07 +02:00
|
|
|
CONF_FILES= ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf
|
2004-11-19 20:08:43 +01:00
|
|
|
|
2006-05-31 20:22:23 +02:00
|
|
|
.include "../../databases/openldap-client/buildlink3.mk"
|
2005-01-14 06:35:33 +01:00
|
|
|
.include "../../mk/pam.buildlink3.mk"
|
2000-10-21 20:47:46 +02:00
|
|
|
|
|
|
|
post-install:
|
2004-11-19 20:08:43 +01:00
|
|
|
.for file in COPYING COPYING.LIB
|
2008-06-12 04:14:13 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DESTDIR}${DOCDIR}
|
2004-11-19 20:08:43 +01:00
|
|
|
.endfor
|
|
|
|
.for file in ldapns.schema ns-pwd-policy.schema
|
2008-06-12 04:14:13 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${file} ${DESTDIR}${EGDIR}
|
2000-10-21 20:47:46 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|