blob: 198fb4fed9a4451e3cf9c2b472efd2a2f2464a77 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utilities for managing POSIX Access Control Lists"
2HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
3SECTION = "libs"
4
5LICENSE = "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"
12SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.src.tar.gz \
13 file://run-ptest \
14 file://acl-fix-the-order-of-expected-output-of-getfacl.patch \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015 file://test-fix-insufficient-quoting-of.patch \
16 file://test-fixups-on-SELinux-machines-for-root-testcases.patch \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017"
18
19require ea-acl.inc
20
21# avoid RPATH hardcode to staging dir
22do_configure_append() {
23 sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
24 ${S}/config.status
25}
26
27# libdir should point to .la
28do_install_append() {
29 sed -i ${D}${libdir}/libacl.la -e \
30 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
31}
32
33inherit ptest
34
35do_install_ptest() {
36 tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} && tar -xf - )
37 mkdir ${D}${PTEST_PATH}/include
38 cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
39}
40
41RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"