Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-2.0.ebuild
Date: Thu, 04 Jun 2009 09:38:01
Message-Id: E1MC9OZ-000655-MJ@stork.gentoo.org
1 vapier 09/06/04 09:37:59
2
3 Modified: ChangeLog
4 Added: sandbox-2.0.ebuild
5 Log:
6 Version bump to improve static tracing.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.126 sys-apps/sandbox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.126&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?rev=1.126&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/ChangeLog?r1=1.125&r2=1.126
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v
19 retrieving revision 1.125
20 retrieving revision 1.126
21 diff -u -r1.125 -r1.126
22 --- ChangeLog 17 May 2009 13:39:52 -0000 1.125
23 +++ ChangeLog 4 Jun 2009 09:37:59 -0000 1.126
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/sandbox
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.125 2009/05/17 13:39:52 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/ChangeLog,v 1.126 2009/06/04 09:37:59 vapier Exp $
29 +
30 +*sandbox-2.0 (04 Jun 2009)
31 +
32 + 04 Jun 2009; Mike Frysinger <vapier@g.o> +sandbox-2.0.ebuild:
33 + Version bump to improve static tracing.
34
35 17 May 2009; Diego E. Pettenò <flameeyes@g.o> sandbox-1.7.ebuild,
36 sandbox-1.8.ebuild, sandbox-1.9.ebuild:
37
38
39
40 1.1 sys-apps/sandbox/sandbox-2.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-2.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-2.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: sandbox-2.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/sandbox/sandbox-2.0.ebuild,v 1.1 2009/06/04 09:37:59 vapier Exp $
50
51 #
52 # don't monkey with this ebuild unless contacting portage devs.
53 # period.
54 #
55
56 inherit eutils flag-o-matic eutils toolchain-funcs multilib
57
58 DESCRIPTION="sandbox'd LD_PRELOAD hack"
59 HOMEPAGE="http://www.gentoo.org/"
60 SRC_URI="mirror://gentoo/${P}.tar.lzma
61 http://dev.gentoo.org/~vapier/dist/${P}.tar.lzma"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd -x86-fbsd"
66 IUSE=""
67
68 DEPEND="app-arch/lzma-utils
69 >=app-misc/pax-utils-0.1.19" #265376
70 RDEPEND=""
71
72 EMULTILIB_PKG="true"
73 has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
74
75 sandbox_death_notice() {
76 ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
77 ewarn "FEATURES=-sandbox emerge sandbox"
78 }
79
80 src_compile() {
81 filter-lfs-flags #90228
82
83 local OABI=${ABI}
84 for ABI in $(get_install_abis) ; do
85 mkdir "${WORKDIR}/build-${ABI}"
86 cd "${WORKDIR}/build-${ABI}"
87
88 multilib_toolchain_setup ${ABI}
89
90 einfo "Configuring sandbox for ABI=${ABI}..."
91 ECONF_SOURCE="../${P}/" \
92 econf ${myconf} || die
93 einfo "Building sandbox for ABI=${ABI}..."
94 emake || die
95 done
96 ABI=${OABI}
97 }
98
99 src_test() {
100 local OABI=${ABI}
101 for ABI in $(get_install_abis) ; do
102 cd "${WORKDIR}/build-${ABI}"
103 einfo "Checking sandbox for ABI=${ABI}..."
104 emake check || die "make check failed for ${ABI}"
105 done
106 ABI=${OABI}
107 }
108
109 src_install() {
110 local OABI=${ABI}
111 for ABI in $(get_install_abis) ; do
112 cd "${WORKDIR}/build-${ABI}"
113 einfo "Installing sandbox for ABI=${ABI}..."
114 emake DESTDIR="${D}" install || die "make install failed for ${ABI}"
115 done
116 ABI=${OABI}
117
118 doenvd "${FILESDIR}"/09sandbox
119
120 keepdir /var/log/sandbox
121 fowners root:portage /var/log/sandbox
122 fperms 0770 /var/log/sandbox
123
124 cd "${S}"
125 dodoc AUTHORS ChangeLog* NEWS README
126 }
127
128 pkg_preinst() {
129 chown root:portage "${D}"/var/log/sandbox
130 chmod 0770 "${D}"/var/log/sandbox
131
132 local old=$(find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*')
133 if [[ -n ${old} ]] ; then
134 elog "Removing old sandbox libraries for you:"
135 elog ${old//${ROOT}}
136 find "${ROOT}"/lib* -maxdepth 1 -name 'libsandbox*' -exec rm -fv {} \;
137 fi
138 }
139
140 pkg_postinst() {
141 chmod 0755 "${ROOT}"/etc/sandbox.d #265376
142 }