blob: 6a605c3dff7347043443ed165a011d5e1b162fcb (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# 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.208-r5.ebuild,v 1.1 2005/10/27 17:20:36 hollow Exp $
inherit autotools eutils toolchain-funcs subversion
DESCRIPTION="Linux-VServer Control Daemon"
HOMEPAGE="http://linux-vserver.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~alpha ~ppc ~sparc ~x86"
IUSE="client server"
DEPEND="dev-libs/confuse
=dev-libs/lucid-svn-9999
=sys-libs/libvserver-svn-9999
>=dev-libs/xmlrpc-c-1.05
server? (
>=dev-db/sqlite-3
dev-libs/libtar
)"
ESVN_REPO_URI="http://svn.linux-vserver.org/svn/vcd/trunk"
ESVN_BOOTSTRAP="make -f Makefile.svn"
pkg_setup() {
if built_with_use dev-libs/xmlrpc-c threads; then
eerror "You have thread support enabled in XMLRPC-C"
eerror "This is likely to cause problems in ${PN}"
eerror "Please remove thread USE flag from XMLRPC-C"
die "No thread support possible"
fi
if ! built_with_use dev-libs/xmlrpc-c curl &&
! built_with_use dev-libs/xmlrpc-c libwww; then
eerror "No client transport found in XMLRPC-C"
eerror "Please enable curl or libwww USE flag in XMLRPC-C"
die "No client transport found"
fi
einfo
einfo "You can set your vserver base directory using the VSERVERDIR"
einfo "environment variable."
einfo
einfo "Using ${VSERVERDIR:=/vservers} as vserver base directory"
einfo
}
src_compile() {
econf --with-vserverdir="${VSERVERDIR}" \
$(use_enable client) \
$(use_enable server) || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
use server && keepdir "${VSERVERDIR}"
use server && keepdir /var/lib/vcd
dodoc README ChangeLog AUTHORS
}
|