1 |
commit: b9198174446d107489579b687b943695d347527d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 10:49:00 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 10:53:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9198174 |
7 |
|
8 |
sys-apps/sandbox: Bump to 2.20 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-apps/sandbox/Manifest | 1 + |
13 |
sys-apps/sandbox/sandbox-2.20.ebuild | 74 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest |
17 |
index bcb90be6572..f724c707816 100644 |
18 |
--- a/sys-apps/sandbox/Manifest |
19 |
+++ b/sys-apps/sandbox/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST sandbox-2.14.tar.xz 426992 BLAKE2B a30984f613b773cb5e53b2b0297ada32d1179769 |
21 |
DIST sandbox-2.15.tar.xz 426948 BLAKE2B e40bb728192ef3793a9129bc88a63878516b0977a19effd5b02ded644ec6fe1627fab34786b22024957d96725fc5c53f488f7b09119be7b7ca91692dcee985dc SHA512 7249b594864267311ce8e2c04275df49c6d8e8e811dde5780f7f676cb43928728b9abed77beb8f5ee32061efcdb03753cce44d5bf1827bd519d6be8fa54912e6 |
22 |
DIST sandbox-2.17.tar.xz 431700 BLAKE2B 461404f5b98ac83d9e5bc63fc7251cdfbb04a0ccedb340a7a5b8595b68ab34034a56c0a0cfa8478961c9282f6450de89ef5b512b13d427a7f63c17a4141cbcbf SHA512 b5d7a76d894471f6610b41aa05f007d257c69ae5c90f8db455d626e0d1209b9d276678c36e90d2e4214d15074512be182b4f5f905ed2b7e236ff714cbf51958f |
23 |
DIST sandbox-2.18.tar.xz 427760 BLAKE2B 26199ff8f919dcecdfdb74d508e0802e2e929a003ff1caddc54c1ea0f7887938c4f69065e585d61f7e96b29be26a34a1cdb62b397309e993511097ecaebe0620 SHA512 1775d4d6f80d414ab94eafae73966c12c4dd80857e21f0849703a3230ddb80501d8e574b14296e554932766cd71aa7b48a802fc388aaab43ba882ee7d005a60d |
24 |
+DIST sandbox-2.20.tar.xz 428400 BLAKE2B 11761631ce8e2e495adb41508f308bce875d416ec978e3eb3cb491d3d3a464d7653b8b81d4dcc7e5cd31e8a55069aafa263b85008651ee1d7318f32407fa4615 SHA512 06db36fc85bacf9a3a094c434b73277d8cdde986f2fad7676c42e8f84b3b8b653a1f4b1ec4af9fa1ff5484177419e18f5621275f56a8fbf3973ece524dd6d208 |
25 |
|
26 |
diff --git a/sys-apps/sandbox/sandbox-2.20.ebuild b/sys-apps/sandbox/sandbox-2.20.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ce7ae03aa90 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/sandbox/sandbox-2.20.ebuild |
31 |
@@ -0,0 +1,74 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit flag-o-matic multilib-minimal multiprocessing |
38 |
+ |
39 |
+DESCRIPTION="sandbox'd LD_PRELOAD hack" |
40 |
+HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/" |
41 |
+SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
46 |
+IUSE="" |
47 |
+ |
48 |
+DEPEND="app-arch/xz-utils |
49 |
+ >=app-misc/pax-utils-0.1.19" #265376 |
50 |
+RDEPEND="" |
51 |
+ |
52 |
+has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice" |
53 |
+ |
54 |
+sandbox_death_notice() { |
55 |
+ ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:" |
56 |
+ ewarn "FEATURES='-sandbox -usersandbox' emerge sandbox" |
57 |
+} |
58 |
+ |
59 |
+multilib_src_configure() { |
60 |
+ filter-lfs-flags #90228 |
61 |
+ |
62 |
+ ECONF_SOURCE="${S}" econf |
63 |
+} |
64 |
+ |
65 |
+multilib_src_test() { |
66 |
+ # Default sandbox build will run with --jobs set to # cpus. |
67 |
+ emake -j1 check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)" |
68 |
+} |
69 |
+ |
70 |
+multilib_src_install_all() { |
71 |
+ doenvd "${FILESDIR}"/09sandbox |
72 |
+ |
73 |
+ keepdir /var/log/sandbox |
74 |
+ fowners root:portage /var/log/sandbox |
75 |
+ fperms 0770 /var/log/sandbox |
76 |
+ |
77 |
+ dodoc AUTHORS ChangeLog* NEWS README |
78 |
+} |
79 |
+ |
80 |
+pkg_preinst() { |
81 |
+ chown root:portage "${ED}"/var/log/sandbox |
82 |
+ chmod 0770 "${ED}"/var/log/sandbox |
83 |
+ |
84 |
+ local v |
85 |
+ for v in ${REPLACING_VERSIONS}; do |
86 |
+ # 1.x was removed from ::gentoo in 2016 |
87 |
+ if [[ ${v} == 1.* ]] ; then |
88 |
+ local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*') |
89 |
+ if [[ -n ${old} ]] ; then |
90 |
+ elog "Removing old sandbox libraries for you:" |
91 |
+ find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete |
92 |
+ fi |
93 |
+ fi |
94 |
+ done |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ local v |
99 |
+ for v in ${REPLACING_VERSIONS}; do |
100 |
+ # 1.x was removed from ::gentoo in 2016 |
101 |
+ if [[ ${v} == 1.* ]] ; then |
102 |
+ chmod 0755 "${EROOT}"/etc/sandbox.d #265376 |
103 |
+ fi |
104 |
+ done |
105 |
+} |