summaryrefslogtreecommitdiff
path: root/mk/solaris-pam.builtin.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-14 06:29:55 +0000
committerjlam <jlam@pkgsrc.org>2005-01-14 06:29:55 +0000
commit151f14b2697fa89fc982037754d5754c9b641381 (patch)
treed2d1a5efc18d9874a6443576fe71ccc09653bb4e /mk/solaris-pam.builtin.mk
parent1f8a3a323631d3e5bcf8f6637f48c2305d122b4e (diff)
downloadpkgsrc-151f14b2697fa89fc982037754d5754c9b641381.tar.gz
Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.
Diffstat (limited to 'mk/solaris-pam.builtin.mk')
-rw-r--r--mk/solaris-pam.builtin.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/mk/solaris-pam.builtin.mk b/mk/solaris-pam.builtin.mk
new file mode 100644
index 00000000000..3df553c468a
--- /dev/null
+++ b/mk/solaris-pam.builtin.mk
@@ -0,0 +1,19 @@
+# $NetBSD: solaris-pam.builtin.mk,v 1.1 2005/01/14 06:29:55 jlam Exp $
+
+_SECURITY_PAM_APPL_H= /usr/include/security/pam_appl.h
+
+.if !defined(IS_BUILTIN.solaris-pam)
+IS_BUILTIN.solaris-pam= no
+. if empty(_SECURITY_PAM_APPL_H:M${LOCALBASE}/*) && \
+ exists(${_SECURITY_PAM_APPL_H})
+IS_BUILTIN.solaris-pam!= \
+ if ${GREP} -q "Copyright.*Sun Microsystems" ${_SECURITY_PAM_APPL_H}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
+BUILDLINK_VARS+= IS_BUILTIN.solaris-pam
+.endif # IS_BUILTIN.solaris-pam
+
+USE_BUILTIN.solaris-pam?= ${IS_BUILTIN.solaris-pam}