diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2006-07-08 19:57:56 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2006-07-08 19:57:56 +0000 |
commit | 097d53726103c4fcdd7bfeb9fef0d2224882d7dd (patch) | |
tree | 484a66efa2b8b688be904bc751acff44236b99ac /sys-cluster | |
parent | add librrd dependency (diff) | |
download | overlay-097d53726103c4fcdd7bfeb9fef0d2224882d7dd.tar.gz overlay-097d53726103c4fcdd7bfeb9fef0d2224882d7dd.tar.bz2 overlay-097d53726103c4fcdd7bfeb9fef0d2224882d7dd.zip |
make ebuild a lot more configurable
svn path=/; revision=13
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/vserver-utils-svn/Manifest | 8 | ||||
-rw-r--r-- | sys-cluster/vserver-utils-svn/vserver-utils-svn-9999.ebuild | 55 |
2 files changed, 52 insertions, 11 deletions
diff --git a/sys-cluster/vserver-utils-svn/Manifest b/sys-cluster/vserver-utils-svn/Manifest index 1f11dac..d2b2cdc 100644 --- a/sys-cluster/vserver-utils-svn/Manifest +++ b/sys-cluster/vserver-utils-svn/Manifest @@ -1,7 +1,7 @@ -EBUILD vserver-utils-svn-9999.ebuild 951 RMD160 0f39a38939a31e971b483967282722aff63f0cac SHA1 4e9aa27ebcb81f45c201ea9f2fcf100792309d8c SHA256 20857c4822383aa69f846370890d044ca2dd60685c6ca04c0519a93d43ed8c27 -MD5 2693b03f01b4a8c5744efbb0a982425c vserver-utils-svn-9999.ebuild 951 -RMD160 0f39a38939a31e971b483967282722aff63f0cac vserver-utils-svn-9999.ebuild 951 -SHA256 20857c4822383aa69f846370890d044ca2dd60685c6ca04c0519a93d43ed8c27 vserver-utils-svn-9999.ebuild 951 +EBUILD vserver-utils-svn-9999.ebuild 2170 RMD160 28a705645130e90eb64212043aa45476f54b3d71 SHA1 4890773d177b62fa80c819ae3e811618fff61f95 SHA256 924d20b64cf1d73f16dc32b6d5abc4a0fd8e909e6794be8665985e89ebbfaf97 +MD5 c5e624b90b80c8f50dc77e5704227832 vserver-utils-svn-9999.ebuild 2170 +RMD160 28a705645130e90eb64212043aa45476f54b3d71 vserver-utils-svn-9999.ebuild 2170 +SHA256 924d20b64cf1d73f16dc32b6d5abc4a0fd8e909e6794be8665985e89ebbfaf97 vserver-utils-svn-9999.ebuild 2170 MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-vserver-utils-svn-9999 1 RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-vserver-utils-svn-9999 1 SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-vserver-utils-svn-9999 1 diff --git a/sys-cluster/vserver-utils-svn/vserver-utils-svn-9999.ebuild b/sys-cluster/vserver-utils-svn/vserver-utils-svn-9999.ebuild index 233f3ec..6c2eeb0 100644 --- a/sys-cluster/vserver-utils-svn/vserver-utils-svn-9999.ebuild +++ b/sys-cluster/vserver-utils-svn/vserver-utils-svn-9999.ebuild @@ -12,25 +12,66 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~alpha ~ppc ~sparc ~x86" -IUSE="" +IUSE="client server stats" DEPEND="=sys-libs/libvserver-svn-9999 - app-arch/bzip2 dev-libs/confuse - >=dev-libs/xmlrpc-c-1.05 - >=dev-db/libdbi-0.8 - net-analyzer/rrdtool - sys-libs/zlib" + client? ( >=dev-libs/xmlrpc-c-1.05 ) + server? ( + app-arch/bzip2 + >=dev-db/libdbi-0.8 + >=dev-libs/xmlrpc-c-1.05 + sys-libs/zlib + ) + stats? ( net-analyzer/rrdtool )" ESVN_REPO_URI="http://dev.croup.de/repos/vserver-utils/trunk" ESVN_BOOTSTRAP="make -f Makefile.svn" +pkg_setup() { + if ! built_with_use dev-db/libdbi-drivers sqlite3; then + eerror "You have no SQLite3 backend in libdbi" + eerror "Please remerge libdbi-drivers with sqlite3 USE flag" + die "No SQLite3 support" + fi + + 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 || die "econf failed" + econf --with-vserverdir="${VSERVERDIR}" \ + $(use_enable client) \ + $(use_enable server) \ + $(use_enable stats) || 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 + use stats && keepdir /var/lib/vstatd + dodoc README ChangeLog AUTHORS } |