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