Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sandbox/
Date: Tue, 29 Mar 2016 12:25:18
Message-Id: 1459254292.0c54c7956635d04d168e3aaac0d7048c194840d3.vapier@gentoo
1 commit: 0c54c7956635d04d168e3aaac0d7048c194840d3
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 12:24:33 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 12:24:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c54c795
7
8 sys-apps/sandbox: version bump to 2.11
9
10 sys-apps/sandbox/Manifest | 1 +
11 sys-apps/sandbox/sandbox-2.11.ebuild | 81 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 82 insertions(+)
13
14 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
15 index fa19c3f..b35489a 100644
16 --- a/sys-apps/sandbox/Manifest
17 +++ b/sys-apps/sandbox/Manifest
18 @@ -1,4 +1,5 @@
19 DIST sandbox-2.10.tar.xz 417068 SHA256 019d6a2646b3a5f9b6fc3fcb6ff99332901017eb845442bec8573b9901506fa6 SHA512 178b3b8fcb54e6ff67df1c8101866739b49e4d31a66717c21ef502dd2ab609fca70f1a0c662b913e207bfc1ba6994cefdcf5c92ff32add9dd98bd9707f301305 WHIRLPOOL 5d6cffa7317cafeba02af75de9ae914d4365a62b54d3dfcc14cb272e621f2f76a60a945591ccb57dd59d6750152087cb2f21e43ded3ec181d6b42df173147192
20 +DIST sandbox-2.11.tar.xz 423492 SHA256 a1cb203f95057176ca0c5b53b8b9dafd41d1b64a6cf5039a9e1fb4a51b17f237 SHA512 0aa6c773c109749180442d1a46d1b957dea0c30f893e4be1ac0b410e1aad48fdd2972ec591aa2da3a0c74b32d2b7bd51b7c2263bd7b26f8a34bb762d8a48ea0b WHIRLPOOL a2222cc778f2181473cf23b46a62257e5f3857edebb457dcf230f02da0d153e38a28f78a20dee67c9e564c10239d8bd6982a6e894de666f6eff4550f7ad8cdee
21 DIST sandbox-2.6.tar.xz 366356 SHA256 95615c5879dfc419713f22ba5506a2802a50ea0ce8a2f57c656354f2e50b1c4d SHA512 32ba7fb675c67fdc8bc52da1db7ed6878e5fea8753accb30d9aca00f708e0dde03287b5962caf5ef031bea6934d6ef3e18404b015c70ebd551d3fd8109ad2371 WHIRLPOOL bab2d015fb0de92a2266408ca7941c8fb66b599179040cfc727ffce5b2424a9722dc55ba89d198e3361044d8cb357314205488d2a980c7b8af063fd8940f0c03
22 DIST sandbox-2.7.tar.xz 390304 SHA256 d6e1230180d84fb64c9788dd372a73a1cd2496ead91cad333a211320d3041149 SHA512 81056460afabe3f9163594f662f5faf87b6dfe8511a001fc4d6ce0171492eb29f3b645a45320032d34475bb2c24bf212d1d05b50878a340f1e2ca580f8f8f38a WHIRLPOOL ad070df6351537e49f939ba195f27ccf5e4566bb8b6e4ba391ab8174771eacf909571284c6fa873d5b55e8540605d2766a3de5d451b6af132c0ff6d96e43f554
23 DIST sandbox-2.8.tar.xz 410588 SHA256 f01dcac27a4641d1898c4a19bf3a0572f8ec85c3ba12e6ede8af36f6bc047165 SHA512 73a21e72f5825f43ee887efbe73f4ccd8771c7f45438104077aa83448d0a2727ab65be89a7a1a690d3662594df680ca4dc29908763e5abe2a81594b6f8f6ff2e WHIRLPOOL 6c93a0d8737bab4e710f0f20645514c9a5413a2d357a64c2e8b8428567221b949134881e705f979aa374635a278c0b3c646a6cffaf1015024db8f2aab2ec7c74
24
25 diff --git a/sys-apps/sandbox/sandbox-2.11.ebuild b/sys-apps/sandbox/sandbox-2.11.ebuild
26 new file mode 100644
27 index 0000000..0bbf588
28 --- /dev/null
29 +++ b/sys-apps/sandbox/sandbox-2.11.ebuild
30 @@ -0,0 +1,81 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +#
35 +# don't monkey with this ebuild unless contacting portage devs.
36 +# period.
37 +#
38 +
39 +EAPI="5"
40 +
41 +inherit eutils flag-o-matic multilib-minimal multiprocessing pax-utils
42 +
43 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
44 +HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/"
45 +SRC_URI="mirror://gentoo/${P}.tar.xz
46 + https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
51 +IUSE=""
52 +
53 +DEPEND="app-arch/xz-utils
54 + >=app-misc/pax-utils-0.1.19" #265376
55 +RDEPEND=""
56 +
57 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
58 +
59 +sandbox_death_notice() {
60 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
61 + ewarn "FEATURES=-sandbox emerge sandbox"
62 +}
63 +
64 +src_prepare() {
65 + epatch_user
66 +}
67 +
68 +multilib_src_configure() {
69 + filter-lfs-flags #90228
70 +
71 + local myconf=()
72 + host-is-pax && myconf+=( --disable-pch ) #301299 #425524 #572092
73 +
74 + ECONF_SOURCE="${S}" \
75 + econf "${myconf[@]}"
76 +}
77 +
78 +multilib_src_test() {
79 + # Default sandbox build will run with --jobs set to # cpus.
80 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)"
81 +}
82 +
83 +multilib_src_install_all() {
84 + doenvd "${FILESDIR}"/09sandbox
85 +
86 + keepdir /var/log/sandbox
87 + fowners root:portage /var/log/sandbox
88 + fperms 0770 /var/log/sandbox
89 +
90 + cd "${S}"
91 + dodoc AUTHORS ChangeLog* NEWS README
92 +}
93 +
94 +pkg_preinst() {
95 + chown root:portage "${ED}"/var/log/sandbox
96 + chmod 0770 "${ED}"/var/log/sandbox
97 +
98 + if [[ ${REPLACING_VERSIONS} == 1.* ]] ; then
99 + local old=$(find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
100 + if [[ -n ${old} ]] ; then
101 + elog "Removing old sandbox libraries for you:"
102 + find "${EROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -print -delete
103 + fi
104 + fi
105 +}
106 +
107 +pkg_postinst() {
108 + if [[ ${REPLACING_VERSIONS} == 1.* ]] ; then
109 + chmod 0755 "${EROOT}"/etc/sandbox.d #265376
110 + fi
111 +}