diff options
author | Nick Hadaway <raker@gentoo.org> | 2003-01-28 10:14:19 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2003-01-28 10:14:19 +0000 |
commit | c2d01e0d5b2a24a6cf489e2c52c407ece23335d5 (patch) | |
tree | d4e72e2be83269881875b4f235be588fe498cbcb /app-misc | |
parent | masked app-crypt/heimdal (diff) | |
download | historical-c2d01e0d5b2a24a6cf489e2c52c407ece23335d5.tar.gz historical-c2d01e0d5b2a24a6cf489e2c52c407ece23335d5.tar.bz2 historical-c2d01e0d5b2a24a6cf489e2c52c407ece23335d5.zip |
Now libjail.pm points to /etc, not /usr/etc for the conf file
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/jail/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/jail/files/digest-jail-1.9-r1 | 1 | ||||
-rw-r--r-- | app-misc/jail/jail-1.9-r1.ebuild | 74 |
3 files changed, 83 insertions, 1 deletions
diff --git a/app-misc/jail/ChangeLog b/app-misc/jail/ChangeLog index a14aba3dc8f8..d684229962e6 100644 --- a/app-misc/jail/ChangeLog +++ b/app-misc/jail/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-misc/jail # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/ChangeLog,v 1.6 2002/12/23 08:50:54 raker Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/ChangeLog,v 1.7 2003/01/28 10:14:19 raker Exp $ + +*jail-1.9-r1 (28 Jan 2003) + + 28 Jan 2003; Nick Hadaway <raker@gentoo.org> jail-1.9-r1.ebuild, + files/digest-jail-1.9-r1 : + Changed to epatch. Fixed libjail.pm so the config file is found in + /etc instead of /usr/etc 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords diff --git a/app-misc/jail/files/digest-jail-1.9-r1 b/app-misc/jail/files/digest-jail-1.9-r1 new file mode 100644 index 000000000000..46db79f06e61 --- /dev/null +++ b/app-misc/jail/files/digest-jail-1.9-r1 @@ -0,0 +1 @@ +MD5 d9c4ae58e658e8b13809399c69726154 jail_1.9.tar.gz 32994 diff --git a/app-misc/jail/jail-1.9-r1.ebuild b/app-misc/jail/jail-1.9-r1.ebuild new file mode 100644 index 000000000000..af732c3b0168 --- /dev/null +++ b/app-misc/jail/jail-1.9-r1.ebuild @@ -0,0 +1,74 @@ +# 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-r1.ebuild,v 1.1 2003/01/28 10:14:19 raker 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 " +DEPEND="virtual/glibc" +RDEPEND="sys-devel/perl + dev-util/strace" + +inherit eutils + +src_unpack() { + unpack ${PN}_${PV}.tar.gz + cd ${S} + epatch ${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 ${D}/usr/lib + cp libjail.pm libjail.pm.orig + sed "s:/usr/etc:/etc:" < libjail.pm.orig > libjail.pm + rm libjail.pm.orig + + cd ${S}/doc + dodoc CHANGELOG INSTALL README SECURITY VERSION +} |