blob: 97bca469829f26f0917e402c0aa69bb65bf6a29f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utilities for manipulating filesystem extended attributes"
Andrew Geisslerc723b722021-01-08 16:14:09 -06002DESCRIPTION = "A set of tools for manipulating extended attributes on filesystem \
3objects, in particular getfattr(1) and setfattr(1). An attr(1) command \
4is also provided which is largely compatible with the SGI IRIX tool of \
5the same name."
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
7SECTION = "libs"
8
Patrick Williamsc0f7c042017-02-23 20:41:17 -06009DEPENDS = "virtual/libintl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010
11LICENSE = "LGPLv2.1+ & GPLv2+"
12LICENSE_${PN} = "GPLv2+"
13LICENSE_lib${BPN} = "LGPLv2.1+"
14LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
Andrew Geissler4c19ea12020-10-27 13:52:24 -050015 file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
Andrew Geissler82c905d2020-04-13 13:39:40 -050016 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
18
Andrew Geissler82c905d2020-04-13 13:39:40 -050019SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020 file://run-ptest \
21"
22
Andrew Geissler82c905d2020-04-13 13:39:40 -050023inherit ptest update-alternatives autotools gettext
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024
Andrew Geissler82c905d2020-04-13 13:39:40 -050025PACKAGES =+ "lib${BPN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026
Andrew Geissler82c905d2020-04-13 13:39:40 -050027FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080028
29ALTERNATIVE_PRIORITY = "100"
30ALTERNATIVE_${PN} = "setfattr"
31ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
Brad Bishop19323692019-04-05 15:28:33 -040033PTEST_BUILD_HOST_FILES = "builddefs"
34PTEST_BUILD_HOST_PATTERN = "^RPM"
35
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036do_install_ptest() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 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 Williamsc124f4f2015-09-15 14:41:29 -050051}
52
Andrew Geissler82c905d2020-04-13 13:39:40 -050053RDEPENDS_${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 Williamsc124f4f2015-09-15 14:41:29 -050066
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050067BBCLASSEXTEND = "native nativesdk"