Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities for managing POSIX Access Control Lists" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 2 | DESCRIPTION = "ACL allows you to provide different levels of access to files \ |
| 3 | and folders for different users." |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame^] | 4 | |
| 5 | HOMEPAGE = "http://savannah.nongnu.org/projects/acl/" |
| 6 | BUGTRACKER = "http://savannah.nongnu.org/bugs/?group=acl" |
| 7 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | SECTION = "libs" |
| 9 | |
| 10 | LICENSE = "LGPLv2.1+ & GPLv2+" |
| 11 | LICENSE_${PN} = "GPLv2+" |
| 12 | LICENSE_lib${BPN} = "LGPLv2.1+" |
| 13 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \ |
| 14 | file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" |
| 15 | |
| 16 | DEPENDS = "attr" |
| 17 | |
| 18 | SRC_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 | |
| 24 | SRC_URI[md5sum] = "007aabf1dbb550bcddde52a244cd1070" |
| 25 | SRC_URI[sha256sum] = "06be9865c6f418d851ff4494e12406568353b891ffe1f596b34693c387af26c7" |
| 26 | |
| 27 | inherit autotools gettext ptest |
| 28 | |
| 29 | PACKAGES =+ "lib${BPN}" |
| 30 | |
| 31 | FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" |
| 32 | |
| 33 | PTEST_BUILD_HOST_FILES = "builddefs" |
| 34 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
| 35 | |
| 36 | do_compile_ptest() { |
| 37 | oe_runmake libtestlookup.la |
| 38 | } |
| 39 | |
| 40 | do_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 | |
| 62 | RDEPENDS_${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 | |
| 79 | BBCLASSEXTEND = "native nativesdk" |