diff options
author | Christian Heim <phreak@gentoo.org> | 2007-05-16 09:50:50 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-05-16 09:50:50 +0000 |
commit | 6bc27bcc3b198ab5a7a14a9358d51a0b6727f9e6 (patch) | |
tree | 2e90e9bbaaac92f0b7618fd54d7a8e2d0739504a /sys-cluster/util-vserver/util-vserver-0.30.213.ebuild | |
parent | Install FLTKConfig.cmake and FLTKUse.cmake for bug 175006. (diff) | |
download | gentoo-2-6bc27bcc3b198ab5a7a14a9358d51a0b6727f9e6.tar.gz gentoo-2-6bc27bcc3b198ab5a7a14a9358d51a0b6727f9e6.tar.bz2 gentoo-2-6bc27bcc3b198ab5a7a14a9358d51a0b6727f9e6.zip |
Add a fix for baselayout-2 support within vservers, we explicitly need to export TERM=linux in init-vserver.sh to get color with baselayout-2.
(Portage version: 2.1.2.7)
Diffstat (limited to 'sys-cluster/util-vserver/util-vserver-0.30.213.ebuild')
-rw-r--r-- | sys-cluster/util-vserver/util-vserver-0.30.213.ebuild | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild index 9fadc6e5337c..8a3764b3d602 100644 --- a/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild +++ b/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild,v 1.1 2007/05/03 20:23:12 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.30.213.ebuild,v 1.2 2007/05/16 09:50:50 phreak Exp $ WANT_AUTOMAKE="1.9" @@ -41,6 +41,13 @@ pkg_setup() { einfo } +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-init-vserver.sh.patch +} + src_compile() { econf --with-vrootdir=${VDIRBASE} \ --with-initscripts=gentoo \ @@ -71,6 +78,12 @@ src_install() { } pkg_postinst() { + # Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also + # present when merging. + mkdir "${VDIRBASE}" + rm /etc/vservers/.defaults/vdirbase + ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase + elog elog "You have to run the vprocunhide command after every reboot" elog "in order to setup /proc permissions correctly for vserver" |