xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/pax-utils/pax-utils_1.3.3.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Security-focused ELF files checking tool"
2DESCRIPTION = "This is a small set of various PaX aware and related \
3utilities for ELF binaries. It can check ELF binary files and running \
4processes for issues that might be relevant when using ELF binaries \
5along with PaX, such as non-PIC code or executable stack and heap."
6HOMEPAGE = "http://www.gentoo.org/proj/en/hardened/pax-utils.xml"
7LICENSE = "GPL-2.0-or-later"
8LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
9
10SRC_URI = "https://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
11SRC_URI[sha256sum] = "eeca7fbd98bc66bead4a77000c2025d9f17ea8201b84245882406ce00b9b6b14"
12
13RDEPENDS:${PN} += "bash"
14
15export GNULIB_OVERRIDES_WINT_T = "0"
16
17do_configure:prepend() {
18    touch ${S}/NEWS ${S}/AUTHORS ${S}/ChangeLog ${S}/README
19}
20
21do_install() {
22    oe_runmake PREFIX=${D}${prefix} DESTDIR=${D} install
23}
24
25BBCLASSEXTEND = "native"
26
27inherit autotools pkgconfig
28
29PACKAGECONFIG ??= ""
30
31PACKAGECONFIG[libcap] = "--with-caps, --without-caps, libcap"
32PACKAGECONFIG[libseccomp] = "--with-seccomp, --without-seccomp, libseccomp"
33PACKAGECONFIG[pyelftools] = "--with-python, --without-python,, pyelftools"
34
35EXTRA_OECONF += "--enable-largefile"
36