blob: b2bc8bac2811785860ae75610df19cddf72e0243 [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 \
15"
16
17require ea-acl.inc
18
19# avoid RPATH hardcode to staging dir
20do_configure_append() {
21 sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
22 ${S}/config.status
23}
24
25# libdir should point to .la
26do_install_append() {
27 sed -i ${D}${libdir}/libacl.la -e \
28 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
29}
30
31inherit ptest
32
33do_install_ptest() {
34 tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} && tar -xf - )
35 mkdir ${D}${PTEST_PATH}/include
36 cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
37}
38
39RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"