blob: 5bb50f77f765794d62688a17827339a2e6eea89b [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Utilities for managing POSIX Access Control Lists"
2HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
Andrew Geissler82c905d2020-04-13 13:39:40 -05003SECTION = "libs"
4
5LICENSE = "LGPLv2.1+ & GPLv2+"
6LICENSE_${PN} = "GPLv2+"
7LICENSE_lib${BPN} = "LGPLv2.1+"
8LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \
9 file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764"
10
11DEPENDS = "attr"
12
13SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.tar.gz \
14 file://run-ptest \
15 file://0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch \
16 file://0001-test-patch-out-failing-bits.patch \
17 "
18
19SRC_URI[md5sum] = "007aabf1dbb550bcddde52a244cd1070"
20SRC_URI[sha256sum] = "06be9865c6f418d851ff4494e12406568353b891ffe1f596b34693c387af26c7"
21
22inherit autotools gettext ptest
23
24PACKAGES =+ "lib${BPN}"
25
26FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}"
27
28PTEST_BUILD_HOST_FILES = "builddefs"
29PTEST_BUILD_HOST_PATTERN = "^RPM"
30
31do_compile_ptest() {
32 oe_runmake libtestlookup.la
33}
34
35do_install_ptest() {
36 cp -rf ${S}/test/ ${D}${PTEST_PATH}
37 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
38 mkdir -p ${D}${PTEST_PATH}/.libs
39 cp -rf ${B}/.libs/libtestlookup* ${D}${PTEST_PATH}/.libs
40 cp ${B}/Makefile ${D}${PTEST_PATH}
41
42 sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
43 -e 's|${DEBUG_PREFIX_MAP}||g' \
44 -e 's:${HOSTTOOLS_DIR}/::g' \
45 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
46 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
47 -i ${D}${PTEST_PATH}/Makefile
48
49 sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
50 sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
51 sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
52 sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
53
54 rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai
55}
56
57RDEPENDS_${PN}-ptest = "acl \
58 bash \
59 coreutils \
60 perl \
61 perl-module-filehandle \
62 perl-module-getopt-std \
63 perl-module-posix \
64 shadow \
65 make \
66 gawk \
67 e2fsprogs-mke2fs \
68 perl-module-cwd \
69 perl-module-file-basename \
70 perl-module-file-path \
71 perl-module-file-spec \
72 "
73
74BBCLASSEXTEND = "native nativesdk"