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 \ |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame^] | 11 | file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" |
| 14 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | file://run-ptest \ |
| 17 | " |
| 18 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | inherit ptest update-alternatives autotools gettext |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | PACKAGES =+ "lib${BPN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 23 | FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | |
| 25 | ALTERNATIVE_PRIORITY = "100" |
| 26 | ALTERNATIVE_${PN} = "setfattr" |
| 27 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | PTEST_BUILD_HOST_FILES = "builddefs" |
| 30 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
| 31 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | do_install_ptest() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 33 | cp ${B}/Makefile ${D}${PTEST_PATH} |
| 34 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 35 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 36 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
| 37 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 38 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 39 | -i ${D}${PTEST_PATH}/Makefile |
| 40 | |
| 41 | sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile |
| 42 | sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile |
| 43 | sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile |
| 44 | sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile |
| 45 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} |
| 46 | cp -rf ${S}/test/ ${D}${PTEST_PATH} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | } |
| 48 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 49 | RDEPENDS_${PN}-ptest = "attr \ |
| 50 | coreutils \ |
| 51 | perl-module-filehandle \ |
| 52 | perl-module-getopt-std \ |
| 53 | perl-module-posix \ |
| 54 | make \ |
| 55 | perl \ |
| 56 | gawk \ |
| 57 | perl-module-cwd \ |
| 58 | perl-module-file-basename \ |
| 59 | perl-module-file-path \ |
| 60 | perl-module-file-spec \ |
| 61 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 62 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 63 | BBCLASSEXTEND = "native nativesdk" |