blob: 9badd33254633e82e6079d6dd1733a34460a2e3f [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
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000010LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
11LICENSE:${PN} = "GPL-2.0-or-later"
12LICENSE:lib${BPN} = "LGPL-2.1-or-later"
Andrew Geissler82c905d2020-04-13 13:39:40 -050013LIC_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 \
Andrew Geissler517393d2023-01-13 08:55:19 -060022 file://0001-chacl-Use-portable-version-of-dirent-and-readdir.patch \
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 "
24
William A. Kennington IIIac69b482021-06-02 12:28:27 -070025SRC_URI[sha256sum] = "760c61c68901b37fdd5eefeeaf4c0c7a26bdfdd8ac747a1edff1ce0e243c11af"
Andrew Geissler82c905d2020-04-13 13:39:40 -050026
27inherit autotools gettext ptest
28
Andrew Geissler517393d2023-01-13 08:55:19 -060029EXTRA_OECONF += "--enable-largefile"
30
Andrew Geissler82c905d2020-04-13 13:39:40 -050031PACKAGES =+ "lib${BPN}"
32
Patrick Williams213cb262021-08-07 19:21:33 -050033FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
Andrew Geissler82c905d2020-04-13 13:39:40 -050034
35PTEST_BUILD_HOST_FILES = "builddefs"
36PTEST_BUILD_HOST_PATTERN = "^RPM"
37
38do_compile_ptest() {
39 oe_runmake libtestlookup.la
40}
41
42do_install_ptest() {
43 cp -rf ${S}/test/ ${D}${PTEST_PATH}
44 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
45 mkdir -p ${D}${PTEST_PATH}/.libs
46 cp -rf ${B}/.libs/libtestlookup* ${D}${PTEST_PATH}/.libs
47 cp ${B}/Makefile ${D}${PTEST_PATH}
48
49 sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
50 -e 's|${DEBUG_PREFIX_MAP}||g' \
51 -e 's:${HOSTTOOLS_DIR}/::g' \
52 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
53 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
54 -i ${D}${PTEST_PATH}/Makefile
55
56 sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
57 sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
58 sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
59 sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
60
61 rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai
62}
63
Patrick Williams8e7b46e2023-05-01 14:19:06 -050064do_install_ptest:append:libc-musl() {
65 sed -i -e '/test\/misc.test/d' ${D}${PTEST_PATH}/Makefile
66}
67
Patrick Williams213cb262021-08-07 19:21:33 -050068RDEPENDS:${PN}-ptest = "acl \
Andrew Geissler82c905d2020-04-13 13:39:40 -050069 bash \
70 coreutils \
71 perl \
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050072 perl-module-constant \
Andrew Geissler82c905d2020-04-13 13:39:40 -050073 perl-module-filehandle \
74 perl-module-getopt-std \
75 perl-module-posix \
76 shadow \
77 make \
78 gawk \
79 e2fsprogs-mke2fs \
80 perl-module-cwd \
81 perl-module-file-basename \
82 perl-module-file-path \
83 perl-module-file-spec \
84 "
85
86BBCLASSEXTEND = "native nativesdk"