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: Sun, 27 Sep 2015 06:27:28
Message-Id: 1443335229.97b504c5af27db225ad666fdcb47a0dd9a942674.vapier@gentoo
1 commit: 97b504c5af27db225ad666fdcb47a0dd9a942674
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 27 06:27:04 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 27 06:27:09 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97b504c5
7
8 sys-apps/sandbox: version bump
9
10 sys-apps/sandbox/Manifest | 1 +
11 sys-apps/sandbox/sandbox-2.9.ebuild | 123 ++++++++++++++++++++++++++++++++++++
12 2 files changed, 124 insertions(+)
13
14 diff --git a/sys-apps/sandbox/Manifest b/sys-apps/sandbox/Manifest
15 index e0fd4ea..c059ab6 100644
16 --- a/sys-apps/sandbox/Manifest
17 +++ b/sys-apps/sandbox/Manifest
18 @@ -5,3 +5,4 @@ DIST sandbox-2.5.tar.xz 355680 SHA256 c0e98767fb70750d79591a6d08f81d5c2f13ce783b
19 DIST sandbox-2.6.tar.xz 366356 SHA256 95615c5879dfc419713f22ba5506a2802a50ea0ce8a2f57c656354f2e50b1c4d SHA512 32ba7fb675c67fdc8bc52da1db7ed6878e5fea8753accb30d9aca00f708e0dde03287b5962caf5ef031bea6934d6ef3e18404b015c70ebd551d3fd8109ad2371 WHIRLPOOL bab2d015fb0de92a2266408ca7941c8fb66b599179040cfc727ffce5b2424a9722dc55ba89d198e3361044d8cb357314205488d2a980c7b8af063fd8940f0c03
20 DIST sandbox-2.7.tar.xz 390304 SHA256 d6e1230180d84fb64c9788dd372a73a1cd2496ead91cad333a211320d3041149 SHA512 81056460afabe3f9163594f662f5faf87b6dfe8511a001fc4d6ce0171492eb29f3b645a45320032d34475bb2c24bf212d1d05b50878a340f1e2ca580f8f8f38a WHIRLPOOL ad070df6351537e49f939ba195f27ccf5e4566bb8b6e4ba391ab8174771eacf909571284c6fa873d5b55e8540605d2766a3de5d451b6af132c0ff6d96e43f554
21 DIST sandbox-2.8.tar.xz 410588 SHA256 f01dcac27a4641d1898c4a19bf3a0572f8ec85c3ba12e6ede8af36f6bc047165 SHA512 73a21e72f5825f43ee887efbe73f4ccd8771c7f45438104077aa83448d0a2727ab65be89a7a1a690d3662594df680ca4dc29908763e5abe2a81594b6f8f6ff2e WHIRLPOOL 6c93a0d8737bab4e710f0f20645514c9a5413a2d357a64c2e8b8428567221b949134881e705f979aa374635a278c0b3c646a6cffaf1015024db8f2aab2ec7c74
22 +DIST sandbox-2.9.tar.xz 415992 SHA256 ee6e92932c5a30d784548985b69adb357662fadd32d961776f197879ff8230c7 SHA512 9f9b886c160fa14119c7bc389b2eeb1050b150dccd60f64d809db43a23bc703004cb9ccaa454b970adb5e0616b19c9e9e0e6e52fccf6b16608ab89b3c2c3cee7 WHIRLPOOL aeae0387fe618c2af2945747629991649935f344906017f5b00e1a63496c2cc03ee5b7f078ee1d83897fad3f54793e02be86a6f297b7bbd4af2918b2a8157633
23
24 diff --git a/sys-apps/sandbox/sandbox-2.9.ebuild b/sys-apps/sandbox/sandbox-2.9.ebuild
25 new file mode 100644
26 index 0000000..2550852
27 --- /dev/null
28 +++ b/sys-apps/sandbox/sandbox-2.9.ebuild
29 @@ -0,0 +1,123 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +#
35 +# don't monkey with this ebuild unless contacting portage devs.
36 +# period.
37 +#
38 +
39 +inherit eutils flag-o-matic toolchain-funcs multilib unpacker multiprocessing
40 +
41 +DESCRIPTION="sandbox'd LD_PRELOAD hack"
42 +HOMEPAGE="https://www.gentoo.org/proj/en/portage/sandbox/"
43 +SRC_URI="mirror://gentoo/${P}.tar.xz
44 + https://dev.gentoo.org/~vapier/dist/${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 ~sparc-fbsd ~x86-fbsd"
49 +IUSE="multilib"
50 +
51 +DEPEND="app-arch/xz-utils
52 + >=app-misc/pax-utils-0.1.19" #265376
53 +RDEPEND=""
54 +
55 +EMULTILIB_PKG="true"
56 +has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
57 +
58 +sandbox_death_notice() {
59 + ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
60 + ewarn "FEATURES=-sandbox emerge sandbox"
61 +}
62 +
63 +sb_get_install_abis() { use multilib && get_install_abis || echo ${ABI:-default} ; }
64 +
65 +sb_foreach_abi() {
66 + local OABI=${ABI}
67 + for ABI in $(sb_get_install_abis) ; do
68 + cd "${WORKDIR}/build-${ABI}"
69 + einfo "Running $1 for ABI=${ABI}..."
70 + "$@"
71 + done
72 + ABI=${OABI}
73 +}
74 +
75 +src_unpack() {
76 + unpacker
77 + cd "${S}"
78 + epatch_user
79 +}
80 +
81 +sb_configure() {
82 + mkdir "${WORKDIR}/build-${ABI}"
83 + cd "${WORKDIR}/build-${ABI}"
84 +
85 + use multilib && multilib_toolchain_setup ${ABI}
86 +
87 + einfo "Configuring sandbox for ABI=${ABI}..."
88 + ECONF_SOURCE="${S}" \
89 + econf ${myconf} || die
90 +}
91 +
92 +sb_compile() {
93 + emake || die
94 +}
95 +
96 +src_compile() {
97 + filter-lfs-flags #90228
98 +
99 + # Run configures in parallel!
100 + multijob_init
101 + local OABI=${ABI}
102 + for ABI in $(sb_get_install_abis) ; do
103 + multijob_child_init sb_configure
104 + done
105 + ABI=${OABI}
106 + multijob_finish
107 +
108 + sb_foreach_abi sb_compile
109 +}
110 +
111 +sb_test() {
112 + emake check TESTSUITEFLAGS="--jobs=$(makeopts_jobs)" || die
113 +}
114 +
115 +src_test() {
116 + sb_foreach_abi sb_test
117 +}
118 +
119 +sb_install() {
120 + emake DESTDIR="${D}" install || die
121 + insinto /etc/sandbox.d #333131
122 + doins etc/sandbox.d/00default || die
123 +}
124 +
125 +src_install() {
126 + sb_foreach_abi sb_install
127 +
128 + doenvd "${FILESDIR}"/09sandbox
129 +
130 + keepdir /var/log/sandbox
131 + fowners root:portage /var/log/sandbox
132 + fperms 0770 /var/log/sandbox
133 +
134 + cd "${S}"
135 + dodoc AUTHORS ChangeLog* NEWS README
136 +}
137 +
138 +pkg_preinst() {
139 + chown root:portage "${D}"/var/log/sandbox
140 + chmod 0770 "${D}"/var/log/sandbox
141 +
142 + local old=$(find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
143 + if [[ -n ${old} ]] ; then
144 + elog "Removing old sandbox libraries for you:"
145 + elog ${old//${ROOT}}
146 + find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -exec rm -fv {} \;
147 + fi
148 +}
149 +
150 +pkg_postinst() {
151 + chmod 0755 "${ROOT}"/etc/sandbox.d #265376
152 +}