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