/[gentoo-x86]/app-misc/jail/jail-1.9-r3.ebuild
Gentoo

Contents of /app-misc/jail/jail-1.9-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Aug 25 09:14:52 2014 UTC (6 years, 3 months ago) by k_f
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Cleanup for security bug #514892 as requested by proxy maintainer

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xFC3B17DE05E136A0!)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/jail/jail-1.9-r3.ebuild,v 1.5 2012/07/29 16:54:12 armin76 Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic
8
9 S="${WORKDIR}/${PN}_1-9_stable"
10 DESCRIPTION="a tool that builds a chroot and configures all the required files, directories and libraries"
11 HOMEPAGE="http://www.jmcresearch.com/projects/jail/"
12 SRC_URI="mirror://sourceforge/jail/${PN}_${PV}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE=""
18
19 DEPEND=">=sys-apps/sed-4"
20 RDEPEND="dev-lang/perl
21 dev-util/strace"
22
23 src_prepare() {
24 epatch \
25 "${FILESDIR}"/${P}-gentoo.patch \
26 "${FILESDIR}"/${P}-wrongshell.patch \
27 "${FILESDIR}"/${P}-multiuser-rsa.patch \
28 "${FILESDIR}"/${P}-ldflags.patch
29 }
30
31 src_compile() {
32 # configuration files should be installed in /etc not /usr/etc
33 sed -i "s:\$4/etc:\${D}/etc:g" install.sh || die
34
35 # the destination directory should be /usr not /usr/local
36 cd "${S}"/src
37 sed -i -e "s:usr/local:${D}/usr:g" \
38 -e "s:^COPT =.*:COPT = -Wl,-z,no:g" Makefile || die
39
40 # Below didn't work. Don't know why
41 #append-ldflags -Wl,-z,now
42 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
43 }
44
45 src_install() {
46 cd "${S}"/src
47 einstall || die
48
49 # remove //var/tmp/portage/jail-1.9/image//usr from files
50 FILES=( "${D}/usr/bin/mkjailenv"
51 "${D}/usr/bin/addjailsw"
52 "${D}/usr/bin/addjailuser"
53 "${D}/etc/jail.conf"
54 "${D}/usr/lib/libjail.pm"
55 "${D}/usr/lib/arch/generic/definitions"
56 "${D}/usr/lib/arch/generic/functions"
57 "${D}/usr/lib/arch/linux/definitions"
58 "${D}/usr/lib/arch/linux/functions"
59 "${D}/usr/lib/arch/freebsd/definitions"
60 "${D}/usr/lib/arch/freebsd/functions"
61 "${D}/usr/lib/arch/irix/definitions"
62 "${D}/usr/lib/arch/irix/functions"
63 "${D}/usr/lib/arch/solaris/definitions"
64 "${D}/usr/lib/arch/solaris/functions" )
65
66 for f in "${FILES[@]}"; do
67 # documentation says funtion 'dosed' is supposed to do this, but didn't know how to make it work :'(
68 # dosed ${file} || die "error in dosed"
69 sed -i "s:/${D}/usr:/usr:g" ${f} || die
70 done
71
72 cd "${D}"/usr/lib
73 sed -i "s:/usr/etc:/etc:" libjail.pm || die
74
75 cd "${S}"/doc
76 dodoc CHANGELOG INSTALL README SECURITY VERSION || die
77 }

  ViewVC Help
Powered by ViewVC 1.1.20