summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-11-02 20:03:44 +0000
committerChristian Heim <phreak@gentoo.org>2006-11-02 20:03:44 +0000
commit95aaaab57dbab9066759086853aaa936745319cb (patch)
treef2891045e31e0fc5fe1593b0f97a197fa6622c05
parentno need for profiles anymore, as baselayout-1.13 is in the main tree. (diff)
downloadoverlay-95aaaab57dbab9066759086853aaa936745319cb.tar.gz
overlay-95aaaab57dbab9066759086853aaa936745319cb.tar.bz2
overlay-95aaaab57dbab9066759086853aaa936745319cb.zip
Updated ebuild, adding a few fixups from UPSTREAM.
svn path=/; revision=80
-rw-r--r--sys-cluster/util-vserver/Manifest9
-rw-r--r--sys-cluster/util-vserver/files/digest-util-vserver-0.30.211-r16
-rw-r--r--sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild123
3 files changed, 138 insertions, 0 deletions
diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest
new file mode 100644
index 0000000..dab1ec3
--- /dev/null
+++ b/sys-cluster/util-vserver/Manifest
@@ -0,0 +1,9 @@
+DIST util-vserver-0.30.211.tar.bz2 638003 RMD160 42856f7131756ffc278719831de9ae190943e532 SHA1 c4b28b10b38ba88d003ea45ab1b784e1b0b31324 SHA256 992a2dd76994813508cc043bbaf7c1f903166d2b7fbcb7bd1320aa285234df59
+DIST util-vserver-patches-0.30.211-r1.tar.bz2 16779 RMD160 4ef73897df3209e4eddac85360c838a532c5f13e SHA1 2ddf70bacd2094efca6faf453ee1d88af0cafac9 SHA256 e9d5b28da16bf93a5fd9a709c0dd8023342310ce8f01e76cb8b7bf703f573401
+EBUILD util-vserver-0.30.211-r1.ebuild 3418 RMD160 88d53face4dd4baeac7974b17d33978fdd0f0c58 SHA1 9e30581cfa6e655990997cd5de5a42828f5509c9 SHA256 61d92007b8f61a3c67a4f40925671751df44a4581d2e1c3f2adaba2e25c63ea0
+MD5 bb3d68c543ce58bd7b0f4f60d14e7e46 util-vserver-0.30.211-r1.ebuild 3418
+RMD160 88d53face4dd4baeac7974b17d33978fdd0f0c58 util-vserver-0.30.211-r1.ebuild 3418
+SHA256 61d92007b8f61a3c67a4f40925671751df44a4581d2e1c3f2adaba2e25c63ea0 util-vserver-0.30.211-r1.ebuild 3418
+MD5 77937bb08a50ba48e642629c7d3b54dd files/digest-util-vserver-0.30.211-r1 566
+RMD160 a59916559f436aa675d588499d439ef1170d7bf6 files/digest-util-vserver-0.30.211-r1 566
+SHA256 410ff4c38c27031cab826fe559e83140a8090cd31343412509173eee38bceb87 files/digest-util-vserver-0.30.211-r1 566
diff --git a/sys-cluster/util-vserver/files/digest-util-vserver-0.30.211-r1 b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.211-r1
new file mode 100644
index 0000000..282db36
--- /dev/null
+++ b/sys-cluster/util-vserver/files/digest-util-vserver-0.30.211-r1
@@ -0,0 +1,6 @@
+MD5 b0e8d503ba1cf5a7014eb41a72ec8fe2 util-vserver-0.30.211.tar.bz2 638003
+RMD160 42856f7131756ffc278719831de9ae190943e532 util-vserver-0.30.211.tar.bz2 638003
+SHA256 992a2dd76994813508cc043bbaf7c1f903166d2b7fbcb7bd1320aa285234df59 util-vserver-0.30.211.tar.bz2 638003
+MD5 f6d0788910ed5f8bc4419461a2afcd8c util-vserver-patches-0.30.211-r1.tar.bz2 16779
+RMD160 4ef73897df3209e4eddac85360c838a532c5f13e util-vserver-patches-0.30.211-r1.tar.bz2 16779
+SHA256 e9d5b28da16bf93a5fd9a709c0dd8023342310ce8f01e76cb8b7bf703f573401 util-vserver-patches-0.30.211-r1.tar.bz2 16779
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild
new file mode 100644
index 0000000..1f1a512
--- /dev/null
+++ b/sys-cluster/util-vserver/util-vserver-0.30.211-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils bash-completion
+
+DESCRIPTION="Linux-VServer admin utilities"
+HOMEPAGE="http://www.nongnu.org/util-vserver/"
+SRC_URI="http://ftp.linux-vserver.org/pub/utils/${PN}/${P}.tar.bz2
+ http://dev.gentoo.org/~hollow/distfiles/${PN}-patches-${PVR}.tar.bz2
+ http://dev.gentoo.org/~phreak/distfiles/${PN}-patches-${PVR}.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
+ =sys-devel/automake-1.9*"
+
+RDEPEND="sys-apps/iproute2
+ net-misc/vconfig
+ net-firewall/iptables
+ dev-libs/beecrypt
+ sys-process/procps"
+
+pkg_setup() {
+ 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
+
+ myconf="${myconf} --with-vrootdir=${VDIRBASE}"
+
+ # default paths
+ myconf="${myconf} --localstatedir=/var"
+ myconf="${myconf} --with-initrddir=/etc/init.d"
+
+ # needed for older vserver kernels not in portage (default: v13,net)
+ # we provide this just for convenience for people using self-made kernels
+ use legacy && myconf="${myconf} --enable-apis=compat,v11,fscompat,v13,net"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ cp "${WORKDIR}"/tools/* scripts/ || die "failed to copy gentoo tools"
+ epatch "${WORKDIR}"/patches/*.patch
+
+ eautomake
+}
+
+src_compile() {
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install install-distribution || die "install failed"
+
+ # keep dirs
+ keepdir /var/run/{vservers,vservers.rev,vshelper}
+ keepdir /var/lock/vservers
+ keepdir /var/cache/vservers
+
+ keepdir "${VDIRBASE}"
+
+ # remove the non-gentoo init-scripts:
+ rm -f "${D}"/etc/init.d/*
+
+ # and install branded/customized init-scripts:
+ doinitd "${WORKDIR}"/init.d/vservers || die "Failed to ins init.d/vservers"
+ doconfd "${WORKDIR}"/conf.d/vservers || die "Failed to ins conf.d/vservers"
+
+ # bash-completion
+ dobashcompletion "${S}"/contrib/bash_completion util-vserver
+
+ 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
+ if has_version "<0.30.208-r8" ; then
+ 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
+ fi
+}