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