summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthor <thor@pkgsrc.org>2021-05-13 09:06:15 +0000
committerthor <thor@pkgsrc.org>2021-05-13 09:06:15 +0000
commit90c9e2bc53fb7cffd56d0a782e92d39e1a67ea0b (patch)
tree1dbc0d5912ce6bb286253ab31b90ef4fc870c3d9
parentf5d384319ef56076bd240b784cf2e334061bf2ee (diff)
downloadpkgsrc-90c9e2bc53fb7cffd56d0a782e92d39e1a67ea0b.tar.gz
security/mit-krb5: detect post-1.5 versions on GNU/Linux in builtin.mk
This might need proper reworking to safely detect the krb5 version and/or header location without guessing. Asking krb5-config might be a solution also to tell between heimdal and mit-krb5 from --version output.
-rw-r--r--security/mit-krb5/builtin.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/security/mit-krb5/builtin.mk b/security/mit-krb5/builtin.mk
index a0a52812664..ea2fb09cc7b 100644
--- a/security/mit-krb5/builtin.mk
+++ b/security/mit-krb5/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.16 2019/11/04 21:12:55 rillig Exp $
+# $NetBSD: builtin.mk,v 1.17 2021/05/13 09:06:15 thor Exp $
BUILTIN_PKG:= mit-krb5
@@ -10,10 +10,13 @@ BUILTIN_FIND_HEADERS_VAR:= H_MIT_KRB5
BUILTIN_FIND_HEADERS.H_MIT_KRB5= krb5/krb5.h
.elif !empty(MACHINE_PLATFORM:MSunOS-*-*)
BUILTIN_FIND_HEADERS.H_MIT_KRB5= kerberosv5/krb5.h
+.elif !empty(MACHINE_PLATFORM:MLinux-*)
+# Assuming mit-krb5 >= 1.5 on GNU/Linux.
+BUILTIN_FIND_HEADERS.H_MIT_KRB5= krb5/krb5.h
.else
BUILTIN_FIND_HEADERS.H_MIT_KRB5= krb5.h
.endif
-BUILTIN_FIND_GREP.H_MIT_KRB5= Massachusetts Institute of Technology
+BUILTIN_FIND_GREP.H_MIT_KRB5= Massachusetts
BUILTIN_FIND_FILES_VAR:= SH_KRB5_CONFIG
BUILTIN_FIND_FILES.SH_KRB5_CONFIG= /usr/bin/krb5-config
BUILTIN_FIND_FILES.SH_KRB5_CONFIG+= /usr/lib/mit/bin/krb5-config