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