<commit_before>#
# Base recipe: meta/recipes-devtools/pax-utils/pax-utils_0.7.bb
# Base branch: daisy
# Base commit: 9e<PASSWORD>3<PASSWORD>dc44bf<PASSWORD>92cdf30a47
#

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 = "http://www.gentoo.org/proj/en/hardened/pax-utils.xml"

PR = "r0"
# pax-utils in Debian require libcap to build
# on Linux
DEPENDS = "libcap"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"

inherit debian-package
PV = "0.8.1"

# Add option to compile with libcap
do_compile_prepend() {
	USE_CAP=yes
	export USE_CAP
}

do_install() {
	oe_runmake PREFIX=${D}${prefix} DESTDIR=${D}  install
}

BBCLASSEXTEND = "native"<commit_msg>pax-utils: Upgrade from 1.16-10 to 1.16-11<commit_after>#
# Base recipe: meta/recipes-devtools/pax-utils/pax-utils_1.2.2.bb
# Base branch: master
# Base commit: <PASSWORD>
#
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 = "http://www.gentoo.org/proj/en/hardened/pax-utils.xml"

inherit debian-package
PV = "1.2.2"
DPR = "-1"
DSC_URI = "${DEBIAN_MIRROR}/main/p/${BPN}/${BPN}_${PV}${DPR}.dsc;md5sum=fb35e4bb631ea54cc1e2d415b4a3db63"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"

RDEPENDS_${PN} += "bash"

export GNULIB_OVERRIDES_WINT_T = "0"

# source format is 3.0 but there is no patch
DEBIAN_QUILT_PATCHES = ""

do_configure_prepend() {
	touch ${S}/NEWS ${S}/AUTHORS ${S}/ChangeLog ${S}/README
}

do_install() {
	oe_runmake PREFIX=${D}${prefix} DESTDIR=${D} install
}

BBCLASSEXTEND = "native"

inherit autotools pkgconfig

PACKAGECONFIG ??= ""

PACKAGECONFIG[libcap] = "--with-caps, --without-caps, libcap"
PACKAGECONFIG[libseccomp] = "--with-seccomp, --without-seccomp, libseccomp"
PACKAGECONFIG[pyelftools] = "--with-python, --without-python,, pyelftools"

EXTRA_OECONF += "--enable-largefile"
{'fraction_non_alphanumeric': 0.128500823723229, 'fraction_numerical': 0.039538714991762765, 'mean_word_length': 4.953431372549019, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1450155', 'n_tokens_mistral': 1000, 'n_tokens_neox': 944, 'n_words': 230}