blob: 0c3330a6861e421076fbf8b3d67d61436c5b3945 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Utilities for manipulating filesystem extended attributes"
2HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
3SECTION = "libs"
4
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005DEPENDS = "virtual/libintl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7LICENSE = "LGPLv2.1+ & GPLv2+"
8LICENSE_${PN} = "GPLv2+"
9LICENSE_lib${BPN} = "LGPLv2.1+"
10LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
Andrew Geissler4c19ea12020-10-27 13:52:24 -050011 file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
Andrew Geissler82c905d2020-04-13 13:39:40 -050012 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
14
Andrew Geissler82c905d2020-04-13 13:39:40 -050015SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016 file://run-ptest \
17"
18
Andrew Geissler82c905d2020-04-13 13:39:40 -050019inherit ptest update-alternatives autotools gettext
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
Andrew Geissler82c905d2020-04-13 13:39:40 -050021PACKAGES =+ "lib${BPN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022
Andrew Geissler82c905d2020-04-13 13:39:40 -050023FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024
25ALTERNATIVE_PRIORITY = "100"
26ALTERNATIVE_${PN} = "setfattr"
27ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
Brad Bishop19323692019-04-05 15:28:33 -040029PTEST_BUILD_HOST_FILES = "builddefs"
30PTEST_BUILD_HOST_PATTERN = "^RPM"
31
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032do_install_ptest() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 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 Williamsc124f4f2015-09-15 14:41:29 -050047}
48
Andrew Geissler82c905d2020-04-13 13:39:40 -050049RDEPENDS_${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 Williamsc124f4f2015-09-15 14:41:29 -050062
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050063BBCLASSEXTEND = "native nativesdk"