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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat Apr 17 06:17:50 2004 UTC (16 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
clean older version

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-misc/jail/jail-1.9.ebuild,v 1.12 2004/03/14 10:59:03 mr_bones_ Exp $
4
5 S="${WORKDIR}/${PN}_1-9_stable"
6 DESCRIPTION="Jail Chroot Project is a tool that builds a chrooted environment and automagically configures and builds all the required files, directories and libraries"
7 SRC_URI="http://www.gsyc.inf.uc3m.es/~assman/downloads/jail/${PN}_${PV}.tar.gz"
8 HOMEPAGE="http://www.gsyc.inf.uc3m.es/~assman/jail/"
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 -ppc -sparc"
13
14 DEPEND="virtual/glibc"
15 RDEPEND="dev-lang/perl
16 dev-util/strace"
17
18 src_unpack() {
19 unpack ${PN}_${PV}.tar.gz
20 cd ${S}
21 patch -p0 < ${FILESDIR}/${PN}-gentoo.diff
22 }
23
24 src_compile() {
25 # configuration files should be installed in /etc not /usr/etc
26 cp install.sh install.sh.orig
27 sed "s:\$4/etc:\${D}/etc:g" < install.sh.orig > install.sh
28
29 # the destination directory should be /usr not /usr/local
30 cd ${S}/src
31 cp Makefile Makefile.orig
32 sed "s:usr/local:${D}/usr:g" < Makefile.orig > Makefile
33
34 emake || die "make failed"
35 }
36
37 src_install() {
38 cd ${S}/src
39 einstall
40
41 # remove //var/tmp/portage/jail-1.9/image//usr from files
42 FILES="
43 ${D}/usr/bin/mkjailenv
44 ${D}/usr/bin/addjailsw
45 ${D}/usr/bin/addjailuser
46 ${D}/etc/jail.conf
47 ${D}/usr/lib/libjail.pm
48 ${D}/usr/lib/arch/generic/definitions
49 ${D}/usr/lib/arch/generic/functions
50 ${D}/usr/lib/arch/linux/definitions
51 ${D}/usr/lib/arch/linux/functions
52 ${D}/usr/lib/arch/freebsd/definitions
53 ${D}/usr/lib/arch/freebsd/functions
54 ${D}/usr/lib/arch/irix/definitions
55 ${D}/usr/lib/arch/irix/functions
56 ${D}/usr/lib/arch/solaris/definitions
57 ${D}/usr/lib/arch/solaris/functions"
58
59 for f in ${FILES}; do
60 # documentation says funtion 'dosed' is supposed to do this, but didn't know how to make it work :'(
61 # dosed ${file} || die "error in dosed"
62 cp ${f} ${f}.orig
63 sed "s:/${D}/usr:/usr:g" < ${f}.orig > ${f}
64 rm ${f}.orig
65 done
66
67 cd ${S}/doc
68 dodoc CHANGELOG INSTALL README SECURITY VERSION
69 }

  ViewVC Help
Powered by ViewVC 1.1.20