blob: f13a83a7b4f54a478b6855c5955d144c26410cda [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 Geissler82c905d2020-04-13 13:39:40 -050011 file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
13
Andrew Geissler82c905d2020-04-13 13:39:40 -050014SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 file://run-ptest \
16"
17
Andrew Geissler82c905d2020-04-13 13:39:40 -050018inherit ptest update-alternatives autotools gettext
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
Andrew Geissler82c905d2020-04-13 13:39:40 -050020PACKAGES =+ "lib${BPN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021
Andrew Geissler82c905d2020-04-13 13:39:40 -050022FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
24ALTERNATIVE_PRIORITY = "100"
25ALTERNATIVE_${PN} = "setfattr"
26ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Brad Bishop19323692019-04-05 15:28:33 -040028PTEST_BUILD_HOST_FILES = "builddefs"
29PTEST_BUILD_HOST_PATTERN = "^RPM"
30
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031do_install_ptest() {
Andrew Geissler82c905d2020-04-13 13:39:40 -050032 cp ${B}/Makefile ${D}${PTEST_PATH}
33 sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
34 -e 's|${DEBUG_PREFIX_MAP}||g' \
35 -e 's:${HOSTTOOLS_DIR}/::g' \
36 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
37 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
38 -i ${D}${PTEST_PATH}/Makefile
39
40 sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
41 sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
42 sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
43 sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
44 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
45 cp -rf ${S}/test/ ${D}${PTEST_PATH}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046}
47
Andrew Geissler82c905d2020-04-13 13:39:40 -050048RDEPENDS_${PN}-ptest = "attr \
49 coreutils \
50 perl-module-filehandle \
51 perl-module-getopt-std \
52 perl-module-posix \
53 make \
54 perl \
55 gawk \
56 perl-module-cwd \
57 perl-module-file-basename \
58 perl-module-file-path \
59 perl-module-file-spec \
60 "
Patrick Williamsc124f4f2015-09-15 14:41:29 -050061
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050062BBCLASSEXTEND = "native nativesdk"