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