1 |
commit: 696f994460597f835f57e3d0d65211056391333d |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 1 14:26:08 2018 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 1 14:27:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=696f9944 |
7 |
|
8 |
sys-apps/proot: drop old versions |
9 |
|
10 |
As those versions are broken since kernel 4.8 |
11 |
Drop entire package to be unstable |
12 |
|
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
sys-apps/proot/Manifest | 4 - |
16 |
sys-apps/proot/files/proot-3.2.1-makefile.patch | 11 -- |
17 |
sys-apps/proot/files/proot-3.2.2-build-care.patch | 20 ---- |
18 |
sys-apps/proot/files/proot-4.0.1-argv.patch | 125 ---------------------- |
19 |
sys-apps/proot/proot-3.2.2-r1.ebuild | 72 ------------- |
20 |
sys-apps/proot/proot-4.0.1.ebuild | 67 ------------ |
21 |
sys-apps/proot/proot-4.0.3.ebuild | 68 ------------ |
22 |
sys-apps/proot/proot-5.0.0.ebuild | 68 ------------ |
23 |
sys-apps/proot/proot-5.1.0.ebuild | 68 ------------ |
24 |
9 files changed, 503 deletions(-) |
25 |
|
26 |
diff --git a/sys-apps/proot/Manifest b/sys-apps/proot/Manifest |
27 |
index 0cc284692be..37f988ee1d1 100644 |
28 |
--- a/sys-apps/proot/Manifest |
29 |
+++ b/sys-apps/proot/Manifest |
30 |
@@ -1,5 +1 @@ |
31 |
-DIST proot-3.2.2.tar.gz 171047 BLAKE2B a99f7e27e57bc63508cd31b39d15cade0ffadc6b92a4f9acdf92d41afcbc9e294962d8f7b0114eade568f15b0262065ae20b3308f5b5d03a973c896ecffecaea SHA512 baf8df06a463978f0faf36f9d81935d6583b99b7e8c54b8ac330478ed92bb3a5d5cd624e028247c50bb9bc6fbe1300c5736a38c0aff250b23614aa52f922dfdd |
32 |
-DIST proot-4.0.1.tar.gz 218732 BLAKE2B 2df499190bf4ffc2c60a9b4dcff21b21aa23647e958c49731679d0a8ca4ac33f8ffb2c52729179efd4dd6d0df78c92861e17061145527f0bc1aba574350a45c4 SHA512 df6ea412856268af65ed5fd3ede8ae099c70e9b08d7875e3e2d8e44e9d4288de93e3844aa361db0b7b579b68b5e7a983989ec0742a6d31d7bef889f739db2158 |
33 |
-DIST proot-4.0.3.tar.gz 222716 BLAKE2B 40a0f99926db386f4018612035812246b67e2070ebd343183dfc6f1e5a53f1c3718352e1042e9727d9e617c0591b6fdcb90745d8d359d607dec95e015ac2704e SHA512 1c74219d44ea79a4573c6dd21a5b62df8e93522886cadb1175044b782f40a711193af348763663d24ab634fbe13b67264f0bff061a980947810e38850d0133f8 |
34 |
-DIST proot-5.0.0.tar.gz 250005 BLAKE2B 89b4f9cb5507b87ae52e82502846fa66a0083618672599068620f7f21ea750524f56f9159e81e1e96bee2ac476b1c49aeb58429178b70c01f26f34065f443fdf SHA512 0617142d5bfe40329c12f5cbe3c850d01b82f10a8b44d63acb64e7e880af652fb60d05610fb91ce317353986eb30f031d82114661e5d58a38696d242ccd366ee |
35 |
DIST proot-5.1.0.tar.gz 253251 BLAKE2B 8dc147d6c6ee303baf0c86f2fa4a8c17a58e76d9da9432635fc70ee06a65aa748ad617735012a1a18a520775fbe38c2264dcccefb681e8e829a5e7e1ddb05cca SHA512 26be26d405a8bcbe94377c3e9c18a571e4b61e3074f0716b0db3517d147d9d4a07c80f7312171cf9580ac7748e72e688efaf1b8e4a0ca3bfc31c802aa351346f |
36 |
|
37 |
diff --git a/sys-apps/proot/files/proot-3.2.1-makefile.patch b/sys-apps/proot/files/proot-3.2.1-makefile.patch |
38 |
deleted file mode 100644 |
39 |
index 854c48ef081..00000000000 |
40 |
--- a/sys-apps/proot/files/proot-3.2.1-makefile.patch |
41 |
+++ /dev/null |
42 |
@@ -1,11 +0,0 @@ |
43 |
---- src/GNUmakefile.orig 2013-12-06 10:47:18.554784621 +0400 |
44 |
-+++ src/GNUmakefile 2013-12-06 10:47:43.129785804 +0400 |
45 |
-@@ -9,7 +9,7 @@ |
46 |
- CC = gcc |
47 |
- LD = $(CC) |
48 |
- CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I. -I$(VPATH) |
49 |
--CFLAGS += -Wall -Wextra -O2 |
50 |
-+CFLAGS += -Wall -Wextra |
51 |
- LDFLAGS += -ltalloc |
52 |
- |
53 |
- OBJECTS = \ |
54 |
|
55 |
diff --git a/sys-apps/proot/files/proot-3.2.2-build-care.patch b/sys-apps/proot/files/proot-3.2.2-build-care.patch |
56 |
deleted file mode 100644 |
57 |
index c52a39cf787..00000000000 |
58 |
--- a/sys-apps/proot/files/proot-3.2.2-build-care.patch |
59 |
+++ /dev/null |
60 |
@@ -1,20 +0,0 @@ |
61 |
-Skip check for building care, patch by Patrick Lauer <patrick AT gentoo.org> |
62 |
- |
63 |
---- src/GNUmakefile 2014-02-25 16:42:04.336863622 +0800 |
64 |
-+++ src/GNUmakefile.new 2014-02-25 16:42:26.063050467 +0800 |
65 |
-@@ -54,15 +54,6 @@ |
66 |
- all: proot |
67 |
- |
68 |
- ###################################################################### |
69 |
--# Sanity checks |
70 |
-- |
71 |
--ifneq (,$(findstring care,$(MAKECMDGOALS))) |
72 |
--ifneq ($(CARE_BUILD_ENV),ok) |
73 |
--$(error care is supposed to be built with: http://build.reproducible.io) |
74 |
--endif |
75 |
--endif |
76 |
-- |
77 |
--###################################################################### |
78 |
- # Beautified output |
79 |
- |
80 |
- quiet_GEN = @echo " GEN $@"; $(GEN) |
81 |
|
82 |
diff --git a/sys-apps/proot/files/proot-4.0.1-argv.patch b/sys-apps/proot/files/proot-4.0.1-argv.patch |
83 |
deleted file mode 100644 |
84 |
index df580563458..00000000000 |
85 |
--- a/sys-apps/proot/files/proot-4.0.1-argv.patch |
86 |
+++ /dev/null |
87 |
@@ -1,125 +0,0 @@ |
88 |
-commit 520fa3601c36dd0a3c84e310bd2a1189259000bd |
89 |
-Author: Cédric VINCENT <cedric.vincent@××.com> |
90 |
-Date: Thu Aug 7 14:29:37 2014 +0200 |
91 |
- |
92 |
- Don't dereference argv[0] when launching a script through a symlink. |
93 |
- |
94 |
- Reported-by: Joakim Tjernlund <Joakim.Tjernlund@×××××××××.se> |
95 |
- Ref: https://bugs.gentoo.org/show_bug.cgi?id=517496 |
96 |
- |
97 |
- Also, don't complain about non-regular or non-executable files that |
98 |
- are not explicitely candidates. |
99 |
- |
100 |
-diff --git a/src/path/path.c b/src/path/path.c |
101 |
-index 4225876..ecdef70 100644 |
102 |
---- a/src/path/path.c |
103 |
-+++ b/src/path/path.c |
104 |
-@@ -219,17 +219,21 @@ int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *con |
105 |
- /* Is the command available without any $PATH look-up? */ |
106 |
- status = realpath2(tracee, host_path, command, true); |
107 |
- if (status == 0 && stat(host_path, &statr) == 0) { |
108 |
-- if (!S_ISREG(statr.st_mode)) { |
109 |
-+ if (is_explicit && !S_ISREG(statr.st_mode)) { |
110 |
- notice(tracee, ERROR, USER, "'%s' is not a regular file", command); |
111 |
- return -EACCES; |
112 |
- } |
113 |
- |
114 |
-- if ((statr.st_mode & S_IXUSR) == 0) { |
115 |
-+ if (is_explicit && (statr.st_mode & S_IXUSR) == 0) { |
116 |
- notice(tracee, ERROR, USER, "'%s' is not executable", command); |
117 |
- return -EACCES; |
118 |
- } |
119 |
- |
120 |
- found = true; |
121 |
-+ |
122 |
-+ /* Don't dereference the final component to preserve |
123 |
-+ * argv0 in case it is a symlink to script. */ |
124 |
-+ (void) realpath2(tracee, host_path, command, false); |
125 |
- } |
126 |
- else |
127 |
- found = false; |
128 |
-@@ -274,8 +278,12 @@ int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *con |
129 |
- if (status == 0 |
130 |
- && stat(host_path, &statr) == 0 |
131 |
- && S_ISREG(statr.st_mode) |
132 |
-- && (statr.st_mode & S_IXUSR) != 0) |
133 |
-- return 0; |
134 |
-+ && (statr.st_mode & S_IXUSR) != 0) { |
135 |
-+ /* Don't dereference the final component to preserve |
136 |
-+ * argv0 in case it is a symlink to script. */ |
137 |
-+ (void) realpath2(tracee, host_path, path, false); |
138 |
-+ return 0; |
139 |
-+ } |
140 |
- } while (*(cursor - 1) != '\0'); |
141 |
- |
142 |
- not_found: |
143 |
-diff --git a/src/tracee/event.c b/src/tracee/event.c |
144 |
-index 70668d6..5905c43 100644 |
145 |
---- a/src/tracee/event.c |
146 |
-+++ b/src/tracee/event.c |
147 |
-@@ -92,7 +92,7 @@ int launch_process(Tracee *tracee) |
148 |
- * guest rootfs. Note: Valgrind can't handle execve(2) on |
149 |
- * "foreign" binaries (ENOEXEC) but can handle execvp(3) on such |
150 |
- * binaries. */ |
151 |
-- execvp(tracee->exe, tracee->cmdline); |
152 |
-+ execv(tracee->exe, tracee->cmdline); |
153 |
- return -errno; |
154 |
- |
155 |
- default: /* parent */ |
156 |
-diff --git a/tests/test-713b6910.sh b/tests/test-713b6910.sh |
157 |
-new file mode 100644 |
158 |
-index 0000000..82e01fd |
159 |
---- /dev/null |
160 |
-+++ b/tests/test-713b6910.sh |
161 |
-@@ -0,0 +1,51 @@ |
162 |
-+if [ -z `which mcookie` ] || [ -z `which rm` ] || [ -z `which cat` ] || [ -z `which chmod` ] || [ -z `which ln` ] || [ -z `which grep` ] || [ -z `which mkdir` ] || [ ! -x ${ROOTFS}/bin/readlink ]; then |
163 |
-+ exit 125; |
164 |
-+fi |
165 |
-+ |
166 |
-+###################################################################### |
167 |
-+ |
168 |
-+TMP1=/tmp/$(mcookie) |
169 |
-+TMP2=/tmp/$(mcookie) |
170 |
-+TMP3=/tmp/$(mcookie) |
171 |
-+TMP4=/tmp/$(mcookie) |
172 |
-+ |
173 |
-+rm -fr ${TMP1} ${TMP2} ${TMP3} ${TMP4} |
174 |
-+ |
175 |
-+###################################################################### |
176 |
-+ |
177 |
-+cat > ${TMP1} <<'EOF' |
178 |
-+#!/bin/sh |
179 |
-+echo $0 |
180 |
-+EOF |
181 |
-+ |
182 |
-+chmod +x ${TMP1} |
183 |
-+ln -s ${TMP1} ${TMP2} |
184 |
-+ |
185 |
-+${PROOT} ${TMP2} | grep -v ${TMP1} |
186 |
-+${PROOT} ${TMP2} | grep ${TMP2} |
187 |
-+ |
188 |
-+###################################################################### |
189 |
-+ |
190 |
-+mkdir -p ${TMP3} |
191 |
-+cd ${TMP3} |
192 |
-+ |
193 |
-+ln -s $(which true) false |
194 |
-+! ${PROOT} false |
195 |
-+ |
196 |
-+echo "#!$(which false)" > true |
197 |
-+chmod a-x true |
198 |
-+${PROOT} true |
199 |
-+ |
200 |
-+###################################################################### |
201 |
-+ |
202 |
-+ln -s ${ROOTFS}/bin/readlink ${TMP4} |
203 |
-+ |
204 |
-+TEST1=$(${PROOT} ${ROOTFS}/bin/readlink /proc/self/exe) |
205 |
-+TEST2=$(${PROOT} ${TMP4} /proc/self/exe) |
206 |
-+ |
207 |
-+test "${TEST1}" = "${TEST2}" |
208 |
-+ |
209 |
-+###################################################################### |
210 |
-+ |
211 |
-+cd / |
212 |
-+rm -fr ${TMP1} ${TMP2} ${TMP3} ${TMP4} |
213 |
|
214 |
diff --git a/sys-apps/proot/proot-3.2.2-r1.ebuild b/sys-apps/proot/proot-3.2.2-r1.ebuild |
215 |
deleted file mode 100644 |
216 |
index ef14402f083..00000000000 |
217 |
--- a/sys-apps/proot/proot-3.2.2-r1.ebuild |
218 |
+++ /dev/null |
219 |
@@ -1,72 +0,0 @@ |
220 |
-# Copyright 1999-2014 Gentoo Foundation |
221 |
-# Distributed under the terms of the GNU General Public License v2 |
222 |
- |
223 |
-EAPI=5 |
224 |
-MY_PN="PRoot" |
225 |
- |
226 |
-inherit eutils pax-utils toolchain-funcs |
227 |
- |
228 |
-DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc" |
229 |
-HOMEPAGE="https://proot-me.github.io/" |
230 |
-SRC_URI="https://github.com/proot-me/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
231 |
- |
232 |
-LICENSE="GPL-2" |
233 |
-SLOT="0" |
234 |
-KEYWORDS="amd64 x86" |
235 |
-IUSE="care test" |
236 |
- |
237 |
-RDEPEND="care? ( app-arch/libarchive:0= ) |
238 |
- sys-libs/talloc" |
239 |
-DEPEND="${RDEPEND} |
240 |
- care? ( dev-libs/uthash ) |
241 |
- test? ( dev-util/valgrind )" |
242 |
- |
243 |
-# Breaks sandbox |
244 |
-RESTRICT="test" |
245 |
- |
246 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
247 |
- |
248 |
-src_prepare() { |
249 |
- epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \ |
250 |
- "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" \ |
251 |
- "${FILESDIR}/${P}-build-care.patch" |
252 |
- epatch_user |
253 |
-} |
254 |
- |
255 |
-src_compile() { |
256 |
- # build the proot and care targets |
257 |
- emake -C src V=1 \ |
258 |
- CC="$(tc-getCC)" \ |
259 |
- CHECK_VERSION="true" \ |
260 |
- CAREBUILDENV="ok" \ |
261 |
- proot $(usex care "care" "" "" "") |
262 |
-} |
263 |
- |
264 |
-src_install() { |
265 |
- if use care; then |
266 |
- # Workaround for bug #493416 |
267 |
- pax-mark -Emp src/care |
268 |
- dobin src/care |
269 |
- fi |
270 |
- # Workaround for bug #493416 |
271 |
- pax-mark -Emp src/proot |
272 |
- |
273 |
- dobin src/proot |
274 |
- doman doc/proot.1 |
275 |
- dodoc doc/*.txt doc/articles/* |
276 |
-} |
277 |
- |
278 |
-src_test() { |
279 |
- emake -C tests -j1 CC="$(tc-getCC)" |
280 |
-} |
281 |
- |
282 |
-pkg_postinst() { |
283 |
- if use care; then |
284 |
- elog "You have enabled 'care' USE flag, that builds and installs" |
285 |
- elog "dynamically linked care binary." |
286 |
- elog "Upstream does NOT support such way of building CARE," |
287 |
- elog "it provides only prebuilt binaries." |
288 |
- elog "CARE also has known problems on hardened systems" |
289 |
- elog "Please do NOT file bugs about them to https://bugs.gentoo.org" |
290 |
- fi |
291 |
-} |
292 |
|
293 |
diff --git a/sys-apps/proot/proot-4.0.1.ebuild b/sys-apps/proot/proot-4.0.1.ebuild |
294 |
deleted file mode 100644 |
295 |
index 33b2ca7192b..00000000000 |
296 |
--- a/sys-apps/proot/proot-4.0.1.ebuild |
297 |
+++ /dev/null |
298 |
@@ -1,67 +0,0 @@ |
299 |
-# Copyright 1999-2014 Gentoo Foundation |
300 |
-# Distributed under the terms of the GNU General Public License v2 |
301 |
- |
302 |
-EAPI=5 |
303 |
-MY_PN="PRoot" |
304 |
- |
305 |
-inherit eutils toolchain-funcs |
306 |
- |
307 |
-DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc" |
308 |
-HOMEPAGE="https://proot-me.github.io/" |
309 |
-SRC_URI="https://github.com/proot-me/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
310 |
- |
311 |
-LICENSE="GPL-2" |
312 |
-SLOT="0" |
313 |
-KEYWORDS="~amd64 ~x86" |
314 |
-IUSE="care test" |
315 |
- |
316 |
-RDEPEND="care? ( app-arch/libarchive:0= ) |
317 |
- sys-libs/talloc" |
318 |
-DEPEND="${RDEPEND} |
319 |
- care? ( dev-libs/uthash ) |
320 |
- test? ( dev-util/valgrind )" |
321 |
- |
322 |
-# Breaks sandbox |
323 |
-RESTRICT="test" |
324 |
- |
325 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
326 |
- |
327 |
-src_prepare() { |
328 |
- epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \ |
329 |
- "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" \ |
330 |
- "${FILESDIR}/${PN}-3.2.2-build-care.patch" \ |
331 |
- "${FILESDIR}/${PN}-4.0.1-argv.patch" |
332 |
- epatch_user |
333 |
-} |
334 |
- |
335 |
-src_compile() { |
336 |
- # build the proot and care targets |
337 |
- emake -C src V=1 \ |
338 |
- CC="$(tc-getCC)" \ |
339 |
- CHECK_VERSION="true" \ |
340 |
- CAREBUILDENV="ok" \ |
341 |
- proot $(use care && echo "care") |
342 |
-} |
343 |
- |
344 |
-src_install() { |
345 |
- use care && dobin src/care |
346 |
- dobin src/proot |
347 |
- newman doc/proot/man.1 proot.1 |
348 |
- dodoc doc/proot/*.txt |
349 |
- dodoc -r doc/articles |
350 |
-} |
351 |
- |
352 |
-src_test() { |
353 |
- emake -C tests -j1 CC="$(tc-getCC)" |
354 |
-} |
355 |
- |
356 |
-pkg_postinst() { |
357 |
- if use care; then |
358 |
- elog "You have enabled 'care' USE flag, that builds and installs" |
359 |
- elog "dynamically linked care binary." |
360 |
- elog "Upstream does NOT support such way of building CARE," |
361 |
- elog "it provides only prebuilt binaries." |
362 |
- elog "CARE also has known problems on hardened systems" |
363 |
- elog "Please do NOT file bugs about them to https://bugs.gentoo.org" |
364 |
- fi |
365 |
-} |
366 |
|
367 |
diff --git a/sys-apps/proot/proot-4.0.3.ebuild b/sys-apps/proot/proot-4.0.3.ebuild |
368 |
deleted file mode 100644 |
369 |
index 6e07802ddcb..00000000000 |
370 |
--- a/sys-apps/proot/proot-4.0.3.ebuild |
371 |
+++ /dev/null |
372 |
@@ -1,68 +0,0 @@ |
373 |
-# Copyright 1999-2015 Gentoo Foundation |
374 |
-# Distributed under the terms of the GNU General Public License v2 |
375 |
- |
376 |
-EAPI=5 |
377 |
-MY_PN="PRoot" |
378 |
- |
379 |
-inherit eutils toolchain-funcs |
380 |
- |
381 |
-DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc" |
382 |
-HOMEPAGE="https://proot-me.github.io/" |
383 |
-SRC_URI="https://github.com/proot-me/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
384 |
- |
385 |
-LICENSE="GPL-2" |
386 |
-SLOT="0" |
387 |
-KEYWORDS="~amd64 ~x86" |
388 |
-IUSE="care test" |
389 |
- |
390 |
-RDEPEND="care? ( app-arch/libarchive:0= ) |
391 |
- sys-libs/talloc" |
392 |
-DEPEND="${RDEPEND} |
393 |
- care? ( dev-libs/uthash ) |
394 |
- test? ( dev-util/valgrind )" |
395 |
- |
396 |
-# Breaks sandbox |
397 |
-RESTRICT="test" |
398 |
- |
399 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
400 |
- |
401 |
-src_prepare() { |
402 |
- epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \ |
403 |
- "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" |
404 |
- epatch_user |
405 |
-} |
406 |
- |
407 |
-src_compile() { |
408 |
- # build the proot and care targets |
409 |
- emake -C src V=1 \ |
410 |
- CC="$(tc-getCC)" \ |
411 |
- CHECK_VERSION="true" \ |
412 |
- CAREBUILDENV="ok" \ |
413 |
- proot $(use care && echo "care") |
414 |
-} |
415 |
- |
416 |
-src_install() { |
417 |
- if use care; then |
418 |
- dobin src/care |
419 |
- dodoc doc/care/*.txt |
420 |
- fi |
421 |
- dobin src/proot |
422 |
- newman doc/proot/man.1 proot.1 |
423 |
- dodoc doc/proot/*.txt |
424 |
- dodoc -r doc/articles |
425 |
-} |
426 |
- |
427 |
-src_test() { |
428 |
- emake -C tests -j1 CC="$(tc-getCC)" |
429 |
-} |
430 |
- |
431 |
-pkg_postinst() { |
432 |
- if use care; then |
433 |
- elog "You have enabled 'care' USE flag, that builds and installs" |
434 |
- elog "dynamically linked care binary." |
435 |
- elog "Upstream does NOT support such way of building CARE," |
436 |
- elog "it provides only prebuilt binaries." |
437 |
- elog "CARE also has known problems on hardened systems" |
438 |
- elog "Please do NOT file bugs about them to https://bugs.gentoo.org" |
439 |
- fi |
440 |
-} |
441 |
|
442 |
diff --git a/sys-apps/proot/proot-5.0.0.ebuild b/sys-apps/proot/proot-5.0.0.ebuild |
443 |
deleted file mode 100644 |
444 |
index 6e07802ddcb..00000000000 |
445 |
--- a/sys-apps/proot/proot-5.0.0.ebuild |
446 |
+++ /dev/null |
447 |
@@ -1,68 +0,0 @@ |
448 |
-# Copyright 1999-2015 Gentoo Foundation |
449 |
-# Distributed under the terms of the GNU General Public License v2 |
450 |
- |
451 |
-EAPI=5 |
452 |
-MY_PN="PRoot" |
453 |
- |
454 |
-inherit eutils toolchain-funcs |
455 |
- |
456 |
-DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc" |
457 |
-HOMEPAGE="https://proot-me.github.io/" |
458 |
-SRC_URI="https://github.com/proot-me/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
459 |
- |
460 |
-LICENSE="GPL-2" |
461 |
-SLOT="0" |
462 |
-KEYWORDS="~amd64 ~x86" |
463 |
-IUSE="care test" |
464 |
- |
465 |
-RDEPEND="care? ( app-arch/libarchive:0= ) |
466 |
- sys-libs/talloc" |
467 |
-DEPEND="${RDEPEND} |
468 |
- care? ( dev-libs/uthash ) |
469 |
- test? ( dev-util/valgrind )" |
470 |
- |
471 |
-# Breaks sandbox |
472 |
-RESTRICT="test" |
473 |
- |
474 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
475 |
- |
476 |
-src_prepare() { |
477 |
- epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \ |
478 |
- "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" |
479 |
- epatch_user |
480 |
-} |
481 |
- |
482 |
-src_compile() { |
483 |
- # build the proot and care targets |
484 |
- emake -C src V=1 \ |
485 |
- CC="$(tc-getCC)" \ |
486 |
- CHECK_VERSION="true" \ |
487 |
- CAREBUILDENV="ok" \ |
488 |
- proot $(use care && echo "care") |
489 |
-} |
490 |
- |
491 |
-src_install() { |
492 |
- if use care; then |
493 |
- dobin src/care |
494 |
- dodoc doc/care/*.txt |
495 |
- fi |
496 |
- dobin src/proot |
497 |
- newman doc/proot/man.1 proot.1 |
498 |
- dodoc doc/proot/*.txt |
499 |
- dodoc -r doc/articles |
500 |
-} |
501 |
- |
502 |
-src_test() { |
503 |
- emake -C tests -j1 CC="$(tc-getCC)" |
504 |
-} |
505 |
- |
506 |
-pkg_postinst() { |
507 |
- if use care; then |
508 |
- elog "You have enabled 'care' USE flag, that builds and installs" |
509 |
- elog "dynamically linked care binary." |
510 |
- elog "Upstream does NOT support such way of building CARE," |
511 |
- elog "it provides only prebuilt binaries." |
512 |
- elog "CARE also has known problems on hardened systems" |
513 |
- elog "Please do NOT file bugs about them to https://bugs.gentoo.org" |
514 |
- fi |
515 |
-} |
516 |
|
517 |
diff --git a/sys-apps/proot/proot-5.1.0.ebuild b/sys-apps/proot/proot-5.1.0.ebuild |
518 |
deleted file mode 100644 |
519 |
index 6e07802ddcb..00000000000 |
520 |
--- a/sys-apps/proot/proot-5.1.0.ebuild |
521 |
+++ /dev/null |
522 |
@@ -1,68 +0,0 @@ |
523 |
-# Copyright 1999-2015 Gentoo Foundation |
524 |
-# Distributed under the terms of the GNU General Public License v2 |
525 |
- |
526 |
-EAPI=5 |
527 |
-MY_PN="PRoot" |
528 |
- |
529 |
-inherit eutils toolchain-funcs |
530 |
- |
531 |
-DESCRIPTION="User-space implementation of chroot, mount --bind, and binfmt_misc" |
532 |
-HOMEPAGE="https://proot-me.github.io/" |
533 |
-SRC_URI="https://github.com/proot-me/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
534 |
- |
535 |
-LICENSE="GPL-2" |
536 |
-SLOT="0" |
537 |
-KEYWORDS="~amd64 ~x86" |
538 |
-IUSE="care test" |
539 |
- |
540 |
-RDEPEND="care? ( app-arch/libarchive:0= ) |
541 |
- sys-libs/talloc" |
542 |
-DEPEND="${RDEPEND} |
543 |
- care? ( dev-libs/uthash ) |
544 |
- test? ( dev-util/valgrind )" |
545 |
- |
546 |
-# Breaks sandbox |
547 |
-RESTRICT="test" |
548 |
- |
549 |
-S="${WORKDIR}/${MY_PN}-${PV}" |
550 |
- |
551 |
-src_prepare() { |
552 |
- epatch "${FILESDIR}/${PN}-3.2.1-makefile.patch" \ |
553 |
- "${FILESDIR}/${PN}-2.3.1-lib-paths-fix.patch" |
554 |
- epatch_user |
555 |
-} |
556 |
- |
557 |
-src_compile() { |
558 |
- # build the proot and care targets |
559 |
- emake -C src V=1 \ |
560 |
- CC="$(tc-getCC)" \ |
561 |
- CHECK_VERSION="true" \ |
562 |
- CAREBUILDENV="ok" \ |
563 |
- proot $(use care && echo "care") |
564 |
-} |
565 |
- |
566 |
-src_install() { |
567 |
- if use care; then |
568 |
- dobin src/care |
569 |
- dodoc doc/care/*.txt |
570 |
- fi |
571 |
- dobin src/proot |
572 |
- newman doc/proot/man.1 proot.1 |
573 |
- dodoc doc/proot/*.txt |
574 |
- dodoc -r doc/articles |
575 |
-} |
576 |
- |
577 |
-src_test() { |
578 |
- emake -C tests -j1 CC="$(tc-getCC)" |
579 |
-} |
580 |
- |
581 |
-pkg_postinst() { |
582 |
- if use care; then |
583 |
- elog "You have enabled 'care' USE flag, that builds and installs" |
584 |
- elog "dynamically linked care binary." |
585 |
- elog "Upstream does NOT support such way of building CARE," |
586 |
- elog "it provides only prebuilt binaries." |
587 |
- elog "CARE also has known problems on hardened systems" |
588 |
- elog "Please do NOT file bugs about them to https://bugs.gentoo.org" |
589 |
- fi |
590 |
-} |