2019-04-02 19:36:31 +00:00
|
|
|
SUMMARY = "Linux Key Management Utilities"
|
|
|
|
DESCRIPTION = "\
|
|
|
|
Utilities to control the kernel key management facility and to provide \
|
|
|
|
a mechanism by which the kernel call back to userspace to get a key \
|
|
|
|
instantiated. \
|
|
|
|
"
|
|
|
|
HOMEPAGE = "http://people.redhat.com/dhowells/keyutils"
|
|
|
|
SECTION = "base"
|
|
|
|
|
|
|
|
LICENSE = "LGPLv2.1+ & GPLv2.0+"
|
|
|
|
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \
|
|
|
|
file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
inherit siteinfo autotools-brokensep ptest
|
2019-04-02 19:36:31 +00:00
|
|
|
|
|
|
|
SRC_URI = "http://people.redhat.com/dhowells/keyutils/${BP}.tar.bz2 \
|
|
|
|
file://keyutils-test-fix-output-format.patch \
|
|
|
|
file://keyutils-fix-error-report-by-adding-default-message.patch \
|
|
|
|
file://run-ptest \
|
2021-05-05 12:45:55 +00:00
|
|
|
file://fix_library_install_path.patch \
|
2019-04-02 19:36:31 +00:00
|
|
|
"
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
SRC_URI[md5sum] = "919af7f33576816b423d537f8a8692e8"
|
|
|
|
SRC_URI[sha256sum] = "c8b15722ae51d95b9ad76cc6d49a4c2cc19b0c60f72f61fb9bf43eea7cbd64ce"
|
2019-04-02 19:36:31 +00:00
|
|
|
|
|
|
|
EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall' \
|
|
|
|
NO_ARLIB=1 \
|
|
|
|
BINDIR=${base_bindir} \
|
|
|
|
SBINDIR=${base_sbindir} \
|
2021-05-05 12:45:55 +00:00
|
|
|
LIBDIR=${libdir} \
|
|
|
|
USRLIBDIR=${libdir} \
|
|
|
|
INCLUDEDIR=${includedir} \
|
2019-04-02 19:36:31 +00:00
|
|
|
BUILDFOR=${SITEINFO_BITS}-bit \
|
|
|
|
NO_GLIBC_KEYERR=1 \
|
|
|
|
"
|
|
|
|
|
|
|
|
do_install () {
|
2021-05-05 12:45:55 +00:00
|
|
|
install -d ${D}/${libdir}/pkgconfig
|
2019-04-02 19:36:31 +00:00
|
|
|
oe_runmake DESTDIR=${D} install
|
|
|
|
}
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
do_install_append_class-nativesdk() {
|
|
|
|
install -d ${D}${datadir}
|
|
|
|
src_dir="${D}${target_datadir}"
|
|
|
|
mv $src_dir/* ${D}${datadir}
|
|
|
|
par_dir=`dirname $src_dir`
|
|
|
|
rmdir $src_dir $par_dir
|
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}
|
|
|
|
mv ${D}/etc/* ${D}${sysconfdir}/
|
|
|
|
rmdir ${D}/etc
|
|
|
|
}
|
|
|
|
|
2019-04-02 19:36:31 +00:00
|
|
|
do_install_ptest () {
|
|
|
|
cp -r ${S}/tests ${D}${PTEST_PATH}/
|
|
|
|
sed -i -e 's/OSDIST=Unknown/OSDIST=${DISTRO}/' ${D}${PTEST_PATH}/tests/prepare.inc.sh
|
|
|
|
}
|
|
|
|
|
2021-05-05 12:45:55 +00:00
|
|
|
|
|
|
|
RDEPENDS_${PN}-ptest += "lsb-release"
|
|
|
|
RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils"
|
|
|
|
RDEPENDS_${PN}-ptest_append_libc-musl = " musl-utils"
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|