diff options
author | jlam <jlam@pkgsrc.org> | 2006-04-10 18:05:16 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-04-10 18:05:16 +0000 |
commit | 68a436fe7baa29f5a309e037906a1bf42446dd51 (patch) | |
tree | 44a081c32562b7e940db2498225b8cc0349319b0 /security/mit-krb5 | |
parent | fce22e530a7a2270d2cfd269574d71d87faf6a11 (diff) | |
download | pkgsrc-68a436fe7baa29f5a309e037906a1bf42446dd51.tar.gz |
At least look for "Massachusetts Institute of Technology" as a crude
check for MIT Kerberos 5 when inspecting /usr/include/krb5.h. Also,
bring this file more in line with heimdal/builtin.mk.
Diffstat (limited to 'security/mit-krb5')
-rw-r--r-- | security/mit-krb5/builtin.mk | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/security/mit-krb5/builtin.mk b/security/mit-krb5/builtin.mk index ce0d50e7ac1..05555451474 100644 --- a/security/mit-krb5/builtin.mk +++ b/security/mit-krb5/builtin.mk @@ -1,44 +1,39 @@ -# $NetBSD: builtin.mk,v 1.1 2006/04/10 15:04:44 tron Exp $ +# $NetBSD: builtin.mk,v 1.2 2006/04/10 18:05:16 jlam Exp $ BUILTIN_PKG:= mit-krb5 -BUILTIN_FIND_FILES_VAR:= KRB5_CONFIG -BUILTIN_FIND_FILES.KRB5_CONFIG= /usr/bin/krb5-config +BUILTIN_FIND_FILES_VAR:= H_MIT_KRB5 SH_KRB5_CONFIG +BUILTIN_FIND_FILES.H_MIT_KRB5= /usr/include/krb5.h +BUILTIN_FIND_GREP.H_MIT_KRB5= Massachusetts Institute of Technology +BUILTIN_FIND_FILES.SH_KRB5_CONFIG= /usr/bin/krb5-config +BUILTIN_FIND_GREP.SH_KRB5_CONFIG= ^[ ]*--version) .include "../../mk/buildlink3/bsd.builtin.mk" ### -### Figure out the version of MIT Kerberos V installed on the system. -### - -.if !defined(BUILTIN_VERSION.mit-krb5) && \ - empty(KRB5_CONFIG:M__nonexistent__) && \ - empty(KRB5_CONFIG:M${LOCALBASE}/*) -BUILTIN_VERSION.mit-krb5!= ${KRB5_CONFIG} --version | \ - ${SED} -e 's/.*release //' -e 's/-.*//' -.endif -MAKEVARS+= BUILTIN_VERSION.mit-krb5 - -### ### Determine if there is a built-in implementation of the package and ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). ### .if !defined(IS_BUILTIN.mit-krb5) -IS_BUILTIN.mit-krb5= no -. if defined(BUILTIN_VERSION.mit-krb5) -IS_BUILTIN.mit-krb5= yes +IS_BUILTIN.mit-krb5= no +. if empty(H_MIT_KRB5:M__nonexistent__) && empty(H_MIT_KRB5:M${LOCALBASE}/*) +IS_BUILTIN.mit-krb5= yes . endif .endif -MAKEVARS+= IS_BUILTIN.mit-krb5 +MAKEVARS+= IS_BUILTIN.mit-krb5 ### ### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to ### a package name to represent the built-in package. ### .if !defined(BUILTIN_PKG.mit-krb5) && \ - !empty(IS_BUILTIN.mit-krb5:M[yY][eE][sS]) && \ - defined(BUILTIN_VERSION.mit-krb5) -BUILTIN_PKG.mit-krb5= mit-krb5-${BUILTIN_VERSION.mit-krb5} + !empty(IS_BUILTIN.mit-krb5:M[yY][eE][sS]) +. if empty(SH_KRB5_CONFIG:M__nonexistent__) +BUILTIN_VERSION.mit-krb5!= ${SH_KRB5_CONFIG} --version | \ + ${SED} -e 's/.*release //' -e 's/-.*//' +. endif +BUILTIN_VERSION.mit-krb5?= 1.4.0 +BUILTIN_PKG.mit-krb5= mit-krb5-${BUILTIN_VERSION.mit-krb5} .endif MAKEVARS+= BUILTIN_PKG.mit-krb5 @@ -57,7 +52,7 @@ USE_BUILTIN.mit-krb5= yes . for _dep_ in ${BUILDLINK_API_DEPENDS.mit-krb5} . if !empty(USE_BUILTIN.mit-krb5:M[yY][eE][sS]) USE_BUILTIN.mit-krb5!= \ - if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mit-krb5:Q}; then \ + if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.mit-krb5:Q}; then \ ${ECHO} "yes"; \ else \ ${ECHO} "no"; \ |