1 |
commit: 9c7f86d4fac5e508f3e6b1569a7577e60c35b208 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 05:38:59 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 05:39:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c7f86d4 |
7 |
|
8 |
app-misc/pax-utils: version bump to 1.3 |
9 |
|
10 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
11 |
|
12 |
app-misc/pax-utils/Manifest | 1 + |
13 |
app-misc/pax-utils/pax-utils-1.3.ebuild | 76 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 77 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/pax-utils/Manifest b/app-misc/pax-utils/Manifest |
17 |
index cb588b78f36..7b4c152d327 100644 |
18 |
--- a/app-misc/pax-utils/Manifest |
19 |
+++ b/app-misc/pax-utils/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pax-utils-1.2.9.tar.xz 705188 BLAKE2B 9eb9309f0317683dd06e491e6647ba20986f2cb248432fad0ed0eb277711e8d38c5b5148bc0b44e6dbc3d5d3d0093bccd4d10c057090801c49246a63f3bc0899 SHA512 47271cd75818728342e2a074fa05da24fce51ef0eeedb28237138525d7c86c207ca2b5d206fd02cb34529590340b726a14c54b205c65204539a51fb78ac55d41 |
22 |
+DIST pax-utils-1.3.tar.xz 717672 BLAKE2B 56e9677b96e38d8efbe0f1fd3e8d92f30b636a87a25cb73fc7452bd34546b25bc0c7dd05133ac99c88cbdb403a8a261f1ba55f6ba80d4571fd907284255c0e2c SHA512 8c200a217ca0a6f8dda74af9216f244d1ddb93ace1b853428cfcd26d1e0429ae199ebf54376ee3885f43ae42445341c76e1ee846def68376ae7aa63a788eeeab |
23 |
|
24 |
diff --git a/app-misc/pax-utils/pax-utils-1.3.ebuild b/app-misc/pax-utils/pax-utils-1.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..786da67c364 |
27 |
--- /dev/null |
28 |
+++ b/app-misc/pax-utils/pax-utils-1.3.ebuild |
29 |
@@ -0,0 +1,76 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
36 |
+ |
37 |
+inherit python-single-r1 toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="ELF utils that can check files for security relevant properties" |
40 |
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities" |
41 |
+SRC_URI="mirror://gentoo/${P}.tar.xz |
42 |
+ https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+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" |
47 |
+IUSE="caps debug kernel_linux python seccomp" |
48 |
+ |
49 |
+RDEPEND="caps? ( >=sys-libs/libcap-2.24 ) |
50 |
+ python? ( |
51 |
+ ${PYTHON_DEPS} |
52 |
+ $(python_gen_cond_dep ' |
53 |
+ dev-python/pyelftools[${PYTHON_MULTI_USEDEP}] |
54 |
+ ') |
55 |
+ ) |
56 |
+" |
57 |
+# >=linux-headers-5.8 to pick linux headers with faccessat2, bug #768624 |
58 |
+DEPEND=" |
59 |
+ ${RDEPEND} |
60 |
+ kernel_linux? ( !prefix-guest? ( >=sys-kernel/linux-headers-5.8 ) ) |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ caps? ( virtual/pkgconfig ) |
64 |
+" |
65 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
66 |
+ |
67 |
+_emake() { |
68 |
+ emake \ |
69 |
+ USE_CAP=$(usex caps) \ |
70 |
+ USE_DEBUG=$(usex debug) \ |
71 |
+ USE_PYTHON=$(usex python) \ |
72 |
+ USE_SECCOMP=$(usex seccomp) \ |
73 |
+ "$@" |
74 |
+} |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ if use python; then |
78 |
+ python-single-r1_pkg_setup |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system |
84 |
+ if use prefix || ! use kernel_linux || |
85 |
+ has_version '<sys-libs/glibc-2.10' |
86 |
+ then |
87 |
+ econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp) |
88 |
+ else |
89 |
+ tc-export CC PKG_CONFIG |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ _emake |
95 |
+} |
96 |
+ |
97 |
+src_test() { |
98 |
+ _emake check |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ _emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install |
103 |
+ |
104 |
+ use python && python_fix_shebang "${ED}"/usr/bin/lddtree |
105 |
+} |