Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "Implement the ability for a user to attach name:value pairs to objects within the XFS filesystem." |
| 3 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" |
| 5 | SECTION = "libs" |
| 6 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 7 | DEPENDS = "virtual/libintl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
| 9 | LICENSE = "LGPLv2.1+ & GPLv2+" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | LICENSE:${PN} = "GPLv2+" |
| 11 | LICENSE:lib${BPN} = "LGPLv2.1+" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 13 | file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" |
| 16 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 17 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | file://run-ptest \ |
| 19 | " |
| 20 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | inherit ptest update-alternatives autotools gettext |
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 | PACKAGES =+ "lib${BPN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 26 | |
| 27 | ALTERNATIVE_PRIORITY = "100" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 28 | ALTERNATIVE:${PN} = "setfattr" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 31 | PTEST_BUILD_HOST_FILES = "builddefs" |
| 32 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
| 33 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | do_install_ptest() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 35 | cp ${B}/Makefile ${D}${PTEST_PATH} |
| 36 | sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 37 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 38 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
| 39 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ |
| 40 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
| 41 | -i ${D}${PTEST_PATH}/Makefile |
| 42 | |
| 43 | sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile |
| 44 | sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile |
| 45 | sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile |
| 46 | sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile |
| 47 | cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} |
| 48 | cp -rf ${S}/test/ ${D}${PTEST_PATH} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | } |
| 50 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 51 | RDEPENDS:${PN}-ptest = "attr \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 52 | coreutils \ |
| 53 | perl-module-filehandle \ |
| 54 | perl-module-getopt-std \ |
| 55 | perl-module-posix \ |
| 56 | make \ |
| 57 | perl \ |
| 58 | gawk \ |
| 59 | perl-module-cwd \ |
| 60 | perl-module-file-basename \ |
| 61 | perl-module-file-path \ |
| 62 | perl-module-file-spec \ |
| 63 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 64 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 65 | BBCLASSEXTEND = "native nativesdk" |