summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-01-08 00:08:23 +0000
committerjlam <jlam@pkgsrc.org>2004-01-08 00:08:23 +0000
commit4a6e98e3bdd85ac9444583c13291d5be7441f4c7 (patch)
tree8ec36d0851999f47ca807db55ba9d2690fc5a7b2 /security/PAM
parent5f0d313b30dc8c42a8715171e62ac2c9cb013ab8 (diff)
downloadpkgsrc-4a6e98e3bdd85ac9444583c13291d5be7441f4c7.tar.gz
First cut at a common module.mk file to be included by PAM module packages.
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/module.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/security/PAM/module.mk b/security/PAM/module.mk
new file mode 100644
index 00000000000..090f3d9b2b2
--- /dev/null
+++ b/security/PAM/module.mk
@@ -0,0 +1,21 @@
+# $NetBSD: module.mk,v 1.1 2004/01/08 00:08:23 jlam Exp $
+
+.if !defined(PAM_MODULE_MK)
+PAM_MODULE_MK= # defined
+
+.if !defined(NO_BUILDLINK)
+. if empty(USE_BUILDLINK3:M[nN][oO])
+. include "../../security/PAM/buildlink3.mk"
+. elif empty(USE_BUILDLINK2:M[nN][oO])
+. include "../../security/PAM/buildlink2.mk"
+. endif
+.endif
+
+.if defined(DEFAULT_VIEW.pam)
+DEFAULT_VIEW.${PKGBASE}= ${DEFAULT_VIEW.pam}
+.endif
+
+PAM_MODULEDIR= ${VIEWBASE}/lib/security
+PAM_INSTMODULEDIR= ${PREFIX}/${PAM_MODULEDIR:S,${VIEWBASE}/,,}
+
+.endif # PAM_MODULE_MK