Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | SUMMARY = "Linux Key Management Utilities" |
| 2 | DESCRIPTION = "\ |
| 3 | Utilities to control the kernel key management facility and to provide \ |
| 4 | a mechanism by which the kernel call back to userspace to get a key \ |
| 5 | instantiated. \ |
| 6 | " |
| 7 | HOMEPAGE = "http://people.redhat.com/dhowells/keyutils" |
| 8 | SECTION = "base" |
| 9 | |
| 10 | LICENSE = "LGPLv2.1+ & GPLv2.0+" |
| 11 | |
| 12 | LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \ |
| 13 | file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f" |
| 14 | |
| 15 | |
| 16 | inherit siteinfo ptest |
| 17 | |
| 18 | SRC_URI = "http://people.redhat.com/dhowells/keyutils/${BP}.tar.bz2 \ |
| 19 | file://keyutils-test-fix-output-format.patch \ |
| 20 | file://keyutils-fix-error-report-by-adding-default-message.patch \ |
| 21 | file://run-ptest \ |
| 22 | " |
| 23 | |
| 24 | SRC_URI[md5sum] = "191987b0ab46bb5b50efd70a6e6ce808" |
| 25 | SRC_URI[sha256sum] = "d3aef20cec0005c0fa6b4be40079885567473185b1a57b629b030e67942c7115" |
| 26 | |
| 27 | EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall' \ |
| 28 | NO_ARLIB=1 \ |
| 29 | BINDIR=${base_bindir} \ |
| 30 | SBINDIR=${base_sbindir} \ |
| 31 | LIBDIR=${base_libdir} \ |
| 32 | USRLIBDIR=${base_libdir} \ |
| 33 | BUILDFOR=${SITEINFO_BITS}-bit \ |
| 34 | NO_GLIBC_KEYERR=1 \ |
| 35 | " |
| 36 | |
| 37 | do_install () { |
| 38 | install -d ${D}/${nonarch_base_libdir}/pkgconfig |
| 39 | oe_runmake DESTDIR=${D} install |
| 40 | } |
| 41 | |
| 42 | do_install_ptest () { |
| 43 | cp -r ${S}/tests ${D}${PTEST_PATH}/ |
| 44 | sed -i -e 's/OSDIST=Unknown/OSDIST=${DISTRO}/' ${D}${PTEST_PATH}/tests/prepare.inc.sh |
| 45 | } |
| 46 | |
| 47 | FILES_${PN}-dev += "${nonarch_base_libdir}/pkgconfig/libkeyutils.pc" |
| 48 | |
| 49 | RDEPENDS_${PN}-ptest += "lsb" |
| 50 | RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils" |
| 51 | RDEPENDS_${PN}-ptest_append_libc-musl = " musl-utils" |