Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" |
| 2 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" |
| 3 | SECTION = "libs" |
| 4 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | DEPENDS = "virtual/libintl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | LICENSE = "LGPLv2.1+ & GPLv2+" |
| 8 | LICENSE_${PN} = "GPLv2+" |
| 9 | LICENSE_lib${BPN} = "LGPLv2.1+" |
| 10 | LIC_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 | |
| 14 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.src.tar.gz \ |
| 15 | file://run-ptest \ |
| 16 | " |
| 17 | |
| 18 | require ea-acl.inc |
| 19 | |
| 20 | # libdir should point to .la |
| 21 | do_install_append() { |
| 22 | sed -i ${D}${libdir}/libattr.la -e \ |
| 23 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', |
| 24 | } |
| 25 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 26 | inherit ptest update-alternatives |
| 27 | |
| 28 | ALTERNATIVE_PRIORITY = "100" |
| 29 | ALTERNATIVE_${PN} = "setfattr" |
| 30 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 32 | PTEST_BUILD_HOST_FILES = "builddefs" |
| 33 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
| 34 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | do_install_ptest() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 36 | tar -c --exclude=ext test/ | ( cd ${D}${PTEST_PATH} && tar -xf - ) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | mkdir ${D}${PTEST_PATH}/include |
| 38 | for i in builddefs buildmacros buildrules; \ |
| 39 | do cp ${S}/include/$i ${D}${PTEST_PATH}/include/; \ |
| 40 | done |
| 41 | sed -e 's|; @echo|; echo|' -i ${D}${PTEST_PATH}/test/Makefile |
| 42 | } |
| 43 | |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 44 | RDEPENDS_${PN}-ptest = "attr coreutils perl-module-filehandle perl-module-getopt-std perl-module-posix make perl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 46 | BBCLASSEXTEND = "native nativesdk" |