mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-20 19:58:34 +00:00
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
31 lines
1.2 KiB
BlitzBasic
31 lines
1.2 KiB
BlitzBasic
SUMMARY = "Security-focused ELF files checking tool"
|
|
DESCRIPTION = "This is a small set of various PaX aware and related \
|
|
utilities for ELF binaries. It can check ELF binary files and running \
|
|
processes for issues that might be relevant when using ELF binaries \
|
|
along with PaX, such as non-PIC code or executable stack and heap."
|
|
HOMEPAGE = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities"
|
|
LICENSE = "GPL-2.0-or-later"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
|
|
|
|
SRC_URI = "git://github.com/gentoo/pax-utils;protocol=https;branch=master;tag=v${PV}"
|
|
SRCREV = "a19d74326cf0dfc5eea93a5f0bc23dc3a5a959b5"
|
|
|
|
RDEPENDS:${PN} += "bash"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
inherit meson pkgconfig
|
|
|
|
PACKAGECONFIG ??= ""
|
|
|
|
PACKAGECONFIG[libcap] = "-Duse_libcap=enabled, -Duse_libcap=disabled, libcap"
|
|
PACKAGECONFIG[libseccomp] = "-Duse_seccomp=true, -Duse_seccomp=false, libseccomp"
|
|
PACKAGECONFIG[pyelftools] = "-Dlddtree_implementation=python, -Dlddtree_implementation=sh,, python3-pyelftools"
|
|
|
|
do_install:append(){
|
|
if ${@bb.utils.contains('PACKAGECONFIG', 'pyelftools', 'true', 'false', d)}; then
|
|
sed -i 's,#!/usr/bin/env python,#!/usr/bin/env python3,' ${D}${bindir}/lddtree
|
|
fi
|
|
}
|
|
|