2017-01-19 19:52:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.46 2017/01/19 18:52:24 agc 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/_/-/}
|
2016-03-05 12:27:40 +01:00
|
|
|
PKGREVISION= 6
|
2000-10-21 20:47:46 +02:00
|
|
|
CATEGORIES= security
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= ftp://ftp.padl.com/pub/
|
|
|
|
MASTER_SITES+= http://www.padl.com/download/
|
2000-10-21 20:47:46 +02:00
|
|
|
|
2013-12-23 12:57:02 +01:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2014-07-28 20:23:39 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-[3-9]*-* FreeBSD-*-* SunOS-*-*
|
2014-06-02 12:22:17 +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.
|
2016-02-26 10:41:05 +01:00
|
|
|
CFLAGS.NetBSD+= -DNO_STATIC_MODULES
|
2008-11-21 04:24:29 +01:00
|
|
|
|
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"
|