Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/pax-utils/
Date: Sat, 24 Feb 2018 10:33:47
Message-Id: 1519468414.e68b80427bfb89876451f40d868d509d5183c327.slyfox@gentoo
1 commit: e68b80427bfb89876451f40d868d509d5183c327
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 24 10:33:27 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 10:33:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e68b8042
7
8 app-misc/pax-utils: bump up to 1.2.3, bug #566118
9
10 This release can print textrels on executable files.
11
12 Bug: https://bugs.gentoo.org/566118
13 Package-Manager: Portage-2.3.24, Repoman-2.3.6
14
15 app-misc/pax-utils/Manifest | 1 +
16 app-misc/pax-utils/pax-utils-1.2.3.ebuild | 56 +++++++++++++++++++++++++++++++
17 2 files changed, 57 insertions(+)
18
19 diff --git a/app-misc/pax-utils/Manifest b/app-misc/pax-utils/Manifest
20 index 8b26ec599d4..07fab957b6e 100644
21 --- a/app-misc/pax-utils/Manifest
22 +++ b/app-misc/pax-utils/Manifest
23 @@ -1,2 +1,3 @@
24 DIST pax-utils-1.1.7.tar.xz 648376 BLAKE2B 676551b2391b2ba27281d26fba61da7d0d277f3b562c9d8365ea5a6b5bfa4327bad66cf1f62cb626f8b6ec3ae693cab713683b81142dd71920f3b6300951f6d2 SHA512 cec176cf5863b15acc058cbd99639f5f456346136d0551ce5875cb66c28dd0f6e7f5077b0c06751a3a68984b5c4386c232d3db8b76aa4f4b326b0b692835fdeb
25 DIST pax-utils-1.2.2.tar.xz 655964 BLAKE2B 5e43b52648f1f0cc1f46616ebd9a554cf2e5909292337c84f9ee0e2eceb4879a5f16ca20700e5a16267b38ffea529814949817ea6054cd1b2ea38e267455de00 SHA512 6bafe93f3b84d4595b6adfa09b46a3dd249f309fe836d90115e9aa5fcc7da37b03f743e80719dfe6bcdb739ce6ec3843170a5513e196c348721f850e19d3e38c
26 +DIST pax-utils-1.2.3.tar.xz 661828 BLAKE2B 4764c47b7a31e7470a454127b9db3b5b27c703a96a66973a6248529a2d858ea38adb246a270a1f343a499515f55b25613bb20c46978e2e0dddc03e5ddb9a2aa7 SHA512 efcbce49aa7e5cd433f9b3fbc8fa82f6d7b0eb80ec40aafde453d6fe96e3565e066e5020f04d71537d8d4e820147f4203c0df2dd330ebb1358a26def3dd5484c
27
28 diff --git a/app-misc/pax-utils/pax-utils-1.2.3.ebuild b/app-misc/pax-utils/pax-utils-1.2.3.ebuild
29 new file mode 100644
30 index 00000000000..32ec5fa80b3
31 --- /dev/null
32 +++ b/app-misc/pax-utils/pax-utils-1.2.3.ebuild
33 @@ -0,0 +1,56 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit eutils toolchain-funcs unpacker
40 +
41 +DESCRIPTION="ELF utils that can check files for security relevant properties"
42 +HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
43 +SRC_URI="mirror://gentoo/${P}.tar.xz
44 + https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="caps debug python seccomp"
50 +
51 +RDEPEND="caps? ( >=sys-libs/libcap-2.24 )
52 + python? ( dev-python/pyelftools )
53 + seccomp? ( sys-libs/libseccomp )"
54 +DEPEND="${RDEPEND}
55 + caps? ( virtual/pkgconfig )
56 + seccomp? ( virtual/pkgconfig )
57 + app-arch/xz-utils"
58 +
59 +_emake() {
60 + emake \
61 + USE_CAP=$(usex caps) \
62 + USE_DEBUG=$(usex debug) \
63 + USE_PYTHON=$(usex python) \
64 + USE_SECCOMP=$(usex seccomp) \
65 + "$@"
66 +}
67 +
68 +src_configure() {
69 + # Avoid slow configure+gnulib+make if on an up-to-date Linux system
70 + if use prefix || ! use kernel_linux || \
71 + has_version '<sys-libs/glibc-2.10'
72 + then
73 + econf $(use_with caps) $(use_with debug) $(use_with python) $(use_with seccomp)
74 + else
75 + tc-export CC PKG_CONFIG
76 + fi
77 +}
78 +
79 +src_compile() {
80 + _emake
81 +}
82 +
83 +src_test() {
84 + _emake check
85 +}
86 +
87 +src_install() {
88 + _emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
89 +}