diff options
author | Nick Hadaway <raker@gentoo.org> | 2002-07-27 01:48:33 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2002-07-27 01:48:33 +0000 |
commit | 5a39a66da21cd698884ca2cc3727e579cc111332 (patch) | |
tree | b223d686007ec9877340afb04457327b97019444 /app-misc/jail | |
parent | Added initial ebuild. Thanks to Cal Evans for the package suggestion. (diff) | |
download | historical-5a39a66da21cd698884ca2cc3727e579cc111332.tar.gz historical-5a39a66da21cd698884ca2cc3727e579cc111332.tar.bz2 historical-5a39a66da21cd698884ca2cc3727e579cc111332.zip |
Initial ebuild in portage. Thanks to Pau Oliva for doing the initial ebuild legwork. Made some very minor adjustments in ebuild for FHS compliance.
Diffstat (limited to 'app-misc/jail')
-rw-r--r-- | app-misc/jail/ChangeLog | 11 | ||||
-rw-r--r-- | app-misc/jail/files/digest-jail-1.9 | 1 | ||||
-rw-r--r-- | app-misc/jail/files/jail-gentoo.diff | 132 | ||||
-rw-r--r-- | app-misc/jail/jail-1.9.ebuild | 74 |
4 files changed, 218 insertions, 0 deletions
diff --git a/app-misc/jail/ChangeLog b/app-misc/jail/ChangeLog new file mode 100644 index 000000000000..20f7da13972b --- /dev/null +++ b/app-misc/jail/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for <CATEGORY>/<PACKAGE_NAME> +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/ChangeLog,v 1.1 2002/07/27 01:48:33 raker Exp $ + +*jail-1.9 (26 Jul 2002) + + 26 Jul 2002; Nick Hadaway <raker@gentoo.org> + jail-1.9.ebuild, files/digest-jail-1.9, files/jail-gentoo.diff : + + Initial ebuild in portage. Thanks to Pau Oliva for doing the initial ebuild + legwork. Made some very minor adjustments in ebuild for FHS compliance. diff --git a/app-misc/jail/files/digest-jail-1.9 b/app-misc/jail/files/digest-jail-1.9 new file mode 100644 index 000000000000..46db79f06e61 --- /dev/null +++ b/app-misc/jail/files/digest-jail-1.9 @@ -0,0 +1 @@ +MD5 d9c4ae58e658e8b13809399c69726154 jail_1.9.tar.gz 32994 diff --git a/app-misc/jail/files/jail-gentoo.diff b/app-misc/jail/files/jail-gentoo.diff new file mode 100644 index 000000000000..0c12ce9a12ba --- /dev/null +++ b/app-misc/jail/files/jail-gentoo.diff @@ -0,0 +1,132 @@ +diff -urN install.sh install.sh +--- install.sh Fri Oct 26 11:37:07 2001 ++++ install.sh Sat Jul 20 04:43:09 2002 +@@ -23,7 +23,7 @@ + # + ############################################################################## + +-TMPFILE=/tmp/jail.tmp ++TMPFILE=jail.tmp + + # ---------------------------------------------------------------------------- + +@@ -63,16 +63,16 @@ + + gen_jail_conf() { + +-cp etc/jail.conf /tmp/jail.conf.tmp ++cp etc/jail.conf jail.conf.tmp + +-parse_tag /tmp/jail.conf.tmp __VERSION__ $1 +-parse_tag /tmp/jail.conf.tmp __ARCH__ $2 +-parse_tag /tmp/jail.conf.tmp __DEBUG__ $3 +-parse_tag /tmp/jail.conf.tmp __INSTALLDIR__ $4 +- +-mv /tmp/jail.conf.tmp /tmp/jail.conf +-install_file /tmp/jail.conf $4/etc $5 $6 $7 +-rm /tmp/jail.conf ++parse_tag jail.conf.tmp __VERSION__ $1 ++parse_tag jail.conf.tmp __ARCH__ $2 ++parse_tag jail.conf.tmp __DEBUG__ $3 ++parse_tag jail.conf.tmp __INSTALLDIR__ $4 ++ ++mv jail.conf.tmp jail.conf ++install_file jail.conf $4/etc $5 $6 $7 ++rm jail.conf + + } + +@@ -80,13 +80,13 @@ + + gen_libjail() { + +-cp lib/libjail.pm /tmp/libjail.pm.tmp ++cp lib/libjail.pm libjail.pm.tmp + +-parse_tag /tmp/libjail.pm.tmp __INSTALLDIR__ $1 ++parse_tag libjail.pm.tmp __INSTALLDIR__ $1 + +-mv /tmp/libjail.pm.tmp /tmp/libjail.pm +-install_file /tmp/libjail.pm $1/lib $2 $3 $4 +-rm /tmp/libjail.pm ++mv libjail.pm.tmp libjail.pm ++install_file libjail.pm $1/lib $2 $3 $4 ++rm libjail.pm + + } + +@@ -94,14 +94,14 @@ + + gen_mkenv() { + +-cp bin/mkjailenv /tmp/mkjailenv.tmp ++cp bin/mkjailenv mkjailenv.tmp + +-parse_tag /tmp/mkjailenv.tmp __INSTALLDIR__ $1 +-parse_tag /tmp/mkjailenv.tmp __PERL__ $2 ++parse_tag mkjailenv.tmp __INSTALLDIR__ $1 ++parse_tag mkjailenv.tmp __PERL__ $2 + +-mv /tmp/mkjailenv.tmp /tmp/mkjailenv +-install_file /tmp/mkjailenv $1/bin $3 $4 $5 +-rm /tmp/mkjailenv ++mv mkjailenv.tmp mkjailenv ++install_file mkjailenv $1/bin $3 $4 $5 ++rm mkjailenv + + } + +@@ -109,14 +109,14 @@ + + gen_addjailsw() { + +-cp bin/addjailsw /tmp/addjailsw.tmp ++cp bin/addjailsw addjailsw.tmp + +-parse_tag /tmp/addjailsw.tmp __INSTALLDIR__ $1 +-parse_tag /tmp/addjailsw.tmp __PERL__ $2 ++parse_tag addjailsw.tmp __INSTALLDIR__ $1 ++parse_tag addjailsw.tmp __PERL__ $2 + +-mv /tmp/addjailsw.tmp /tmp/addjailsw +-install_file /tmp/addjailsw $1/bin $3 $4 $5 +-rm /tmp/addjailsw ++mv addjailsw.tmp addjailsw ++install_file addjailsw $1/bin $3 $4 $5 ++rm addjailsw + + } + +@@ -125,14 +125,14 @@ + + gen_addjailuser() { + +-cp bin/addjailuser /tmp/addjailuser.tmp ++cp bin/addjailuser addjailuser.tmp + +-parse_tag /tmp/addjailuser.tmp __INSTALLDIR__ $1 +-parse_tag /tmp/addjailuser.tmp __PERL__ $2 ++parse_tag addjailuser.tmp __INSTALLDIR__ $1 ++parse_tag addjailuser.tmp __PERL__ $2 + +-mv /tmp/addjailuser.tmp /tmp/addjailuser +-install_file /tmp/addjailuser $1/bin $3 $4 $5 +-rm /tmp/addjailuser ++mv addjailuser.tmp addjailuser ++install_file addjailuser $1/bin $3 $4 $5 ++rm addjailuser + + } + +diff -urN src/preinstall.sh src/preinstall.sh +--- src/preinstall.sh Fri Oct 26 11:36:09 2001 ++++ src/preinstall.sh Sat Jul 20 04:44:11 2002 +@@ -23,7 +23,7 @@ + # + ############################################################################## + +-TMPFILE=/tmp/jail.tmp ++TMPFILE=jail.tmp + + + # ---------------------------------------------------------------------------- diff --git a/app-misc/jail/jail-1.9.ebuild b/app-misc/jail/jail-1.9.ebuild new file mode 100644 index 000000000000..9752b5ca7b84 --- /dev/null +++ b/app-misc/jail/jail-1.9.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Pau Oliva <pau@eSlack.org> +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/jail-1.9.ebuild,v 1.1 2002/07/27 01:48:33 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 -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 + cd ${S} + 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 || die "make install failed" + + # remove //var/tmp/portage/jail-1.9/image//usr from files + FILES=" + /var/tmp/portage/jail-1.9/image/usr/bin/mkjailenv + /var/tmp/portage/jail-1.9/image/usr/bin/addjailsw + /var/tmp/portage/jail-1.9/image/usr/bin/addjailuser + /var/tmp/portage/jail-1.9/image/etc/jail.conf + /var/tmp/portage/jail-1.9/image/usr/lib/libjail.pm + /var/tmp/portage/jail-1.9/image/usr/lib/arch/generic/definitions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/generic/functions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/linux/definitions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/linux/functions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/freebsd/definitions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/freebsd/functions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/irix/definitions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/irix/functions + /var/tmp/portage/jail-1.9/image/usr/lib/arch/solaris/definitions + /var/tmp/portage/jail-1.9/image/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://var/tmp/portage/jail-1.9/image//usr:/usr:g" < ${f}.orig > ${f} + rm ${f}.orig + done + + cd ${S}/doc + dodoc CHANGELOG INSTALL README SECURITY VERSION + +} |