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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun May 11 13:49:08 2008 UTC (12 years, 6 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
quotes, amd64 stable (bug #214798), remove old
(Portage version: 2.1.5_rc10)

1 # Copyright 1999-2005 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-r1.ebuild,v 1.15 2005/04/21 19:19:04 blubb Exp $
4
5 inherit eutils
6
7 S="${WORKDIR}/${PN}_1-9_stable"
8 DESCRIPTION="Jail Chroot Project is a tool that builds a chrooted environment and automagically configures and builds all the required files, directories and libraries"
9 HOMEPAGE="http://www.jmcresearch.com/projects/jail/"
10 SRC_URI="mirror://sourceforge/jail/${PN}_${PV}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 amd64"
15 IUSE=""
16
17 DEPEND="virtual/libc"
18 RDEPEND="dev-lang/perl
19 dev-util/strace"
20
21 src_unpack() {
22 unpack ${PN}_${PV}.tar.gz
23 cd ${S}
24 epatch ${FILESDIR}/${PN}-gentoo.diff
25 epatch ${FILESDIR}/wrongshell.patch
26 }
27
28 src_compile() {
29 # configuration files should be installed in /etc not /usr/etc
30 sed -i "s:\$4/etc:\${D}/etc:g" install.sh
31
32 # the destination directory should be /usr not /usr/local
33 cd ${S}/src
34 sed -i "s:usr/local:${D}/usr:g" Makefile
35
36 emake || die "make failed"
37 }
38
39 src_install() {
40 cd ${S}/src
41 einstall
42
43 # remove //var/tmp/portage/jail-1.9/image//usr from files
44 FILES="
45 ${D}/usr/bin/mkjailenv
46 ${D}/usr/bin/addjailsw
47 ${D}/usr/bin/addjailuser
48 ${D}/etc/jail.conf
49 ${D}/usr/lib/libjail.pm
50 ${D}/usr/lib/arch/generic/definitions
51 ${D}/usr/lib/arch/generic/functions
52 ${D}/usr/lib/arch/linux/definitions
53 ${D}/usr/lib/arch/linux/functions
54 ${D}/usr/lib/arch/freebsd/definitions
55 ${D}/usr/lib/arch/freebsd/functions
56 ${D}/usr/lib/arch/irix/definitions
57 ${D}/usr/lib/arch/irix/functions
58 ${D}/usr/lib/arch/solaris/definitions
59 ${D}/usr/lib/arch/solaris/functions"
60
61 for f in ${FILES}; do
62 # documentation says funtion 'dosed' is supposed to do this, but didn't know how to make it work :'(
63 # dosed ${file} || die "error in dosed"
64 sed -i "s:/${D}/usr:/usr:g" ${f}
65 done
66
67 cd ${D}/usr/lib
68 sed -i "s:/usr/etc:/etc:" libjail.pm
69
70 cd ${S}/doc
71 dodoc CHANGELOG INSTALL README SECURITY VERSION
72 }

  ViewVC Help
Powered by ViewVC 1.1.20