summaryrefslogtreecommitdiff
path: root/mk/pam.buildlink3.mk
diff options
context:
space:
mode:
authortv <tv>2005-04-25 14:21:47 +0000
committertv <tv>2005-04-25 14:21:47 +0000
commit1de0c36720bf80d8d3e533397589209a7e2ed16f (patch)
tree5a3789b6881db8fee07aebff593ce72dce61ebf1 /mk/pam.buildlink3.mk
parentee9927fb8c3346957e83658b5476817b8f40b7ab (diff)
downloadpkgsrc-1de0c36720bf80d8d3e533397589209a7e2ed16f.tar.gz
Add OS conditional blocks to exclude some PAM implementations from
selection, thus allowing "none" to be a correct result on systems where PAM is currently unavailable.
Diffstat (limited to 'mk/pam.buildlink3.mk')
-rw-r--r--mk/pam.buildlink3.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/mk/pam.buildlink3.mk b/mk/pam.buildlink3.mk
index 00d366ab480..6d74b79f2a6 100644
--- a/mk/pam.buildlink3.mk
+++ b/mk/pam.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pam.buildlink3.mk,v 1.3 2005/01/14 07:54:20 jlam Exp $
+# $NetBSD: pam.buildlink3.mk,v 1.4 2005/04/25 14:21:47 tv Exp $
#
# This Makefile fragment is meant to be included by packages that
# require a PAM implementation. pam.buildlink3.mk will:
@@ -25,7 +25,19 @@ PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
# This is an exhaustive list of all of the PAM implementations
# that may be used with PAM.buildlink3.mk, in order of precedence.
#
-_PAM_PKGS?= linux-pam openpam solaris-pam
+# OS conditionals can exclude implementations not available on
+# some platforms.
+#
+.if ${OPSYS} != "Interix"
+_PAM_PKGS+= linux-pam
+.endif
+
+.if ${OPSYS} != "Interix"
+_PAM_PKGS+= openpam
+.endif
+
+# builtin only, so no conditional needed
+_PAM_PKGS+= solaris-pam
BUILDLINK_BUILTIN_MK.linux-pam= ../../security/PAM/builtin.mk
BUILDLINK_BUILTIN_MK.openpam= ../../security/openpam/builtin.mk