Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/jail/
Date: Sun, 01 Jul 2018 08:24:34
Message-Id: 1530433460.dec0b64214681402304b46b4505bb6df920d118f.pacho@gentoo
1 commit: dec0b64214681402304b46b4505bb6df920d118f
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 1 08:12:31 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 1 08:24:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dec0b642
7
8 app-misc/jail: Drop old
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 app-misc/jail/jail-2.0.ebuild | 69 -------------------------------------------
13 1 file changed, 69 deletions(-)
14
15 diff --git a/app-misc/jail/jail-2.0.ebuild b/app-misc/jail/jail-2.0.ebuild
16 deleted file mode 100644
17 index 40247a1caf4..00000000000
18 --- a/app-misc/jail/jail-2.0.ebuild
19 +++ /dev/null
20 @@ -1,69 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="5"
25 -
26 -inherit eutils flag-o-matic
27 -
28 -DESCRIPTION="Builds a chroot and configures all the required files, directories and libraries"
29 -HOMEPAGE="https://github.com/spiculator/jail"
30 -SRC_URI="https://github.com/spiculator/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="amd64 ppc x86"
35 -IUSE=""
36 -
37 -DEPEND=">=sys-apps/sed-4"
38 -RDEPEND="dev-lang/perl
39 - dev-util/strace"
40 -
41 -src_prepare() {
42 - epatch \
43 - "${FILESDIR}"/${PN}-1.9-gentoo.patch \
44 - "${FILESDIR}"/${PN}-1.9-wrongshell.patch \
45 - "${FILESDIR}"/${PN}-1.9-multiuser-rsa.patch \
46 - "${FILESDIR}"/${PN}-1.9-ldflags.patch
47 -}
48 -
49 -src_compile() {
50 - # configuration files should be installed in /etc not /usr/etc
51 - sed -i "s:\$4/etc:\${D}/etc:g" install.sh || die
52 -
53 - # the destination directory should be /usr not /usr/local
54 - sed -i -e "s:usr/local:${D}/usr:g" \
55 - -e "s:^COPT =.*:COPT = -Wl,-z,no:g" src/Makefile || die
56 -
57 - # Below didn't work. Don't know why
58 - #append-ldflags -Wl,-z,now
59 - emake -C src CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
60 -}
61 -
62 -src_install() {
63 - emake -C src install
64 -
65 - # remove //var/tmp/portage/${P}/image//usr from files
66 - FILES=( "${D}/usr/bin/mkjailenv"
67 - "${D}/usr/bin/addjailsw"
68 - "${D}/usr/bin/addjailuser"
69 - "${D}/etc/jail.conf"
70 - "${D}/usr/lib/libjail.pm"
71 - "${D}/usr/lib/arch/generic/definitions"
72 - "${D}/usr/lib/arch/generic/functions"
73 - "${D}/usr/lib/arch/linux/definitions"
74 - "${D}/usr/lib/arch/linux/functions"
75 - "${D}/usr/lib/arch/freebsd/definitions"
76 - "${D}/usr/lib/arch/freebsd/functions"
77 - "${D}/usr/lib/arch/irix/definitions"
78 - "${D}/usr/lib/arch/irix/functions"
79 - "${D}/usr/lib/arch/solaris/definitions"
80 - "${D}/usr/lib/arch/solaris/functions" )
81 -
82 - for f in "${FILES[@]}"; do
83 - sed -i "s:/${D}/usr:/usr:g" ${f} || die
84 - done
85 -
86 - sed -i "s:/usr/etc:/etc:" "${D}"/usr/lib/libjail.pm || die
87 -
88 - dodoc doc/{CHANGELOG,INSTALL,README,SECURITY,VERSION}
89 -}