diff options
Diffstat (limited to 'meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.10.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.10.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.10.bb b/meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.10.bb new file mode 100644 index 0000000000..08dfcb7545 --- /dev/null +++ b/meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.10.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | SUMMARY = "Security-focused ELF files checking tool" | ||
| 2 | DESCRIPTION = "This is a small set of various PaX aware and related \ | ||
| 3 | utilities for ELF binaries. It can check ELF binary files and running \ | ||
| 4 | processes for issues that might be relevant when using ELF binaries \ | ||
| 5 | along with PaX, such as non-PIC code or executable stack and heap." | ||
| 6 | HOMEPAGE = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities" | ||
| 7 | LICENSE = "GPL-2.0-or-later" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/gentoo/pax-utils;protocol=https;branch=master;tag=v${PV}" | ||
| 11 | SRCREV = "d279ca563775105859f1f8c8467b8244d758cc62" | ||
| 12 | |||
| 13 | RDEPENDS:${PN} += "bash" | ||
| 14 | |||
| 15 | BBCLASSEXTEND = "native" | ||
| 16 | |||
| 17 | inherit meson pkgconfig | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= "" | ||
| 20 | |||
| 21 | PACKAGECONFIG[libcap] = "-Duse_libcap=enabled, -Duse_libcap=disabled, libcap" | ||
| 22 | PACKAGECONFIG[libseccomp] = "-Duse_seccomp=true, -Duse_seccomp=false, libseccomp" | ||
| 23 | PACKAGECONFIG[pyelftools] = "-Dlddtree_implementation=python, -Dlddtree_implementation=sh,, python3-pyelftools" | ||
| 24 | |||
| 25 | do_install:append(){ | ||
| 26 | if ${@bb.utils.contains('PACKAGECONFIG', 'pyelftools', 'true', 'false', d)}; then | ||
| 27 | sed -i 's,#!/usr/bin/env python,#!/usr/bin/env python3,' ${D}${bindir}/lddtree | ||
| 28 | fi | ||
| 29 | } | ||
| 30 | |||
