1 |
commit: 87318b1cde334275d51b80790b476f4cc8159242 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 30 11:36:02 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 11:46:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87318b1c |
7 |
|
8 |
app-admin/chroot_safe: EAPI7 revbump, improve ebuild |
9 |
|
10 |
Closes: https://bugs.gentoo.org/667358 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10022 |
14 |
|
15 |
app-admin/chroot_safe/chroot_safe-1.4-r1.ebuild | 33 +++++++++++++++++++++++++ |
16 |
1 file changed, 33 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/chroot_safe/chroot_safe-1.4-r1.ebuild b/app-admin/chroot_safe/chroot_safe-1.4-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..1eb04bd3ccb |
21 |
--- /dev/null |
22 |
+++ b/app-admin/chroot_safe/chroot_safe-1.4-r1.ebuild |
23 |
@@ -0,0 +1,33 @@ |
24 |
+# Copyright 1999-2018 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Chroot any dynamically linked application in a safe and sane manner" |
32 |
+HOMEPAGE="http://chrootsafe.sourceforge.net/" |
33 |
+SRC_URI="mirror://sourceforge/${PN//_}/${P}.tgz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~ppc ~x86" |
38 |
+ |
39 |
+PATCHES=( "${FILESDIR}"/${P}-ldflags.patch ) |
40 |
+ |
41 |
+src_configure() { |
42 |
+ econf --libexecdir="${EPREFIX}/usr/$(get_libdir)" |
43 |
+} |
44 |
+ |
45 |
+src_compile() { |
46 |
+ emake CPPFLAGS="${CXXFLAGS}" CXX="$(tc-getCXX)" |
47 |
+} |
48 |
+ |
49 |
+src_install() { |
50 |
+ dolib.so chroot_safe.so |
51 |
+ dosbin chroot_safe |
52 |
+ sed -i -e "s:/chroot_safe::" "${ED}"/usr/sbin/chroot_safe \ |
53 |
+ || die "sed chroot_safe failed" |
54 |
+ doman chroot_safe.1 |
55 |
+ dodoc CHANGES.txt |
56 |
+} |