blob: 0eccc5852c4ed4814c51476f17b4b208362153c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2005 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.204.ebuild,v 1.4 2005/03/30 11:43:40 hollow Exp $
inherit eutils
DESCRIPTION="vserver admin utilities (alpha version)"
SRC_URI="http://www-user.tu-chemnitz.de/~ensc/util-vserver/alpha/${P}.tar.bz2"
HOMEPAGE="http://www-user.tu-chemnitz.de/~ensc/util-vserver/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-libs/dietlibc-0.26-r1
sys-apps/iproute2
net-misc/vconfig
net-firewall/iptables"
src_compile() {
local myconf="--localstatedir=/var --with-initrddir=/etc/init.d"
econf ${myconf} || die "econf failed"
emake || die "compile failed"
}
src_install() {
emake DESTDIR=${D} install || die "install failed"
# keep dirs
keepdir /var/run/vservers
keepdir /var/lock/vservers
keepdir /var/run/vshelper
keepdir /vservers
fperms 000 /vservers
# remove the non-gentoo init-scripts:
rm -f ${D}/etc/init.d/*
# and install gentoo'ized ones:
exeinto /etc/init.d/
newexe ${FILESDIR}/vservers.initd vservers
# install conf.d files
insinto /etc/conf.d
newins ${FILESDIR}/vservers.confd vservers
dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec
}
|