summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-09-11 15:46:34 +0000
committerChristian Heim <phreak@gentoo.org>2006-09-11 15:46:34 +0000
commitbd904a52d32cc78797840013f10791b898f9e71f (patch)
treeb8703fcbc5cf51ca14a44a74e45d0f0a83cc31c6
parentremove util-vserver (diff)
downloadoverlay-bd904a52d32cc78797840013f10791b898f9e71f.tar.gz
overlay-bd904a52d32cc78797840013f10791b898f9e71f.tar.bz2
overlay-bd904a52d32cc78797840013f10791b898f9e71f.zip
Adding a preliminary ebuild for the (not yet released) current vzctl version. Please be aware that this is not supported by UPSTREAM.
svn path=/; revision=44
-rw-r--r--sys-cluster/vzctl/Manifest8
-rw-r--r--sys-cluster/vzctl/files/digest-vzctl-3.0.123
-rw-r--r--sys-cluster/vzctl/vzctl-3.0.12.ebuild75
3 files changed, 86 insertions, 0 deletions
diff --git a/sys-cluster/vzctl/Manifest b/sys-cluster/vzctl/Manifest
new file mode 100644
index 0000000..9e5be62
--- /dev/null
+++ b/sys-cluster/vzctl/Manifest
@@ -0,0 +1,8 @@
+DIST vzctl-3.0.12.tar.bz2 124775 RMD160 f98fdc5c6ed9a33e182e0282560bb1affc4f6125 SHA1 e09dcf7009a3715785cf150d5810b25123bb5015 SHA256 b319eda426a1bfdcd5d6f389ac153986d844efeaf7e83c9af3576411058e842d
+EBUILD vzctl-3.0.12.ebuild 2077 RMD160 54048eac99089edadad2d406700a88565884c7d3 SHA1 6eea2175915f0064635dd1a38603e15769d01877 SHA256 7a641072fcc1127ce492d20ea548f8ee181d17ab88f595c9f53db4f00d43ad52
+MD5 1dad546a9aaac74c2b4c1bfe07952f60 vzctl-3.0.12.ebuild 2077
+RMD160 54048eac99089edadad2d406700a88565884c7d3 vzctl-3.0.12.ebuild 2077
+SHA256 7a641072fcc1127ce492d20ea548f8ee181d17ab88f595c9f53db4f00d43ad52 vzctl-3.0.12.ebuild 2077
+MD5 22e28b31f4ee293763d4ef50cc69da3f files/digest-vzctl-3.0.12 241
+RMD160 f7cd3ed3af7fcf41ba414930431b9c77fb7d769b files/digest-vzctl-3.0.12 241
+SHA256 97696e9bc738122573c3fe1b843787764b11131c09dda786d3d4a20b1e62c3a2 files/digest-vzctl-3.0.12 241
diff --git a/sys-cluster/vzctl/files/digest-vzctl-3.0.12 b/sys-cluster/vzctl/files/digest-vzctl-3.0.12
new file mode 100644
index 0000000..5b8596d
--- /dev/null
+++ b/sys-cluster/vzctl/files/digest-vzctl-3.0.12
@@ -0,0 +1,3 @@
+MD5 4cb43f2874e6b2439ecdc93d8edc5aeb vzctl-3.0.12.tar.bz2 124775
+RMD160 f98fdc5c6ed9a33e182e0282560bb1affc4f6125 vzctl-3.0.12.tar.bz2 124775
+SHA256 b319eda426a1bfdcd5d6f389ac153986d844efeaf7e83c9af3576411058e842d vzctl-3.0.12.tar.bz2 124775
diff --git a/sys-cluster/vzctl/vzctl-3.0.12.ebuild b/sys-cluster/vzctl/vzctl-3.0.12.ebuild
new file mode 100644
index 0000000..7e04c20
--- /dev/null
+++ b/sys-cluster/vzctl/vzctl-3.0.12.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils flag-o-matic multilib
+
+DESCRIPTION="OpenVZ VPS control utility"
+HOMEPAGE="http://openvz.org/"
+SRC_URI="http://dev.gentoo.org/~phreak/distfiles/${P}.tar.bz2"
+# http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2
+# http://dev.gentoo.org/~phreak/distfiles/${PN}-patches-${PVR}.tar.bz2
+# http://dev.gentoo.org/~hollow/distfiles/${PN}-patches-${PVR}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="udev"
+
+RDEPEND="app-admin/logrotate
+ sys-apps/ed
+ net-firewall/iptables
+ sys-fs/vzquota
+ sys-apps/iproute2
+ udev? ( sys-fs/udev )"
+
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+# epatch "${WORKDIR}"/patches/*.patch
+}
+
+src_compile() {
+ append-flags -Wall -g2
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+# make DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/vzctl" install || die "make install failed"
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # the get_libdir in `make install' breaks src/Makefile's logic (and thus all
+ # contained tools), so we have to create a env.d entry for vzctl's LDPATH.
+# dodir /etc/env.d
+# echo "LDPATH=\"/usr/$(get_libdir)/vzctl\"" > "${D}"/etc/env.d/05vzctl
+
+ # setup udev rules for /dev/vzctl
+# if use udev; then
+# dodir /etc/udev/rules.d
+# echo 'KERNEL="vzctl", NAME="%k", MODE="0600"' > "${D}"/etc/udev/rules.d/60-vzctl.rules
+# fi
+
+ # Provide a symlink for vz.conf (fixing #138462)
+ dosym /etc/vz/vz.conf /etc/conf.d/vz
+
+ # Install gentoo specific init script
+# rm -f "${D}"/etc/init.d/*
+# newinitd "${WORKDIR}"/init.d/vz.initd vz
+
+# dodoc "${WORKDIR}/patches/000_README"
+}
+
+pkg_postinst() {
+ if has_version "<3.0.10"; then
+ ewarn
+ ewarn "The location of some vzctl files have changed. Most notably,"
+ ewarn "VE configuration files and samples directory has changed from"
+ ewarn "/etc/vz to /etc/vz/conf. In order to be able to work with"
+ ewarn "your VEs, please do the following:"
+ ewarn
+ ewarn "bash# mv /etc/vz/[0-9]*.conf /etc/vz/conf/"
+ ewarn
+ fi
+}