summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam>2004-01-03 23:06:43 +0000
committerjlam <jlam>2004-01-03 23:06:43 +0000
commit0d6c711ce586532632e1ae1b985d86085faa4580 (patch)
tree7815453a8a5d5cc91288c15c8c52893726b1e2bc /security/PAM
parent7c4feed9a8d4596547ef84ababb069e65e478323 (diff)
downloadpkgsrc-0d6c711ce586532632e1ae1b985d86085faa4580.tar.gz
Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/buildlink3.mk49
1 files changed, 49 insertions, 0 deletions
diff --git a/security/PAM/buildlink3.mk b/security/PAM/buildlink3.mk
new file mode 100644
index 00000000000..393cb0a66f9
--- /dev/null
+++ b/security/PAM/buildlink3.mk
@@ -0,0 +1,49 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/01/03 23:06:45 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PAM_BUILDLINK3_MK:= ${PAM_BUILDLINK3_MK}+
+
+.if !empty(PAM_BUILDLINK3_MK:M\+)
+. include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_DEPENDS.pam?= PAM>=0.75
+BUILDLINK_PKGSRCDIR.pam?= ../../security/PAM
+.endif # PAM_BUILDLINK3_MK
+
+BUILDLINK_CHECK_BUILTIN.pam?= NO
+
+.if !defined(BUILDLINK_IS_BUILTIN.pam)
+BUILDLINK_IS_BUILTIN.pam= NO
+. if exists(/usr/include/security/pam_appl.h)
+BUILDLINK_IS_BUILTIN.pam= YES
+. endif
+.endif
+
+.if !empty(BUILDLINK_CHECK_BUILTIN.pam:M[yY][eE][sS])
+_NEED_PAM= NO
+.endif
+
+.if !defined(_NEED_PAM)
+. if !empty(BUILDLINK_IS_BUILTIN.pam:M[nN][oO])
+_NEED_PAM= YES
+. else
+_NEED_PAM= NO
+. endif
+MAKEFLAGS+= _NEED_PAM="${_NEED_PAM}"
+.endif
+
+.if ${_NEED_PAM} == "YES"
+. if !empty(BUILDLINK_DEPTH:M\+)
+BUILDLINK_DEPENDS+= pam
+. endif
+.endif
+
+.if !empty(PAM_BUILDLINK3_MK:M\+)
+. if ${_NEED_PAM} == "YES"
+BUILDLINK_PACKAGES+= pam
+. else
+BUILDLINK_PREFIX.pam= /usr
+. endif
+.endif # PAM_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:C/\+$//}