pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/mit-krb5 mit-krb5: Support LDAP, fix plugin s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/37dcc2964767
branches: trunk
changeset: 336339:37dcc2964767
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Jul 12 15:40:55 2019 +0000
description:
mit-krb5: Support LDAP, fix plugin shared library naming.
The libtool-ification caused plugins to have a "lib" prefix, causing a mismatch
with what the code was trying to dlopen(), and failures. Bump PKGREVISION.
diffstat:
security/mit-krb5/Makefile | 6 ++++--
security/mit-krb5/PLIST | 13 ++++++++-----
security/mit-krb5/distinfo | 6 +++---
security/mit-krb5/options.mk | 16 ++++++++++++++++
security/mit-krb5/patches/patch-aclocal.m4 | 4 ++--
security/mit-krb5/patches/patch-config_libnover.in | 20 ++++++++++----------
6 files changed, 43 insertions(+), 22 deletions(-)
diffs (179 lines):
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/Makefile
--- a/security/mit-krb5/Makefile Fri Jul 12 15:34:54 2019 +0000
+++ b/security/mit-krb5/Makefile Fri Jul 12 15:40:55 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.100 2019/05/06 08:20:32 wiz Exp $
+# $NetBSD: Makefile,v 1.101 2019/07/12 15:40:55 jperkin Exp $
DISTNAME= krb5-1.16.2
PKGNAME= mit-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/${PKGVERSION_NOREV:R}/
@@ -69,6 +69,8 @@
lib/krb5/plugins/tls include/krb5 include/kadm5 \
lib/pkgconfig
+.include "options.mk"
+
pre-configure:
cd ${WRKSRC} && autoconf -I ${WRKSRC} -f
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/PLIST
--- a/security/mit-krb5/PLIST Fri Jul 12 15:34:54 2019 +0000
+++ b/security/mit-krb5/PLIST Fri Jul 12 15:40:55 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.20 2018/12/21 15:45:13 adam Exp $
+@comment $NetBSD: PLIST,v 1.21 2019/07/12 15:40:55 jperkin Exp $
bin/compile_et
bin/gss-client
bin/k5srvutil
@@ -61,10 +61,11 @@
include/profile.h
include/verto-module.h
include/verto.h
-lib/krb5/plugins/kdb/libdb2.la
-lib/krb5/plugins/preauth/libotp.la
-lib/krb5/plugins/preauth/libpkinit.la
-lib/krb5/plugins/tls/libk5tls.la
+lib/krb5/plugins/kdb/db2.la
+${PLIST.ldap}lib/krb5/plugins/kdb/kldap.la
+lib/krb5/plugins/preauth/otp.la
+lib/krb5/plugins/preauth/pkinit.la
+lib/krb5/plugins/tls/k5tls.la
lib/libcom_err.la
lib/libgssapi_krb5.la
lib/libgssrpc.la
@@ -74,6 +75,7 @@
lib/libkadm5srv.la
lib/libkadm5srv_mit.la
lib/libkdb5.la
+${PLIST.ldap}lib/libkdb_ldap.la
lib/libkrad.la
lib/libkrb5.la
lib/libkrb5support.la
@@ -119,6 +121,7 @@
sbin/gss-server
sbin/kadmin.local
sbin/kadmind
+${PLIST.ldap}sbin/kdb5_ldap_util
sbin/kdb5_util
sbin/kprop
sbin/kpropd
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/distinfo
--- a/security/mit-krb5/distinfo Fri Jul 12 15:34:54 2019 +0000
+++ b/security/mit-krb5/distinfo Fri Jul 12 15:40:55 2019 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.68 2019/05/06 14:06:05 wiz Exp $
+$NetBSD: distinfo,v 1.69 2019/07/12 15:40:55 jperkin Exp $
SHA1 (krb5-1.16.2.tar.gz) = 6d6ef205194be386fb5f4e6bef32cb9fc79e853b
RMD160 (krb5-1.16.2.tar.gz) = 76188113d13eb9667d6057fe23d653a3d09d4817
SHA512 (krb5-1.16.2.tar.gz) = 738c071a90e0f38680bb17bdcf950310bc4549f3cb851e1d34de11239ae88178e6ee1a5e5d48c6d3efef544339b07d22dba5347dd763a4266d8d4df7cf47afc9
Size (krb5-1.16.2.tar.gz) = 9652415 bytes
SHA1 (patch-Makefile.in) = adacbcb9d569107e6b7af9b0e7ee177f79a9103c
-SHA1 (patch-aclocal.m4) = f94e587c4b3e15bcf7dde215cf146ba077202218
+SHA1 (patch-aclocal.m4) = 07b5d9ae38c74eaea6ba62aed9062dca1bf7f3fb
SHA1 (patch-build-tools_krb5-config.in) = 4ab922df1d86d86f9ef043f2c5cdf048c0477d3a
SHA1 (patch-config_lib.in) = 974db26486b3239e4fcd53be7280b32c802f6007
-SHA1 (patch-config_libnover.in) = 53f539cf98a961483e2b4ccf278c7376dbcf52d9
+SHA1 (patch-config_libnover.in) = 9337e06792e2dcc50c610503ef842ebfc18fc08b
SHA1 (patch-config_libobj.in) = c7395b9de5baf6612b8787fad55dbc051a680bfd
SHA1 (patch-config_libpriv.in) = 78342f649f8e9d3a3b5a4f83e65b6c46f589586b
SHA1 (patch-config_pre.in) = 255973132db9327190211214c3e33b4551bd283b
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/mit-krb5/options.mk Fri Jul 12 15:40:55 2019 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2019/07/12 15:40:55 jperkin Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.mit-krb5
+PKG_SUPPORTED_OPTIONS= ldap
+
+PLIST_VARS+= ldap
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mldap)
+PLIST.ldap= yes
+CONFIGURE_ARGS+= --with-ldap
+.include "../../databases/openldap-client/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ldap
+.endif
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/patches/patch-aclocal.m4
--- a/security/mit-krb5/patches/patch-aclocal.m4 Fri Jul 12 15:34:54 2019 +0000
+++ b/security/mit-krb5/patches/patch-aclocal.m4 Fri Jul 12 15:40:55 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aclocal.m4,v 1.1 2018/12/21 15:45:13 adam Exp $
+$NetBSD: patch-aclocal.m4,v 1.2 2019/07/12 15:40:55 jperkin Exp $
Don't make sunpro warnings into errors (warnings are seen in gcc too)
Add --enable-pkgsrc-libtool option
@@ -56,7 +56,7 @@
+ LIBINSTLIST=install-libtool
+ DEPLIBEXT=$LALIBEXT
+ DEPSTLIBEXT=$LALIBEXT
-+ PLUGIN='lib$(LIBBASE)$(LALIBEXT)'
++ PLUGIN='$(LIBBASE)$(LALIBEXT)'
+ PLUGININST=install-libtool
+ CC_LINK="$CC_LINK_LIBTOOL"
+ INSTALL_LIBTOOL='$(LIBTOOL) --mode=install'
diff -r 23387dc00d7b -r 37dcc2964767 security/mit-krb5/patches/patch-config_libnover.in
--- a/security/mit-krb5/patches/patch-config_libnover.in Fri Jul 12 15:34:54 2019 +0000
+++ b/security/mit-krb5/patches/patch-config_libnover.in Fri Jul 12 15:40:55 2019 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-config_libnover.in,v 1.2 2018/06/15 20:46:01 tez Exp $
+$NetBSD: patch-config_libnover.in,v 1.3 2019/07/12 15:40:55 jperkin Exp $
Add --enable-pkgsrc-libtool option
(was patch-ci)
---- config/libnover.in.orig 2016-02-29 19:50:13.000000000 +0000
+--- config/libnover.in.orig 2018-11-01 23:51:07.000000000 +0000
+++ config/libnover.in
@@ -20,8 +20,10 @@ LIBPREFIX=
@@ -21,15 +21,15 @@
set -x; objlist=`$(PARSE_OBJLISTS) $(PFOBJLISTS)` && $(AR) cq $@ $$objlist
$(RANLIB) $@
-+lib$(LIBBASE)$(LALIBEXT): ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT)
++$(LIBBASE)$(LALIBEXT): ${TOPLIBD}/$(LIBBASE)$(LALIBEXT)
+ $(RM) $@
-+ $(LN_S) ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT) $@
++ $(LN_S) ${TOPLIBD}/$(LIBBASE)$(LALIBEXT) $@
+
-+../lib$(LIBBASE)$(LALIBEXT): ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT)
++../$(LIBBASE)$(LALIBEXT): ${TOPLIBD}/$(LIBBASE)$(LALIBEXT)
+ $(RM) $@
-+ $(LN_S) ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT) $@
++ $(LN_S) ${TOPLIBD}/$(LIBBASE)$(LALIBEXT) $@
+
-+${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT): $(LAOBJLISTS)
++${TOPLIBD}/$(LIBBASE)$(LALIBEXT): $(LAOBJLISTS)
+ $(RM) $@
+ @echo "building $(LIBBASE) libtool archive ($(LIBMAJOR).$(LIBMINOR))"
+ @dirs=`echo $(LAOBJLISTS) | \
@@ -47,7 +47,7 @@
clean-libs:
$(RM) $(LIBBASE)$(DYNOBJEXT)
-+ $(LIBTOOL) --mode=uninstall $(RM) ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT)
++ $(LIBTOOL) --mode=uninstall $(RM) ${TOPLIBD}/$(LIBBASE)$(LALIBEXT)
$(RM) binutils.versions osf1.exports darwin.exports hpux.exports
clean-liblinks:
@@ -56,8 +56,8 @@
$(RM) $(DESTDIR)$(MODULE_INSTALL_DIR)/$(LIBBASE)$(DYNOBJEXT)
$(INSTALL_SHLIB) $(LIBBASE)$(DYNOBJEXT) $(DESTDIR)$(MODULE_INSTALL_DIR)
+install-libtool:
-+ $(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(MODULE_INSTALL_DIR)/lib$(LIBBASE)$(LALIBEXT)
-+ $(LIBTOOL) --mode=install $(INSTALL_SHLIB) ${TOPLIBD}/lib$(LIBBASE)$(LALIBEXT) $(DESTDIR)$(MODULE_INSTALL_DIR)/lib$(LIBBASE)$(LALIBEXT)
++ $(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(MODULE_INSTALL_DIR)/$(LIBBASE)$(LALIBEXT)
++ $(LIBTOOL) --mode=install $(INSTALL_SHLIB) ${TOPLIBD}/$(LIBBASE)$(LALIBEXT) $(DESTDIR)$(MODULE_INSTALL_DIR)/$(LIBBASE)$(LALIBEXT)
Makefile: $(top_srcdir)/config/libnover.in
$(BUILDTOP)/config.status: $(top_srcdir)/config/shlib.conf
Home |
Main Index |
Thread Index |
Old Index