Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Utilities for manipulating filesystem extended attributes" |
| 2 | HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" |
| 3 | SECTION = "libs" |
| 4 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | DEPENDS = "virtual/libintl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | LICENSE = "LGPLv2.1+ & GPLv2+" |
| 8 | LICENSE_${PN} = "GPLv2+" |
| 9 | LICENSE_lib${BPN} = "LGPLv2.1+" |
| 10 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb" |
| 13 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | file://run-ptest \ |
| 16 | " |
| 17 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | inherit ptest update-alternatives autotools gettext |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 20 | PACKAGES =+ "lib${BPN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | FILES_lib${BPN} = "${libdir}/lib*${SOLIBS}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | |
| 24 | ALTERNATIVE_PRIORITY = "100" |
| 25 | ALTERNATIVE_${PN} = "setfattr" |
| 26 | ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | PTEST_BUILD_HOST_FILES = "builddefs" |
| 29 | PTEST_BUILD_HOST_PATTERN = "^RPM" |
| 30 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | do_install_ptest() { |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 32 | 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | } |
| 47 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 48 | RDEPENDS_${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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 61 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 62 | BBCLASSEXTEND = "native nativesdk" |