summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-30 21:05:41 +0000
committerjlam <jlam@pkgsrc.org>2004-07-30 21:05:41 +0000
commitb460ce1ab51a88c8a15737b9aaf78a949fe6f32e (patch)
tree90f33a51019f85b91b5f29838193d07638327f1c /security/PAM
parent85306a83480ca871311e350b3814452b76f3b8a2 (diff)
downloadpkgsrc-b460ce1ab51a88c8a15737b9aaf78a949fe6f32e.tar.gz
Convert to use bsd.options.mk. The relevant options variable to set
for each package can be determined by invoking: make show-var VARNAME=PKG_OPTIONS_VAR The old options are still supported unless the variable named in PKG_OPTIONS_VAR is set within make(1) (usually via /etc/mk.conf).
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/security/PAM/Makefile b/security/PAM/Makefile
index aefd544b413..d2b401c77e3 100644
--- a/security/PAM/Makefile
+++ b/security/PAM/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2004/07/06 22:49:29 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2004/07/30 21:05:41 jlam Exp $
#
DISTNAME= Linux-PAM-0.77
@@ -38,7 +38,20 @@ MESSAGE_SUBST+= PAM_MODULEDIR=${PAM_MODULEDIR}
.include "../../mk/bsd.prefs.mk"
-.if !empty(USE_LIBCRACK:M[yY][eE][sS])
+# Global and legacy options
+.if defined(USE_LIBCRACK)
+. if !defined(PKG_OPTIONS.PAM)
+. if defined(USE_LIBCRACK) && !empty(USE_LIBCRACK:M[yY][eE][sS])
+PKG_OPTIONS.PAM+= libcrack
+. endif
+. endif
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.PAM
+PKG_SUPPORTED_OPTIONS= libcrack
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mlibcrack)
. include "../../security/libcrack/buildlink3.mk"
CONFIGURE_ARGS+= --with-libcrack
PLIST_SUBST+= USE_LIBCRACK=
@@ -74,6 +87,8 @@ CONF_FILES= ${EGDIR}/pam.conf ${PKG_SYSCONFBASEDIR}/pam.conf
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
.endfor
+.include "../../mk/bdb.buildlink3.mk"
+
post-configure:
cd ${WRKSRC}; for file in libpam/pam_private.h; do \
${SED} -e "s|/etc/|${PKG_SYSCONFBASEDIR}/|g" \
@@ -99,5 +114,4 @@ post-install:
.endif
${INSTALL_DATA_DIR} ${DOCDIR}
-.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"