mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
app-misc/pax-utils: Sync with Gentoo
It's from Gentoo commit e59bcda0257406a0510c5a4c94e9479078b864b3.
This commit is contained in:
parent
842c5cb9ec
commit
080da2bbe9
@ -1,3 +1,2 @@
|
|||||||
DIST pax-utils-1.3.1.tar.xz 718384 BLAKE2B eef34077dfaceba1bf6f3d56b5e9990090e6d6c5d8c14f7f4bd8506040f0abdcf1a7bd52c643092faa74d991f22ed48c96924572a50c556aaf879dd411569457 SHA512 1a3a463f3864a420b4dcdd8e5736fbee785ed7cb19545966819493cc98d3cea670eb44592c7f100188b2d45b58908bc1f8e2e010f8842c51b70495b260a03102
|
DIST pax-utils-1.3.5.tar.xz 119764 BLAKE2B 13bd4dbdadefb382133bf42a2b1e740e84ac11661595b082346c80ff05fc7423f5d75cc01ff8a651d921310ae66c2b39a862d0b9db5d7f18e11d393360627fcf SHA512 f2b1753e15907461cc395abffe033d7f7ab8eb15e296b874e2c9d00507458672347b32d7f2f05d3a8625fc3afbdbf0721543f84e062afce7181a726d967e4836
|
||||||
DIST pax-utils-1.3.2.tar.xz 725916 BLAKE2B ff792288b22c185501123d3e152ebae891585d5fbbbb1957f62c68fca3b342b8ca986d53611677aff4566ad4483afb3c69f40738be4cf5d653ca469e72b5661a SHA512 50330a34d9b7b33c67be079eb871e6dafe29c72f2fc42fec0e51aa9a2e0c1eb95e6d27a4dc1affe6647cdf4c9357545336d48c9e27a7e0106d57532a0f53cdcc
|
DIST pax-utils-1.3.7.tar.xz 113740 BLAKE2B d801df9c426f318c871655f238fe27b53e656c2789ef8508019997c98bbc540987b611642d87e76ae9f76a95f6cce1acd0b10e3491a146d1e3b3f727a6f96bdc SHA512 f1b87a564573da838a02c4cc10e0d5f9754c3b004ecb172a6290b48a8179b30695ae556942457dfac3caf07b91dd56eb1d801475c35e9708e4d671aa507f9576
|
||||||
DIST pax-utils-1.3.3.tar.xz 725900 BLAKE2B 17004a4fe57f05e80e0c51a156931975cbaf73e20d96fa50dedf6bd1538ff3f8383591f4b5fd0df926a6a6b75cb083724aaf92b1a4d4ebc67290500520919c29 SHA512 bb0d03371cf8f0cc26a83cbee888a6d91e70416dedc740476cd5549ddaef67048c6802e30e469ab1aced0fd7f63f84e9644744602b2d483ef7af37191505f72e
|
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
From 2d981305b117b669c60bede076557c2d765cf198 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Gilbert <floppym@gentoo.org>
|
||||||
|
Date: Wed, 7 Sep 2022 20:13:00 -0400
|
||||||
|
Subject: [PATCH] man: reorder xmlto arguments
|
||||||
|
|
||||||
|
Bug: https://bugs.gentoo.org/869110
|
||||||
|
Thanks-to: Fabian Groffen <grobian@gentoo.org>
|
||||||
|
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
||||||
|
---
|
||||||
|
man/meson.build | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/man/meson.build b/man/meson.build
|
||||||
|
index fc8d183..2e346ec 100644
|
||||||
|
--- a/man/meson.build
|
||||||
|
+++ b/man/meson.build
|
||||||
|
@@ -25,8 +25,8 @@ endforeach
|
||||||
|
|
||||||
|
custom_target('docbook_to_man',
|
||||||
|
command : [
|
||||||
|
- xmlto, 'man', '-x', files('custom.xsl'), '--skip-validation', book,
|
||||||
|
- '-o', meson.current_build_dir()
|
||||||
|
+ xmlto, '-x', files('custom.xsl'), '--skip-validation',
|
||||||
|
+ '-o', meson.current_build_dir(), 'man', book
|
||||||
|
],
|
||||||
|
input : [
|
||||||
|
'pax-utils.docbook.in', 'custom.xsl', 'fragment/reftail',
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
@ -1,15 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>toolchain@gentoo.org</email>
|
<email>toolchain@gentoo.org</email>
|
||||||
<name>Gentoo Toolchain Project</name>
|
<name>Gentoo Toolchain Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<longdescription>A suite of ELF tools to aid auditing systems. Contains various ELF related utils for ELF32, ELF64 binaries useful for displaying PaX and security info on a large groups of binary files.</longdescription>
|
<longdescription>
|
||||||
<use>
|
A suite of ELF tools to aid auditing systems.
|
||||||
<flag name="python">Install a more powerful/faster version of lddtree</flag>
|
Contains various ELF related utils for ELF32, ELF64 binaries useful for displaying PaX and security info on a large groups of binary files.
|
||||||
</use>
|
</longdescription>
|
||||||
<upstream>
|
<use>
|
||||||
<remote-id type="cpe">cpe:/a:gentoo:pax-utils</remote-id>
|
<flag name="python">Install a more powerful/faster version of lddtree</flag>
|
||||||
</upstream>
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="cpe">cpe:/a:gentoo:pax-utils</remote-id>
|
||||||
|
<remote-id type="gentoo">proj/pax-utils</remote-id>
|
||||||
|
<remote-id type="github">gentoo/pax-utils</remote-id>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,73 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="7"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
||||||
|
|
||||||
inherit python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~sam/distfiles/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="caps debug kernel_linux python seccomp"
|
|
||||||
|
|
||||||
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
caps? ( virtual/pkgconfig )
|
|
||||||
"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
emake \
|
|
||||||
USE_CAP=$(usex caps) \
|
|
||||||
USE_DEBUG=$(usex debug) \
|
|
||||||
USE_PYTHON=$(usex python) \
|
|
||||||
USE_SECCOMP=$(usex seccomp) \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
|
||||||
if use prefix || ! use kernel_linux ||
|
|
||||||
has_version '<sys-libs/glibc-2.10'
|
|
||||||
then
|
|
||||||
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
|
||||||
else
|
|
||||||
tc-export CC PKG_CONFIG
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
_emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
|
||||||
|
|
||||||
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="7"
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
||||||
|
|
||||||
inherit python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~sam/distfiles/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="caps debug kernel_linux python seccomp"
|
|
||||||
|
|
||||||
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
caps? ( virtual/pkgconfig )
|
|
||||||
"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
emake \
|
|
||||||
USE_CAP=$(usex caps) \
|
|
||||||
USE_DEBUG=$(usex debug) \
|
|
||||||
USE_PYTHON=$(usex python) \
|
|
||||||
USE_SECCOMP=$(usex seccomp) \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
|
||||||
if use prefix || ! use kernel_linux; then
|
|
||||||
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
|
||||||
else
|
|
||||||
tc-export CC PKG_CONFIG
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
_emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
|
||||||
|
|
||||||
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
|
||||||
}
|
|
@ -1,74 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="7"
|
|
||||||
|
|
||||||
# Note: if bumping pax-utils because of syscall changes in glibc, please
|
|
||||||
# revbump glibc and update the dependency in its ebuild for the affected
|
|
||||||
# versions.
|
|
||||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
||||||
|
|
||||||
inherit python-single-r1 toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
|
||||||
SRC_URI="mirror://gentoo/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~sam/distfiles/${P}.tar.xz
|
|
||||||
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
IUSE="caps debug kernel_linux python seccomp"
|
|
||||||
|
|
||||||
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
|
||||||
python? (
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
|
||||||
')
|
|
||||||
)
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
caps? ( virtual/pkgconfig )
|
|
||||||
"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
_emake() {
|
|
||||||
emake \
|
|
||||||
USE_CAP=$(usex caps) \
|
|
||||||
USE_DEBUG=$(usex debug) \
|
|
||||||
USE_PYTHON=$(usex python) \
|
|
||||||
USE_SECCOMP=$(usex seccomp) \
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use python; then
|
|
||||||
python-single-r1_pkg_setup
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Avoid slow configure+gnulib+make if on an up-to-date Linux system
|
|
||||||
if use prefix || ! use kernel_linux; then
|
|
||||||
econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
|
|
||||||
else
|
|
||||||
tc-export CC PKG_CONFIG
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
_emake
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
_emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
_emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
|
|
||||||
|
|
||||||
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
|
||||||
}
|
|
82
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-1.3.5.ebuild
vendored
Normal file
82
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-1.3.5.ebuild
vendored
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Note: if bumping pax-utils because of syscall changes in glibc, please
|
||||||
|
# revbump glibc and update the dependency in its ebuild for the affected
|
||||||
|
# versions.
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
|
inherit meson python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pax-utils.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz
|
||||||
|
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="caps +man python seccomp test"
|
||||||
|
|
||||||
|
_PYTHON_DEPS="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
|
||||||
|
python? ( ${_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
caps? ( virtual/pkgconfig )
|
||||||
|
man? ( app-text/xmlto )
|
||||||
|
|
||||||
|
python? ( ${_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
REQUIRED_USE="
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
test? ( python )
|
||||||
|
"
|
||||||
|
RESTRICT="
|
||||||
|
!test? ( test )
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/pax-utils-1.3.5-man-reorder-xmlto-arguments.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use test || use python; then
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
"-Dlddtree_implementation=$(usex python python sh)"
|
||||||
|
$(meson_feature caps use_libcap)
|
||||||
|
$(meson_feature man build_manpages)
|
||||||
|
$(meson_use seccomp use_seccomp)
|
||||||
|
$(meson_use test tests)
|
||||||
|
|
||||||
|
# fuzzing is currently broken
|
||||||
|
-Duse_fuzzing=false
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
||||||
|
}
|
77
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-1.3.7.ebuild
vendored
Normal file
77
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-1.3.7.ebuild
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Note: if bumping pax-utils because of syscall changes in glibc, please
|
||||||
|
# revbump glibc and update the dependency in its ebuild for the affected
|
||||||
|
# versions.
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
|
inherit meson python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pax-utils.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="
|
||||||
|
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz
|
||||||
|
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz
|
||||||
|
"
|
||||||
|
KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="caps man python seccomp test"
|
||||||
|
REQUIRED_USE="
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
test? ( python )
|
||||||
|
"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
MY_PYTHON_DEPS="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
caps? ( >=sys-libs/libcap-2.24 )
|
||||||
|
python? ( ${MY_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
caps? ( virtual/pkgconfig )
|
||||||
|
man? ( app-text/xmlto )
|
||||||
|
python? ( ${MY_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use test || use python; then
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
"-Dlddtree_implementation=$(usex python python sh)"
|
||||||
|
$(meson_feature caps use_libcap)
|
||||||
|
$(meson_feature man build_manpages)
|
||||||
|
$(meson_use seccomp use_seccomp)
|
||||||
|
$(meson_use test tests)
|
||||||
|
|
||||||
|
# fuzzing is currently broken
|
||||||
|
-Duse_fuzzing=false
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
||||||
|
}
|
77
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-9999.ebuild
vendored
Normal file
77
sdk_container/src/third_party/portage-stable/app-misc/pax-utils/pax-utils-9999.ebuild
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Copyright 2022-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Note: if bumping pax-utils because of syscall changes in glibc, please
|
||||||
|
# revbump glibc and update the dependency in its ebuild for the affected
|
||||||
|
# versions.
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
|
||||||
|
inherit meson python-single-r1
|
||||||
|
|
||||||
|
DESCRIPTION="ELF utils that can check files for security relevant properties"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/pax-utils.git"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="
|
||||||
|
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz
|
||||||
|
https://dev.gentoo.org/~vapier/dist/${P}.tar.xz
|
||||||
|
"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="caps +man python seccomp test"
|
||||||
|
REQUIRED_USE="
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
test? ( python )
|
||||||
|
"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
MY_PYTHON_DEPS="
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
caps? ( >=sys-libs/libcap-2.24 )
|
||||||
|
python? ( ${MY_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
caps? ( virtual/pkgconfig )
|
||||||
|
man? ( app-text/xmlto )
|
||||||
|
python? ( ${MY_PYTHON_DEPS} )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use test || use python; then
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
"-Dlddtree_implementation=$(usex python python sh)"
|
||||||
|
$(meson_feature caps use_libcap)
|
||||||
|
$(meson_feature man build_manpages)
|
||||||
|
$(meson_use seccomp use_seccomp)
|
||||||
|
$(meson_use test tests)
|
||||||
|
|
||||||
|
# fuzzing is currently broken
|
||||||
|
-Duse_fuzzing=false
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
use python && python_fix_shebang "${ED}"/usr/bin/lddtree
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user