summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/ploop/ploop-1.4.ebuild')
-rw-r--r--sys-cluster/ploop/ploop-1.4.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys-cluster/ploop/ploop-1.4.ebuild b/sys-cluster/ploop/ploop-1.4.ebuild
new file mode 100644
index 000000000000..81b2a4ff382a
--- /dev/null
+++ b/sys-cluster/ploop/ploop-1.4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ploop/ploop-1.4.ebuild,v 1.1 2012/07/17 05:23:08 pva Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs multilib
+
+DESCRIPTION="openvz tool and a library to control ploop block devices"
+HOMEPAGE="http://wiki.openvz.org/Download/ploop"
+SRC_URI="http://download.openvz.org/utils/ploop/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/libxml2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Respect CFLAGS and CC
+ sed -e 's|CFLAGS =|CFLAGS +=|' -e "s|\(CC=\).*|\1$(tc-getCC)|" \
+ -i Makefile.inc || die
+ # Avoid striping of binaries
+ sed -e '/INSTALL/{s: -s::}' -i tools/Makefile || die
+ epatch "${FILESDIR}/ploop-1.2-soname.patch"
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc tools/README
+ ldconfig -n "${D}/usr/$(get_libdir)/" || die
+}