Skip to contentSkip to conversation

krb5: update to version 1.12.2

PATCH New [email protected] 1 participant 1 message Sep 28, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 krb5: update to version 1.12.2

From: Jackie Huang <[email protected]>

Changed:
* Add init scripts and default configs based on debian
* Add a patch for crosscompile nm
* Add a patch to suppress /usr/lib in krb5-config
* Add DESCRIPTION
* Remove blacklist and inherit autotools-brokensep
* Add PACKAGECONFIG for ldap and readline

---
 .../krb5/krb5/crosscompile_nm.patch                |  29 +++++
 .../debian-suppress-usr-lib-in-krb5-config.patch   |  48 +++++++
 .../krb5/krb5/etc/default/krb5-admin-server        |   6 +
 .../krb5/krb5/etc/default/krb5-kdc                 |   5 +
 .../krb5/krb5/etc/init.d/krb5-admin-server         | 140 +++++++++++++++++++++
 .../krb5/krb5/etc/init.d/krb5-kdc                  | 133 ++++++++++++++++++++
 .../krb5/{krb5_1.11.3.bb => krb5_1.12.2.bb}        |  38 ++++--
 7 files changed, 392 insertions(+), 7 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch
 create mode 100644 meta-oe/recipes-connectivity/krb5/krb5/debian-suppress-usr-lib-in-krb5-config.patch
 create mode 100644 meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server
 create mode 100644 meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-kdc
 create mode 100755 meta-oe/recipes-connectivity/krb5/krb5/etc/init.d/krb5-admin-server
 create mode 100755 meta-oe/recipes-connectivity/krb5/krb5/etc/init.d/krb5-kdc
 rename meta-oe/recipes-connectivity/krb5/{krb5_1.11.3.bb => krb5_1.12.2.bb} (49%)
meta-oe/recipes-connectivity/krb5/krb5/crosscompile_nm.patch new file +29 -0
new file mode 100644
index 0000000..d3e6937
@@ -0,0 +1,29 @@
+Modifies export-check.pl to use look for $ENV{'NM'} before
+defaulting to using 'nm'
+
+Upstream-Status: Pending
+
+Signed-off-by: Amy Fong <[email protected]>
+---
+
+ export-check.pl |    7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+Index: src/util/export-check.pl
+===================================================================
+--- src.orig/util/export-check.pl
++++ src/util/export-check.pl
+@@ -38,7 +38,12 @@
+ my($exfile, $libfile) = @ARGV;
+ 
+ @missing = ();
+-open NM, "nm -Dg --defined-only $libfile |" || die "can't run nm on $libfile: $!";
++if (defined($ENV{'NM'})) {
++	$nm = $ENV{'NM'};
++} else {
++	$nm = "nm";
++}
++open NM, "$nm -Dg --defined-only $libfile |" || die "can't run nm on $libfile: $!";
+ open EXPORT, "< $exfile" || die "can't read $exfile: $!";
+ 
+ @export = <EXPORT>;
meta-oe/recipes-connectivity/krb5/krb5/debian-suppress-usr-lib-in-krb5-config.patch new file +48 -0

48 lines not on this page · raw message

meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server new file +6 -0
new file mode 100644
index 0000000..2835929
@@ -0,0 +1,6 @@
+# Automatically generated.  If you change anything in this file other than the
+# values of RUN_KADMIND or DAEMON_ARGS, first run dpkg-reconfigure
+# krb5-admin-server and disable managing the kadmin configuration with
+# debconf.  Otherwise, changes will be overwritten.
+
+RUN_KADMIND=true
meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-kdc new file +5 -0
new file mode 100644
index 0000000..310bfcf
@@ -0,0 +1,5 @@
+# Automatically generated.  Only the value of DAEMON_ARGS will be preserved.
+# If you change anything in this file other than DAEMON_ARGS, first run
+# dpkg-reconfigure krb5-kdc and disable managing the KDC configuration with
+# debconf.  Otherwise, changes will be overwritten.
+
meta-oe/recipes-connectivity/krb5/krb5/etc/init.d/krb5-admin-server new file +140 -0

140 lines not on this page · raw message

meta-oe/recipes-connectivity/krb5/krb5/etc/init.d/krb5-kdc new file +133 -0

133 lines not on this page · raw message

meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb renamed from meta-oe/recipes-connectivity/krb5/krb5_1.11.3.bb +31 -7
similarity index 49%
rename from meta-oe/recipes-connectivity/krb5/krb5_1.11.3.bb
rename to meta-oe/recipes-connectivity/krb5/krb5_1.12.2.bb
index 49b8917..0b14d3c 100644
@@ -1,20 +1,36 @@
 SUMMARY = "A network authentication protocol"
+DESCRIPTION = "Kerberos is a system for authenticating users and services on a network. \
+ Kerberos is a trusted third-party service.  That means that there is a \
+ third party (the Kerberos server) that is trusted by all the entities on \
+ the network (users and services, usually called "principals"). \
+ . \
+ This is the MIT reference implementation of Kerberos V5. \
+ . \
+ This package contains the Kerberos key server (KDC).  The KDC manages all \
+ authentication credentials for a Kerberos realm, holds the master keys \
+ for the realm, and responds to authentication requests.  This package \
+ should be installed on both master and slave KDCs."
+
 HOMEPAGE = "http://web.mit.edu/Kerberos/"
 SECTION = "console/network"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${S}/../NOTICE;md5=1d9c8180d79838c02eb5eb1a3b184eb9"
+LIC_FILES_CHKSUM = "file://${S}/../NOTICE;md5=450c80c6258ce03387bd09df37638ebc"
 DEPENDS = "ncurses util-linux e2fsprogs e2fsprogs-native"
 
-inherit autotools binconfig perlnative
-
-PNBLACKLIST[krb5] = "BROKEN: doesn't build with B!=S"
+inherit autotools-brokensep binconfig perlnative
 
 SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}"
 SRC_URI = "http://web.mit.edu/kerberos/dist/${BPN}/${SHRT_VER}/${BP}-signed.tar \
            file://0001-aclocal-Add-parameter-to-disable-keyutils-detection.patch \
+           file://debian-suppress-usr-lib-in-krb5-config.patch;striplevel=2 \
+           file://crosscompile_nm.patch \
+           file://etc/init.d/krb5-kdc \
+           file://etc/init.d/krb5-admin-server \
+           file://etc/default/krb5-kdc \
+           file://etc/default/krb5-admin-server \
 "
-SRC_URI[md5sum] = "56f0ae274b285320b8a597cb89442449"
-SRC_URI[sha256sum] = "9abd94bb94a70996da0f8d90408957154bb543271b097e86c63eb33e5f5751b5"
+SRC_URI[md5sum] = "357f1312b7720a0a591e22db0f7829fe"
+SRC_URI[sha256sum] = "09bd180107b5c2b3b7378c57c023fb02a103d4cac39d6f2dd600275d7a4f3744"
 
 S = "${WORKDIR}/${P}/src/"
 
@@ -22,6 +38,8 @@ PACKAGECONFIG ??= "openssl"
 PACKAGECONFIG[libedit] = "--with-libedit,--without-libedit,libedit"
 PACKAGECONFIG[openssl] = "--with-pkinit-crypto-impl=openssl,,openssl"
 PACKAGECONFIG[keyutils] = "--enable-keyutils,--disable-keyutils,keyutils"
+PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
+PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
 
 EXTRA_OECONF += " --without-tcl --with-system-et --disable-rpath"
 CACHED_CONFIGUREVARS += "krb5_cv_attr_constructor_destructor=yes ac_cv_func_regcomp=yes \
@@ -31,8 +49,8 @@ CACHED_CONFIGUREVARS += "krb5_cv_attr_constructor_destructor=yes ac_cv_func_regc
 CFLAGS_append += "-DDESTRUCTOR_ATTR_WORKS=1 -I${STAGING_INCDIR}/et"
 LDFLAGS_append += "-lpthread"
 
-FILES_${PN}-doc += "${datadir}/examples"
 FILES_${PN} += "${datadir}/gnats"
+FILES_${PN}-doc += "${datadir}/examples"
 FILES_${PN}-dbg += "${libdir}/krb5/plugins/*/.debug"
 
 krb5_do_unpack() {
@@ -50,3 +68,9 @@ do_configure() {
     autoreconf
     oe_runconf
 }
+
+do_install_append() {
+    mkdir -p ${D}/etc/init.d ${D}/etc/default
+    install -m 0755 ${WORKDIR}/etc/init.d/* ${D}/etc/init.d
+    install -m 0644 ${WORKDIR}/etc/default/* ${D}/etc/default
+}
Signature · 1 line
2.0.0