diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-12 02:35:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-12 02:35:06 +0000 |
commit | 1d412335512eaf0c7a16a131be18536df065fa01 (patch) | |
tree | abedabb5e0a307cd66dc653a926873635736358e /security/PAM | |
parent | 3bb661fde228179a23bf326ff69c0f1971493baa (diff) | |
download | pkgsrc-1d412335512eaf0c7a16a131be18536df065fa01.tar.gz |
Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC. Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE. If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
Diffstat (limited to 'security/PAM')
-rw-r--r-- | security/PAM/buildlink2.mk | 16 | ||||
-rw-r--r-- | security/PAM/buildlink3.mk | 16 |
2 files changed, 26 insertions, 6 deletions
diff --git a/security/PAM/buildlink2.mk b/security/PAM/buildlink2.mk index f2348d0f858..c429fb3ae90 100644 --- a/security/PAM/buildlink2.mk +++ b/security/PAM/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.6 2004/02/12 01:59:38 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.7 2004/02/12 02:35:07 jlam Exp $ .if !defined(PAM_BUILDLINK2_MK) PAM_BUILDLINK2_MK= # defined @@ -20,8 +20,18 @@ _NEED_PAM= NO _NEED_PAM= YES .endif -.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ - !empty(PREFER_PKGSRC:Mpam) +.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \ + ${_BUILTIN_PAM} == "YES" +_NEED_PAM= NO +.endif +.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) +_NEED_PAM= YES +.endif +.if !empty(PREFER_NATIVE:Mpam) && \ + ${_BUILTIN_PAM} == "YES" +_NEED_PAM= NO +.endif +.if !empty(PREFER_PKGSRC:Mpam) _NEED_PAM= YES .endif diff --git a/security/PAM/buildlink3.mk b/security/PAM/buildlink3.mk index b80345cf8ab..eca8411f143 100644 --- a/security/PAM/buildlink3.mk +++ b/security/PAM/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.9 2004/02/12 01:59:38 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.10 2004/02/12 02:35:07 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+ @@ -26,8 +26,18 @@ BUILDLINK_USE_BUILTIN.pam= YES BUILDLINK_USE_BUILTIN.pam= NO .endif -.if !empty(PREFER_PKGSRC:M[yY][eE][sS]) || \ - !empty(PREFER_PKGSRC:Mpam) +.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:M[yY][eE][sS]) +BUILDLINK_USE_BUILTIN.pam= NO +.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 |