pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/mit-krb5 security/mit-krb5: detect post-1.5 v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5f7a0d902570
branches:  trunk
changeset: 452552:5f7a0d902570
user:      thor <thor%pkgsrc.org@localhost>
date:      Thu May 13 09:06:15 2021 +0000

description:
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.

diffstat:

 security/mit-krb5/builtin.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 7b2c90d49505 -r 5f7a0d902570 security/mit-krb5/builtin.mk
--- a/security/mit-krb5/builtin.mk      Thu May 13 08:21:23 2021 +0000
+++ b/security/mit-krb5/builtin.mk      Thu May 13 09:06:15 2021 +0000
@@ -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.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



Home | Main Index | Thread Index | Old Index