From c9f8b8ef5b41e9897a2ad9b6fa57325a4f3add5b Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 25 Apr 2005 14:21:47 +0000 Subject: 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. --- mk/pam.buildlink3.mk | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'mk/pam.buildlink3.mk') 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 -- cgit v1.2.3