summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-18 16:35:27 +0000
committerjlam <jlam@pkgsrc.org>2004-02-18 16:35:27 +0000
commit856c7ef8b5bf784559d087397ad7cccf45177200 (patch)
treedaac6b8473ed3f39f2dec5295d64812df616c1e4 /security/PAM
parente1720521d0a3d72d0677c724d4ea47c2f900ba11 (diff)
downloadpkgsrc-856c7ef8b5bf784559d087397ad7cccf45177200.tar.gz
Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/buildlink3.mk34
1 files changed, 18 insertions, 16 deletions
diff --git a/security/PAM/buildlink3.mk b/security/PAM/buildlink3.mk
index eca8411f143..8716a50b62d 100644
--- a/security/PAM/buildlink3.mk
+++ b/security/PAM/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.10 2004/02/12 02:35:07 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.11 2004/02/18 16:35:27 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
@@ -20,29 +20,31 @@ BUILDLINK_IS_BUILTIN.pam= YES
. endif
.endif
-.if !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
+.if !empty(BUILDLINK_CHECK_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam= YES
-.else
-BUILDLINK_USE_BUILTIN.pam= NO
.endif
-.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
- !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
+.if !defined(BUILDLINK_USE_BUILTIN.pam)
+. if !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam= YES
-.endif
-.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
+. else
BUILDLINK_USE_BUILTIN.pam= NO
-.endif
-.if !empty(PREFER_NATIVE:Mpam) && \
- !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
+. endif
+
+. if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
+ !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam= YES
-.endif
-.if !empty(PREFER_PKGSRC:Mpam)
+. endif
+. if !empty(PREFER_PKGSRC:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam= NO
-.endif
-
-.if !empty(BUILDLINK_CHECK_BUILTIN.pam:M[yY][eE][sS])
+. endif
+. if !empty(PREFER_NATIVE:Mpam) && \
+ !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam= YES
+. endif
+. if !empty(PREFER_PKGSRC:Mpam)
+BUILDLINK_USE_BUILTIN.pam= NO
+. endif
.endif
.if !empty(BUILDLINK_USE_BUILTIN.pam:M[nN][oO])