summaryrefslogtreecommitdiff
blob: 080696c21e851b8d95f43a493da7458c154428fb (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/util-vserver/util-vserver-0.29_p196-r1.ebuild,v 1.2 2004/03/29 12:11:05 tantive Exp $

MY_P="${P/_p/.}"
DESCRIPTION="Vserver admin-tools."
#SRC_URI="http://www-user.tu-chemnitz.de/~ensc/util-vserver/${P}.tar.bz2"
SRC_URI="http://www.13thfloor.at/vserver/d_release/v1.3.8/${MY_P}.tar.bz2"
HOMEPAGE="http://www.13thfloor.at/vserver/ http://savannah.nongnu.org/projects/util-vserver/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""

## TODO: optional (though NOT recommended) depend on dietlibc?
## hmm, dietlibc-linking results in ld-errors ...
#DEPEND="dev-libs/dietlibc"
DEPEND=""

S=${WORKDIR}/${MY_P}

src_compile() {
	#./configure --prefix=/usr --disable-internal-headers || die "configure failed"
	econf || die "econf failed"
	make || die "compile failed"
}

src_install() {
	make DESTDIR=${D} install || die "install failed"

	## state-dir:
	keepdir /var/run/vservers
	## the actual vservers go there:
	keepdir /vservers
	fperms 000 /vservers

	dodoc README ChangeLog NEWS AUTHORS INSTALL THANKS util-vserver.spec

	## remove the non-gentoo init-scripts:
	rm -r ${D}/etc/init.d
	## ... and install gentoo'ized ones:
	insinto /etc/init.d/
	doins ${FILESDIR}/vservers.initd
	doins ${FILESDIR}/rebootmgr.initd
}