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