diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-17 05:36:42 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-17 05:36:42 +0000 |
commit | 4b1578f753cc34bf97b9a188758934bdfff998f3 (patch) | |
tree | eeda0fce013e8468fc9f15fb904dc1a70ee1b85b /app-misc/jail | |
parent | Respect upstream CFLAGS too. (diff) | |
download | historical-4b1578f753cc34bf97b9a188758934bdfff998f3.tar.gz historical-4b1578f753cc34bf97b9a188758934bdfff998f3.tar.bz2 historical-4b1578f753cc34bf97b9a188758934bdfff998f3.zip |
Clean up patches (including their names). Respect LDFLAGS (bug #335679).
Package-Manager: portage-2.2_rc82/cvs/Linux i686
Diffstat (limited to 'app-misc/jail')
-rw-r--r-- | app-misc/jail/ChangeLog | 13 | ||||
-rw-r--r-- | app-misc/jail/Manifest | 12 | ||||
-rw-r--r-- | app-misc/jail/files/jail-1.9-gentoo.patch (renamed from app-misc/jail/files/jail-gentoo.diff) | 10 | ||||
-rw-r--r-- | app-misc/jail/files/jail-1.9-ldflags.patch | 11 | ||||
-rw-r--r-- | app-misc/jail/files/jail-1.9-multiuser-rsa.patch (renamed from app-misc/jail/files/multiuser-rsa.patch) | 4 | ||||
-rw-r--r-- | app-misc/jail/files/jail-1.9-wrongshell.patch | 11 | ||||
-rw-r--r-- | app-misc/jail/files/wrongshell.patch | 12 | ||||
-rw-r--r-- | app-misc/jail/jail-1.9-r2.ebuild | 9 | ||||
-rw-r--r-- | app-misc/jail/jail-1.9-r3.ebuild | 77 |
9 files changed, 127 insertions, 32 deletions
diff --git a/app-misc/jail/ChangeLog b/app-misc/jail/ChangeLog index 536fc131c3c3..16ba8cdc7443 100644 --- a/app-misc/jail/ChangeLog +++ b/app-misc/jail/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-misc/jail -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/ChangeLog,v 1.25 2009/09/23 16:03:58 patrick Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/ChangeLog,v 1.26 2010/09/17 05:36:42 jer Exp $ + +*jail-1.9-r3 (17 Sep 2010) + + 17 Sep 2010; Jeroen Roovers <jer@gentoo.org> jail-1.9-r2.ebuild, + +jail-1.9-r3.ebuild, +files/jail-1.9-gentoo.patch, + +files/jail-1.9-ldflags.patch, +files/jail-1.9-multiuser-rsa.patch, + +files/jail-1.9-wrongshell.patch, -files/jail-gentoo.diff, + -files/multiuser-rsa.patch, -files/wrongshell.patch: + Clean up patches (including their names). Respect LDFLAGS (bug #335679). 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> jail-1.9-r2.ebuild: Remove virtual/libc diff --git a/app-misc/jail/Manifest b/app-misc/jail/Manifest index a1ed870eb152..b031d44a88f7 100644 --- a/app-misc/jail/Manifest +++ b/app-misc/jail/Manifest @@ -1,7 +1,9 @@ -AUX jail-gentoo.diff 3256 RMD160 bb293364192ebfe74548d824d5bfa67a4d7454a8 SHA1 123fe7fbbdba6b088d931af9ad02b85493f8c9f5 SHA256 dcb78c808f022ba30a0e5bf7a41d7eb5760c79919539f266cbd1e5299516f8a5 -AUX multiuser-rsa.patch 844 RMD160 287d4a4808270f31423eadce88f39fb7a83a1603 SHA1 94467df2aa60325e2ee99ecc6c2d3291baa78526 SHA256 5256b38527ef46e87603f3ead6c99b3ffb4083f1cfc6905b47bf110be2803def -AUX wrongshell.patch 472 RMD160 7df4768ecd43942854c425b30eb75b525bba87b4 SHA1 bac6414befbf34f609491e8f2195ad40d1ea3695 SHA256 87aa9328738d2ea71867d076d7356252b7ed70694d1d47b48c16857864a4d281 +AUX jail-1.9-gentoo.patch 3186 RMD160 fc1474469012656830905a13c18a507c97179430 SHA1 b70281b33d3a095116cf60874cf96b3024a9fb64 SHA256 bf3c42da26870dca1295f1fc5ca1d49eb1073137d7518f88d54b427fdb30ca61 +AUX jail-1.9-ldflags.patch 328 RMD160 61541519c9c6023194ccfa581a59e326624f4164 SHA1 26630da7670267ac7590021d92918cc2ff9509d9 SHA256 26034a6e25281483ac3add1deb42c49bcfcde00693f958aaf0eda542ba98bd37 +AUX jail-1.9-multiuser-rsa.patch 856 RMD160 a1d876261fc2ebbd1d9c666a3f3d97d8ddb1e82b SHA1 327bdfaf310510f7318c68b4a7100affa41bcd4c SHA256 e67e3f140f82ba3bdbeb0d650c918d97a7ddedee6c56a620c4273d8a6009b428 +AUX jail-1.9-wrongshell.patch 330 RMD160 be9d95c6956cb665f94fb4d298f2e7cf14e38262 SHA1 ec0f0c14bfe2c4bb8c7c68a92229e068e45582ff SHA256 d9de983e7c31e09927a87ac56c028ffb4f2f9692825aba765a157a63908eb07f DIST jail_1.9.tar.gz 32994 RMD160 12a43f7c0aa533ff0ffa91a1b97bf7b59c89cb78 SHA1 c233f81281c00b681d79ab7150e099fe358447ea SHA256 1d997739b2dfe84ff975673b1357d3814cd3c2ee0cf3d61031f6f95a3e2080e3 -EBUILD jail-1.9-r2.ebuild 2308 RMD160 034f6763bf740470854eb97228795ba461953670 SHA1 27d515d4f3053efae8be6e407415f2f736b09e85 SHA256 e35d900387780f5cf78b3ae2c65512d13c0ca9273fad1a5ea79243bc25272b7f -MISC ChangeLog 2696 RMD160 051230a53d7b0ab8948cdd2b566603feef8c45bf SHA1 668c982735f33e30888351818af41e87cfc27d06 SHA256 d3c270474000e1e7209f4b643a2361ca8eb12d8701aca36c19b87e34def53975 +EBUILD jail-1.9-r2.ebuild 2304 RMD160 32e8c90e879b1d4e9bd0542ce9caf64bf6535c7b SHA1 ae9fe5abab47ce8460167d6610eae1ca6f90ea50 SHA256 e395e2cd6300ecaa6d0752bb3e50abde24ea5513952a502ff8d83f3189738786 +EBUILD jail-1.9-r3.ebuild 2220 RMD160 517d7e0328259731617b9888565f460568ef24a4 SHA1 57d73a9dae6956bc4737830c8e6db4a7f1898dd5 SHA256 6bf2a4b7c6d06f237d8015a8d3507ecbd09dd46d66872b4b61735bbcf1ac2e71 +MISC ChangeLog 3102 RMD160 b78a6770681ec41425a56609a2dcf3a67fdc95c9 SHA1 7bb86351d87a1889b69fbd930c29771d65a521f8 SHA256 8073a9a3c79a6c86bfe5d9049af86cc64b17b52ccfb1e1a5a7ea387534d5bce4 MISC metadata.xml 754 RMD160 d86f1e1511a4c0a7010364f2060035411e945772 SHA1 e3e30d1fd5a91acc1e47d3b115e0e49cb78f40c9 SHA256 4b2814747d477afa48f0e0a2356bf4a3d6055f5d751db532c3255aea9bb4ddf3 diff --git a/app-misc/jail/files/jail-gentoo.diff b/app-misc/jail/files/jail-1.9-gentoo.patch index 0c12ce9a12ba..74d48561004c 100644 --- a/app-misc/jail/files/jail-gentoo.diff +++ b/app-misc/jail/files/jail-1.9-gentoo.patch @@ -1,6 +1,5 @@ -diff -urN install.sh install.sh ---- install.sh Fri Oct 26 11:37:07 2001 -+++ install.sh Sat Jul 20 04:43:09 2002 +--- a/install.sh Fri Oct 26 11:37:07 2001 ++++ b/install.sh Sat Jul 20 04:43:09 2002 @@ -23,7 +23,7 @@ # ############################################################################## @@ -118,9 +117,8 @@ diff -urN install.sh install.sh } -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 +--- a/src/preinstall.sh Fri Oct 26 11:36:09 2001 ++++ b/src/preinstall.sh Sat Jul 20 04:44:11 2002 @@ -23,7 +23,7 @@ # ############################################################################## diff --git a/app-misc/jail/files/jail-1.9-ldflags.patch b/app-misc/jail/files/jail-1.9-ldflags.patch new file mode 100644 index 000000000000..6b9e5731bb27 --- /dev/null +++ b/app-misc/jail/files/jail-1.9-ldflags.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile 2001-10-29 18:40:48.000000000 +0100 ++++ b/src/Makefile 2010-09-17 07:28:09.000000000 +0200 +@@ -60,7 +60,7 @@ + all: jail + + jail: jail.c $(OBJ) +- $(CC) $(CFLAGS) $(INCLUDE) jail.c -o jail $(OBJ) $(LIBS) && \ ++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDE) jail.c -o jail $(OBJ) $(LIBS) && \ + cp jail ../bin + + clean: diff --git a/app-misc/jail/files/multiuser-rsa.patch b/app-misc/jail/files/jail-1.9-multiuser-rsa.patch index e7c94e274ba3..e0aad4f65c72 100644 --- a/app-misc/jail/files/multiuser-rsa.patch +++ b/app-misc/jail/files/jail-1.9-multiuser-rsa.patch @@ -1,5 +1,5 @@ ---- jail.c 2004-09-19 23:48:14.000000000 -0500 -+++ jail.c 2004-09-20 00:07:48.000000000 -0500 +--- a/src/jail.c 2004-09-19 23:48:14.000000000 -0500 ++++ b/src/jail.c 2004-09-20 00:07:48.000000000 -0500 @@ -115,6 +115,20 @@ #include "helpers.h" #include "types.h" diff --git a/app-misc/jail/files/jail-1.9-wrongshell.patch b/app-misc/jail/files/jail-1.9-wrongshell.patch new file mode 100644 index 000000000000..1924337d06e4 --- /dev/null +++ b/app-misc/jail/files/jail-1.9-wrongshell.patch @@ -0,0 +1,11 @@ +--- a/lib/arch/generic/functions 2001-10-26 04:36:09.000000000 -0500 ++++ b/lib/arch/generic/functions 2003-07-30 18:23:57.000000000 -0500 +@@ -831,7 +831,7 @@ + + if (!$found || !-e $SHELLS_FILE) { + open(F,">>".$SHELLS_FILE); +- print F "$INSTALL_DIR/jail\n"; ++ print F "$INSTALL_DIR/bin/jail\n"; + close(F); + } + } diff --git a/app-misc/jail/files/wrongshell.patch b/app-misc/jail/files/wrongshell.patch deleted file mode 100644 index a08a4241ce4d..000000000000 --- a/app-misc/jail/files/wrongshell.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urN jail_1-9_stable/lib/arch/generic/functions jail_1-9_stable-modified/lib/arch/generic/functions ---- jail_1-9_stable/lib/arch/generic/functions 2001-10-26 04:36:09.000000000 -0500 -+++ jail_1-9_stable-modified/lib/arch/generic/functions 2003-07-30 18:23:57.000000000 -0500 -@@ -831,7 +831,7 @@ - - if (!$found || !-e $SHELLS_FILE) { - open(F,">>".$SHELLS_FILE); -- print F "$INSTALL_DIR/jail\n"; -+ print F "$INSTALL_DIR/bin/jail\n"; - close(F); - } - } diff --git a/app-misc/jail/jail-1.9-r2.ebuild b/app-misc/jail/jail-1.9-r2.ebuild index 794628609a80..01d13d8c9ebb 100644 --- a/app-misc/jail/jail-1.9-r2.ebuild +++ b/app-misc/jail/jail-1.9-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/jail-1.9-r2.ebuild,v 1.13 2010/01/01 19:05:54 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/jail-1.9-r2.ebuild,v 1.14 2010/09/17 05:36:42 jer Exp $ inherit eutils flag-o-matic @@ -21,10 +21,9 @@ RDEPEND="dev-lang/perl src_unpack() { unpack ${PN}_${PV}.tar.gz cd "${S}" - epatch "${FILESDIR}"/${PN}-gentoo.diff || die "failed to apply patch" - epatch "${FILESDIR}"/wrongshell.patch || die "failed to apply patch" - cd src - epatch "${FILESDIR}"/multiuser-rsa.patch || die "failed to apply patch" + epatch "${FILESDIR}"/${P}-gentoo.patch || die "failed to apply patch" + epatch "${FILESDIR}"/${P}-wrongshell.patch || die "failed to apply patch" + epatch "${FILESDIR}"/${P}-multiuser-rsa.patch || die "failed to apply patch" } src_compile() { diff --git a/app-misc/jail/jail-1.9-r3.ebuild b/app-misc/jail/jail-1.9-r3.ebuild new file mode 100644 index 000000000000..82ca77dc9ab6 --- /dev/null +++ b/app-misc/jail/jail-1.9-r3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/jail/jail-1.9-r3.ebuild,v 1.1 2010/09/17 05:36:42 jer Exp $ + +EAPI="2" + +inherit eutils flag-o-matic + +S="${WORKDIR}/${PN}_1-9_stable" +DESCRIPTION="a tool that builds a chroot and configures all the required files, directories and libraries" +HOMEPAGE="http://www.jmcresearch.com/projects/jail/" +SRC_URI="mirror://sourceforge/jail/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="dev-lang/perl + dev-util/strace" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-wrongshell.patch \ + "${FILESDIR}"/${P}-multiuser-rsa.patch \ + "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + # configuration files should be installed in /etc not /usr/etc + sed -i "s:\$4/etc:\${D}/etc:g" install.sh + + # the destination directory should be /usr not /usr/local + cd "${S}"/src + sed -i -e "s:usr/local:${D}/usr:g" \ + -e "s:^COPT =.*:COPT = -Wl,-z,no:g" Makefile + + # Below didn't work. Don't know why + #append-ldflags -Wl,-z,now + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake 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" + sed -i "s:/${D}/usr:/usr:g" ${f} + done + + cd "${D}"/usr/lib + sed -i "s:/usr/etc:/etc:" libjail.pm + + cd "${S}"/doc + dodoc CHANGELOG INSTALL README SECURITY VERSION +} |