blob: 24ef5adfd3ec7ac9ba25246bc6f114c3647b14e7 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utilities for manipulating filesystem extended attributes"
2HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
3SECTION = "libs"
4
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005DEPENDS = "virtual/libintl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7LICENSE = "LGPLv2.1+ & GPLv2+"
8LICENSE_${PN} = "GPLv2+"
9LICENSE_lib${BPN} = "LGPLv2.1+"
10LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
11 file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
12 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
13
14SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.src.tar.gz \
15 file://run-ptest \
16"
17
18require ea-acl.inc
19
20# libdir should point to .la
21do_install_append() {
22 sed -i ${D}${libdir}/libattr.la -e \
23 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
24}
25
26inherit ptest
27
28do_install_ptest() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029 tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030 mkdir ${D}${PTEST_PATH}/include
31 for i in builddefs buildmacros buildrules; \
32 do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \
33 done
34 sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035
36 # Remove any build host references
37 sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
38 -e 's:${HOSTTOOLS_DIR}/::g' \
39 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
40 -i ${D}${PTEST_PATH}/include/builddefs
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041}
42
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050043RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050045BBCLASSEXTEND = "native nativesdk"