summaryrefslogtreecommitdiff
path: root/security/PAM
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-01-14 07:54:20 +0000
committerjlam <jlam@pkgsrc.org>2005-01-14 07:54:20 +0000
commitbff1eecc9779dce80a073bfe6ca8980e457b7227 (patch)
tree8222f304130541fbebc7d2c7b9955af7fe958c86 /security/PAM
parent0d2c3fdc3cdef6e0d35e6138789494075a6fa8d4 (diff)
downloadpkgsrc-bff1eecc9779dce80a073bfe6ca8980e457b7227.tar.gz
Modify linux-pam and solaris-pam builtin.mk files to be more general
in their tests for built-in versions of the PAM implementations. The MacOS X case now collapses nicely into the linux-pam case. Allow pam.buildlink3.mk to use solaris-pam as an accepted PAM implementation.
Diffstat (limited to 'security/PAM')
-rw-r--r--security/PAM/builtin.mk37
1 files changed, 19 insertions, 18 deletions
diff --git a/security/PAM/builtin.mk b/security/PAM/builtin.mk
index 60b0d4d432b..ca7acf2e9d9 100644
--- a/security/PAM/builtin.mk
+++ b/security/PAM/builtin.mk
@@ -1,29 +1,30 @@
-# $NetBSD: builtin.mk,v 1.10 2005/01/14 00:08:46 jlam Exp $
+# $NetBSD: builtin.mk,v 1.11 2005/01/14 07:54:20 jlam Exp $
.include "../../mk/bsd.prefs.mk"
-_PAM_PAM_APPL_H= /usr/include/pam/pam_appl.h
-_SECURITY_PAM_APPL_H= /usr/include/security/pam_appl.h
+_LINUX_PAM_APPL_HEADERS= /usr/include/pam/pam_appl.h \
+ /usr/include/security/pam_appl.h
+_LINUX_PAM_IDENT= The Linux-PAM Framework layer API
.if !defined(IS_BUILTIN.linux-pam)
IS_BUILTIN.linux-pam= no
-. if empty(_SECURITY_PAM_APPL_H:M${LOCALBASE}/*) && \
- exists(${_SECURITY_PAM_APPL_H})
+. for _inc_ in ${_LINUX_PAM_APPL_HEADERS}
+. if !empty(IS_BUILTIN.linux-pam:M[nN][oO]) && exists(${_inc_})
IS_BUILTIN.linux-pam!= \
- if ${GREP} -q "The Linux-PAM Framework layer API" ${_SECURITY_PAM_APPL_H}; then \
- ${ECHO} "yes"; \
- else \
+ case ${_inc_} in \
+ ${LOCALBASE}/*) \
${ECHO} "no"; \
- fi
-. elif empty(_PAM_PAM_APPL_H:M${LOCALBASE}/*) && exists(${_PAM_PAM_APPL_H})
-#
-# MacOS X installs their PAM headers as /usr/include/pam/*.h, and their
-# PAM implementation is derived from Linux-PAM:
-#
-# http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/pam.8.html
-#
-IS_BUILTIN.linux-pam= yes
-. endif
+ ;; \
+ *) \
+ if ${GREP} -q "${_LINUX_PAM_IDENT}" ${_inc_}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi; \
+ ;; \
+ esac
+. endif
+. endfor
BUILDLINK_VARS+= IS_BUILTIN.linux-pam
.endif # IS_BUILTIN.linux-pam