pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add a builtin.mk file to detect Solaris' PAM, used ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99eb16805d81
branches:  trunk
changeset: 487419:99eb16805d81
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Jan 14 06:29:55 2005 +0000

description:
Add a builtin.mk file to detect Solaris' PAM, used by pam.buildlink3.mk.

diffstat:

 mk/solaris-pam.builtin.mk |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 5e642b623998 -r 99eb16805d81 mk/solaris-pam.builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/solaris-pam.builtin.mk Fri Jan 14 06:29:55 2005 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index