summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-08-26 15:48:21 +0000
committerChristian Heim <phreak@gentoo.org>2006-08-26 15:48:21 +0000
commit123179299816257d175e702bd4621c32e42fe0b6 (patch)
treedcbec0f08a683734cffc6131558382689242b3d3
parentadd rc31 (diff)
downloadoverlay-123179299816257d175e702bd4621c32e42fe0b6.tar.gz
overlay-123179299816257d175e702bd4621c32e42fe0b6.tar.bz2
overlay-123179299816257d175e702bd4621c32e42fe0b6.zip
Adding util-vserver to the overlay for testing purposes
svn path=/; revision=27
-rw-r--r--sys-cluster/util-vserver/Manifest9
-rw-r--r--sys-cluster/util-vserver/files/digest-util-vserver-0.30.210-r186
-rw-r--r--sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild124
3 files changed, 139 insertions, 0 deletions
diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest
new file mode 100644
index 0000000..2498db4
--- /dev/null
+++ b/sys-cluster/util-vserver/Manifest
@@ -0,0 +1,9 @@
+DIST util-vserver-0.30.210-patches-r18.tar.bz2 32637 RMD160 c9103c15b02a6dd5b6bad87b26e98bfba425303b SHA1 b810e2114601ca443cc573a322387a0a4da359f7 SHA256 c220c2708de852198007ed55c87b39622253d25a78fea1965847644073a67eff
+DIST util-vserver-0.30.210.tar.bz2 600032 RMD160 b8f426e319feeafc9be91315947c10a147586f1f SHA1 1075dc239277c7ecc76a644e7bbfeee869864595 SHA256 6ae5be2557f4659d260c68d239a8e879b0625201688807fd9baa4bdcc4580d04
+EBUILD util-vserver-0.30.210-r18.ebuild 3464 RMD160 ed1d9d0340507d298dbd8e212d549f314c340c46 SHA1 6ee7cee775589b12441ada095e1d66243ebb484d SHA256 c528a4705c6be2744261378020276d851109a7b0b34051e6b1fd2c4221f31910
+MD5 115a7c7959441bfea07fb120037ce428 util-vserver-0.30.210-r18.ebuild 3464
+RMD160 ed1d9d0340507d298dbd8e212d549f314c340c46 util-vserver-0.30.210-r18.ebuild 3464
+SHA256 c528a4705c6be2744261378020276d851109a7b0b34051e6b1fd2c4221f31910 util-vserver-0.30.210-r18.ebuild 3464
+MD5 4089be992aa9b0847e3209e08e884b6b files/digest-util-vserver-0.30.210-r18 569
+RMD160 7b0ae2fa7fbba64d261ba9e008c9640d8c797518 files/digest-util-vserver-0.30.210-r18 569
+SHA256 45fd8ff2077e6ae9d37183ca6ea0b4de149a38c6f1139d2d4712db272729d69c files/digest-util-vserver-0.30.210-r18 569
diff --git a/sys-cluster/util-vserver/files/digest-util-vserver-0.30.210-r18 b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.210-r18
new file mode 100644
index 0000000..2468445
--- /dev/null
+++ b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.210-r18
@@ -0,0 +1,6 @@
+MD5 c299ac995624027e27d493334e410870 util-vserver-0.30.210-patches-r18.tar.bz2 32637
+RMD160 c9103c15b02a6dd5b6bad87b26e98bfba425303b util-vserver-0.30.210-patches-r18.tar.bz2 32637
+SHA256 c220c2708de852198007ed55c87b39622253d25a78fea1965847644073a67eff util-vserver-0.30.210-patches-r18.tar.bz2 32637
+MD5 1e8fff7cb6246d21ed029f082123019b util-vserver-0.30.210.tar.bz2 600032
+RMD160 b8f426e319feeafc9be91315947c10a147586f1f util-vserver-0.30.210.tar.bz2 600032
+SHA256 6ae5be2557f4659d260c68d239a8e879b0625201688807fd9baa4bdcc4580d04 util-vserver-0.30.210.tar.bz2 600032
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild
new file mode 100644
index 0000000..23740ae
--- /dev/null
+++ b/sys-cluster/util-vserver/util-vserver-0.30.210-r18.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2006 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.210-r17.ebuild,v 1.1 2006/07/24 08:20:57 hollow Exp $
+
+inherit autotools eutils toolchain-funcs bash-completion
+
+DESCRIPTION="Linux-VServer admin utilities"
+HOMEPAGE="http://www.nongnu.org/util-vserver/"
+SRC_URI="http://www.13thfloor.at/~ensc/util-vserver/files/alpha/${P}.tar.bz2
+ http://dev.gentoo.org/~hollow/distfiles/${P}-patches-${PR}.tar.bz2
+ http://dev.gentoo.org/~phreak/distfiles/${P}-patches-${PR}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+IUSE="legacy"
+
+DEPEND=">=dev-libs/dietlibc-0.28
+ dev-libs/beecrypt
+ net-firewall/iptables
+ net-misc/vconfig
+ sys-apps/iproute2
+ sys-process/procps"
+
+RDEPEND="sys-apps/iproute2
+ net-misc/vconfig
+ net-firewall/iptables
+ dev-libs/beecrypt
+ sys-process/procps"
+
+pkg_setup() {
+ if ! use legacy ; then
+ einfo
+ einfo "From now on, we'll disable legacy support by default!"
+ einfo "If you still need it, remerge this package with"
+ einfo "USE=legacy. This feature may disappear in the future!"
+ epause 5
+ fi
+
+ if [[ -z "${VDIRBASE}" ]]; then
+ einfo
+ einfo "You can change the default vserver base directory (/vservers)"
+ einfo "by setting the VDIRBASE environment variable."
+ fi
+
+ : ${VDIRBASE:=/vservers}
+
+ einfo
+ einfo "Using \"${VDIRBASE}\" as vserver base directory"
+ einfo
+}
+
+src_unpack() {
+ unpack ${A} || die
+ cd "${S}" || die
+
+ cp "${WORKDIR}"/tools/* scripts/ || die "failed to copy gentoo tools"
+ epatch "${WORKDIR}"/patches/*.patch
+
+ AT_M4DIR="-I m4" \
+ eautoreconf
+}
+
+src_compile() {
+ local myconf="--localstatedir=/var --with-initrddir=/etc/init.d"
+ # try to work around UPSTREAM's stupid logic (NOLEGACY = legacy enabled)
+ use legacy && myconf="--enable-apis=NOLEGACY"
+
+ econf ${myconf} \
+ --with-vrootdir="${VDIRBASE}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ # keep dirs
+ keepdir /var/run/vservers
+ keepdir /var/run/vservers.rev
+ keepdir /var/run/vshelper
+ keepdir /var/lock/vservers
+ keepdir /var/cache/vservers
+
+ keepdir "${VDIRBASE}"
+ fperms 000 "${VDIRBASE}"
+
+ # remove the non-gentoo init-scripts:
+ rm -f "${D}"/etc/init.d/*
+
+ # and install gentoo'ized ones:
+ doinitd "${WORKDIR}"/init.d/vservers
+ doconfd "${WORKDIR}"/conf.d/vservers
+
+ dodoc README ChangeLog NEWS AUTHORS THANKS util-vserver.spec
+}
+
+pkg_postinst() {
+ einfo
+ einfo "You have to run the vprocunhide command after every reboot"
+ einfo "in order to setup /proc permissions correctly for vserver"
+ einfo "use. An init script has been installed by this package."
+ einfo "To use it you should add it to a runlevel:"
+ einfo
+ einfo " rc-update add vservers default"
+ einfo
+ einfo "This init script will also help you to start/stop your vservers"
+ einfo "on reboot. See ${ROOT}etc/conf.d/vserver for details"
+ ewarn
+ ewarn "You should definitly fix up the barrier of your vserver"
+ ewarn "base directory by using the following command in a root shell:"
+ ewarn
+ ewarn " setattr --barrier ${VDIRBASE}"
+ ewarn
+ ewarn "IMPORTANT UPGRADE WARNING:"
+ ewarn
+ ewarn "Since 0.30.208-r3 the vprocunhide init-script has been merged"
+ ewarn "with the vservers init script. The following steps are"
+ ewarn "required to keep current behaviour:"
+ ewarn
+ ewarn " rc-update del vprocunhide"
+ ewarn " rc-update add vservers default"
+ ewarn
+}