From: Andreas Oberritter Date: Mon, 6 Jun 2016 15:26:06 +0000 (+0200) Subject: keyutils: new recipe (version 1.5.9) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f03ae59909fd664ea5226cf7637cb5381284afa1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git keyutils: new recipe (version 1.5.9) Used by nfs-utils for nfsidmap, if available. Includes a backported patch for musl and a description text from meta-ivi. Signed-off-by: Andreas Oberritter --- diff --git a/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch b/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch new file mode 100644 index 00000000000..b17153c599e --- /dev/null +++ b/meta/recipes-support/keyutils/keyutils/0001-Include-limits.h-for-UINT_MAX.patch @@ -0,0 +1,30 @@ +Upstream-Status: Backport [git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git master] + +From ab818a7f5818177a3da09fce6aa064ef648da372 Mon Sep 17 00:00:00 2001 +From: Felix Janda +Date: Sat, 4 Apr 2015 00:13:21 +0200 +Subject: [PATCH] Include for UINT_MAX + +Fixes building with musl libc. + +Signed-off-by: Felix Janda +Signed-off-by: David Howells +--- + key.dns_resolver.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/key.dns_resolver.c b/key.dns_resolver.c +index c2a9fe5..9c9d458 100644 +--- a/key.dns_resolver.c ++++ b/key.dns_resolver.c +@@ -42,6 +42,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +1.9.1 + diff --git a/meta/recipes-support/keyutils/keyutils_1.5.9.bb b/meta/recipes-support/keyutils/keyutils_1.5.9.bb new file mode 100644 index 00000000000..3c746d238d3 --- /dev/null +++ b/meta/recipes-support/keyutils/keyutils_1.5.9.bb @@ -0,0 +1,37 @@ +SUMMARY = "Linux Key Management Utilities" +DESCRIPTION = "Keyutils is a set of utilities for managing the key retention \ +facility in the kernel, which can be used by filesystems, block devices and \ +more to gain and retain the authorization and encryption keys required to \ +perform secure operations." +HOMEPAGE = "https://people.redhat.com/~dhowells/keyutils/" +LICENSE = "GPLv2+ & LGPLv2.1+" +LICENSE_${PN} = "GPLv2+" +LICENSE_lib${PN} = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \ + file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f" + +SRC_URI = "https://people.redhat.com/~dhowells/keyutils/${BP}.tar.bz2 \ + file://0001-Include-limits.h-for-UINT_MAX.patch" +SRC_URI[md5sum] = "7f8ac985c45086b5fbcd12cecd23cf07" +SRC_URI[sha256sum] = "4da2c5552c688b65ab14d4fd40fbdf720c8b396d8ece643e040cf6e707e083ae" + +EXTRA_OEMAKE = " \ + DESTDIR=${D} \ + ETCDIR=${sysconfdir} \ + BINDIR=${bindir} \ + SBINDIR=${sbindir} \ + SHAREDIR=${datadir}/${BPN} \ + MANDIR=${mandir} \ + INCLUDEDIR=${includedir} \ + LIBDIR=${base_libdir} \ + USRLIBDIR=${libdir} \ + BUILDFOR= \ +" + +do_install() { + oe_runmake install +} + +PACKAGES =+ "lib${PN}" + +FILES_lib${PN} = "${base_libdir}/lib*${SOLIBS}"