acl_2.2.52.bb 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. SUMMARY = "Utilities for managing POSIX Access Control Lists"
  2. HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
  3. SECTION = "libs"
  4. LICENSE = "LGPLv2.1+ & GPLv2+"
  5. LICENSE_${PN} = "GPLv2+"
  6. LICENSE_lib${BPN} = "LGPLv2.1+"
  7. LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \
  8. file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764"
  9. DEPENDS = "attr"
  10. SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.src.tar.gz \
  11. file://configure.ac;subdir=${BP} \
  12. file://run-ptest \
  13. file://acl-fix-the-order-of-expected-output-of-getfacl.patch \
  14. file://test-fix-insufficient-quoting-of.patch \
  15. file://test-fixups-on-SELinux-machines-for-root-testcases.patch \
  16. file://test-fix-directory-permissions.patch \
  17. file://Makefile-libacl-should-depend-on-include.patch \
  18. "
  19. SRC_URI[md5sum] = "a61415312426e9c2212bd7dc7929abda"
  20. SRC_URI[sha256sum] = "179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23"
  21. require ea-acl.inc
  22. # avoid RPATH hardcode to staging dir
  23. do_configure_append() {
  24. sed -i ${S}/config.status -e s,^\\\(hardcode_into_libs=\\\).*$,\\1\'no\',
  25. ${S}/config.status
  26. }
  27. # libdir should point to .la
  28. do_install_append() {
  29. sed -i ${D}${libdir}/libacl.la -e \
  30. s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
  31. }
  32. inherit ptest
  33. do_install_ptest() {
  34. tar -c --exclude=nfs test/ | ( cd ${D}${PTEST_PATH} && tar -xf - )
  35. mkdir ${D}${PTEST_PATH}/include
  36. cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/
  37. # Remove any build host references
  38. sed -e "s:--sysroot=${STAGING_DIR_TARGET}::g" \
  39. -e 's:${HOSTTOOLS_DIR}/::g' \
  40. -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
  41. -i ${D}${PTEST_PATH}/include/builddefs
  42. }
  43. RDEPENDS_${PN}-ptest = "acl bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow"
  44. BBCLASSEXTEND = "native nativesdk"