pkgsrc/mk/solaris-pam.builtin.mk
jlam bff1eecc97 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.
2005-01-14 07:54:20 +00:00

28 lines
785 B
Makefile

# $NetBSD: solaris-pam.builtin.mk,v 1.2 2005/01/14 07:54:20 jlam Exp $
_SOLARIS_PAM_APPL_HEADERS= /usr/include/security/pam_appl.h
_SOLARIS_PAM_IDENT= Copyright.*Sun Microsystems
.if !defined(IS_BUILTIN.solaris-pam)
IS_BUILTIN.solaris-pam= no
. for _inc_ in ${_SOLARIS_PAM_APPL_HEADERS}
. if !empty(IS_BUILTIN.solaris-pam:M[nN][oO]) && exists(${_inc_})
IS_BUILTIN.solaris-pam!= \
case ${_inc_} in \
${LOCALBASE}/*) \
${ECHO} "no"; \
;; \
*) \
if ${GREP} -q "${_SOLARIS_PAM_IDENT}" ${_inc_}; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
fi; \
;; \
esac
. endif
. endfor
BUILDLINK_VARS+= IS_BUILTIN.solaris-pam
.endif # IS_BUILTIN.solaris-pam
USE_BUILTIN.solaris-pam?= ${IS_BUILTIN.solaris-pam}