summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild')
-rw-r--r--sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild b/sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild
new file mode 100644
index 000000000000..619fc97dd1b5
--- /dev/null
+++ b/sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/vserver-utils/vserver-utils-1.0.2.ebuild,v 1.1 2006/01/10 16:14:07 hollow Exp $
+
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Linux-VServer admin utilities"
+HOMEPAGE="http://dev.croup.de/proj/vserver-utils"
+SRC_URI="http://dev.gentoo.org/~hollow/vserver-utils/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+DEPEND="=sys-libs/libvserver-1.0*"
+
+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
+}
+
+src_compile() {
+ econf --localstatedir=/var \
+ --with-initrddir=/etc/init.d \
+ --with-vdirbase="${VDIRBASE}" || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+
+ keepdir "${VDIRBASE}"
+ fperms 000 "${VDIRBASE}"
+
+ dodoc README ChangeLog AUTHORS INSTALL
+}