2013-02-07 00:20:50 +01:00
|
|
|
# $NetBSD: Makefile,v 1.38 2013/02/06 23:23:42 jperkin Exp $
|
2000-10-21 20:47:46 +02:00
|
|
|
|
2010-11-16 10:53:50 +01:00
|
|
|
DISTNAME= pam_ldap-186
|
2002-07-13 23:35:15 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2013-02-07 00:20:50 +01:00
|
|
|
PKGREVISION= 2
|
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
|
2010-10-28 10:06:19 +02:00
|
|
|
LICENSE= gnu-lgpl-v2
|
2000-10-21 20:47:46 +02:00
|
|
|
|
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
|
2010-11-03 12:39:07 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
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}
|
2010-11-03 12:39:07 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/ldap.conf
|
|
|
|
CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/ldap.secret
|
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"
|
2010-10-28 10:06:19 +02:00
|
|
|
|
2008-11-21 04:24:29 +01:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CFLAGS+= -DNO_STATIC_MODULES
|
|
|
|
.endif
|
|
|
|
|
2010-11-03 12:39:07 +01:00
|
|
|
# shared with databases/nss_ldap
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
CONF_FILES= ${EGDIR}/ldap.conf ${PKG_SYSCONFDIR}/ldap.conf
|
|
|
|
|
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
|
|
|
|
|
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 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"
|