diff options
Diffstat (limited to 'meta/recipes-support/attr/acl.inc')
-rw-r--r-- | meta/recipes-support/attr/acl.inc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/acl.inc b/meta/recipes-support/attr/acl.inc new file mode 100644 index 0000000000..bc9fd6dda3 --- /dev/null +++ b/meta/recipes-support/attr/acl.inc | |||
@@ -0,0 +1,39 @@ | |||
1 | SUMMARY = "Utilities for managing POSIX Access Control Lists" | ||
2 | HOMEPAGE = "http://savannah.nongnu.org/projects/acl/" | ||
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 | SRC_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 | |||
17 | require ea-acl.inc | ||
18 | |||
19 | # avoid RPATH hardcode to staging dir | ||
20 | do_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 | ||
26 | do_install_append() { | ||
27 | sed -i ${D}${libdir}/libacl.la -e \ | ||
28 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', | ||
29 | } | ||
30 | |||
31 | inherit ptest | ||
32 | |||
33 | do_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 | |||
39 | RDEPENDS_${PN}-ptest = "bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow" | ||