blob: 8f3dc45cf79c5ed9c60e325d0b70a7dee62d3b0a [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "Utilities for managing POSIX Access Control Lists"
2HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
3SECTION = "libs"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005LICENSE = "LGPLv2.1+ & GPLv2+"
6LICENSE_${PN} = "GPLv2+"
7LICENSE_lib${BPN} = "LGPLv2.1+"
8LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \
9 file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764"
10
11DEPENDS = "attr"
12
13SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.src.tar.gz \
14 file://configure.ac;subdir=${S} \
15 file://run-ptest \
16 file://acl-fix-the-order-of-expected-output-of-getfacl.patch \
17 file://test-fix-insufficient-quoting-of.patch \
18 file://test-fixups-on-SELinux-machines-for-root-testcases.patch \
19 file://test-fix-directory-permissions.patch \
20 file://Makefile-libacl-should-depend-on-include.patch \
21"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
23SRC_URI[md5sum] = "a61415312426e9c2212bd7dc7929abda"
24SRC_URI[sha256sum] = "179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23"
25
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026require ea-acl.inc
27
28# avoid RPATH hardcode to staging dir
29do_configure_append() {
30 sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
31 ${S}/config.status
32}
33
34# libdir should point to .la
35do_install_append() {
36 sed -i ${D}${libdir}/libacl.la -e \
37 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
38}
39
40inherit ptest
41
42do_install_ptest() {
43 tar -c --exclude=nfs test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
44 mkdir ${D}${PTEST_PATH}/include
45 cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
Brad Bishopd7bf8c12018-02-25 22:55:05 -050046 # Remove any build host references
47 sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
48 -e 's:${HOSTTOOLS_DIR}/::g' \
49 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
50 -i ${D}${PTEST_PATH}/include/builddefs
Brad Bishop6e60e8b2018-02-01 10:27:11 -050051}
52
53RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050054
55BBCLASSEXTEND = "native nativesdk"