pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/openpam Add a builtin.mk file to check for a ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c25cf3bae369
branches: trunk
changeset: 487412:c25cf3bae369
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Jan 13 23:00:06 2005 +0000
description:
Add a builtin.mk file to check for a built-in version of openpam and to
associate it with a PKGNAME.
diffstat:
security/openpam/builtin.mk | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diffs (44 lines):
diff -r 0508f4b719af -r c25cf3bae369 security/openpam/builtin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openpam/builtin.mk Thu Jan 13 23:00:06 2005 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: builtin.mk,v 1.1 2005/01/13 23:00:06 jlam Exp $
+
+_SECURITY_OPENPAM_VERSION_H= /usr/include/security/openpam_version.h
+
+.if !defined(IS_BUILTIN.openapm)
+IS_BUILTIN.openpam= no
+. if empty(_SECURITY_OPENPAM_VERSION_H:M${LOCALBASE}/*) && \
+ exists(${_SECURITY_OPENPAM_VERSION_H})
+IS_BUILTIN.openpam= yes
+#
+# Create an appropriate package name for the built-in software
+# distributed with the system. This package name can be used to check
+# against BUILDLINK_DEPENDS.<pkg> to see if we need to install the
+# pkgsrc version or if the built-in one is sufficient.
+#
+_OPENPAM_VERSION!= ${AWK} '/\#define[ ]*_OPENPAM_VERSION[ ]/ {print $$3; }' ${_SECURITY_OPENPAM_VERSION_H}
+BUILTIN_PKG.openpam= openpam-${_OPENPAM_VERSION}
+BUILDLINK_VARS+= BUILTIN_PKG.openpam
+. endif
+BUILDLINK_VARS+= IS_BUILTIN.openpam
+.endif # IS_BUILTIN.openpam
+
+.if !defined(USE_BUILTIN.openpam)
+USE_BUILTIN.openpam?= ${IS_BUILTIN.openpam}
+
+. if defined(BUILTIN_PKG.openpam)
+USE_BUILTIN.openpam= yes
+. for _depend_ in ${BUILDLINK_DEPENDS.openpam}
+. if !empty(USE_BUILTIN.openpam:M[yY][eE][sS])
+USE_BUILTIN.openpam!= \
+ if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.openpam}; then \
+ ${ECHO} "yes"; \
+ else \
+ ${ECHO} "no"; \
+ fi
+. endif
+. endfor
+. endif
+BUILDLINK_VARS+= USE_BUILTIN.openpam
+.endif # USE_BUILTIN.openpam
Home |
Main Index |
Thread Index |
Old Index