sys-cluster/ploop: bump to 1.14.1
authorMaxim Koltsov <maksbotan@gentoo.org>
Sat, 10 Oct 2015 14:31:51 +0000 (17:31 +0300)
committerMaxim Koltsov <maksbotan@gentoo.org>
Sat, 10 Oct 2015 14:33:40 +0000 (17:33 +0300)
Package-Manager: portage-2.2.22

sys-cluster/ploop/Manifest
sys-cluster/ploop/files/disable_create_run_dir.patch [new file with mode: 0644]
sys-cluster/ploop/ploop-1.14.1.ebuild [new file with mode: 0644]

index 056d0d08524655a2278052536305e7a5d25b9b60..e48d97d8c5ee8d1cf4c7552ab9236eab8e508bda 100644 (file)
@@ -1 +1,2 @@
 DIST ploop-1.13.2.tar.bz2 122821 SHA256 c1705c3bebd4f0f8860fecadf57cca457216b2abad880eb36098351244f9c1c3 SHA512 85a3314dc1114b692cd98290412fd2ea78c516964c712487dd72f8347fd583172d8836f997d63ccade89ee39be031669074d9bc957926b97175e659ec505ddfb WHIRLPOOL aea714ec18aa82cce2fcffa9aafdfe0e627ed83db9b8eaf0621b2dddb58fd300fdd9a3896e2e5192154cc5e0b6b11668128ed2e66fd04c1daae84e23d41c7a99
+DIST ploop-1.14.1.tar.bz2 123962 SHA256 841fde81c46632072ff8bcc29a4074a15b3c8359967254deeba51f0af34a6c0e SHA512 7a235865f071de6e2762923d6591c8c6ee00d0d05ec80c6a2a1332f5b6881ccf827f7ddc40dfe1d663b8abf492a188a23f7d28a43dd553d6e37c8091cb3bc484 WHIRLPOOL 8e80385233cbd5be0a26a20fb5442f82fa57adffe22f78a1207c73ece65822091c7fbbf90b59b97b8cf6ff760447a93c391e828af5402ecdc59285a74c114332
diff --git a/sys-cluster/ploop/files/disable_create_run_dir.patch b/sys-cluster/ploop/files/disable_create_run_dir.patch
new file mode 100644 (file)
index 0000000..7260949
--- /dev/null
@@ -0,0 +1,21 @@
+--- lib/Makefile.old   2015-10-10 15:49:25.377235002 +0300
++++ lib/Makefile       2015-10-10 15:49:50.021464544 +0300
+@@ -76,17 +76,13 @@
+ .depend: $(filter-out $(GENERATED),$(SOURCES))
+ -include .depend
+ 
+-install-lockdir:
+-      $(Q) $(INSTALL) -d $(DESTDIR)$(LOCKDIR)
+-.PHONY: install-lockdir
+-
+ install-pc: $(PC)
+       $(E) "  INSTALL " $(PC)
+       $(Q) $(INSTALL) -d $(DESTDIR)$(PCDIR)
+       $(Q) $(INSTALL) $(PC) $(DESTDIR)$(PCDIR)
+ .PHONY: install-pc
+ 
+-install: all install-lockdir install-pc
++install: all  install-pc
+       $(Q) $(INSTALL) -d $(DESTDIR)$(LIBDIR)
+       $(E) "  INSTALL " $(LIBPLOOP)
+       $(Q) $(INSTALL) -m 644 $(LIBPLOOP) $(DESTDIR)$(LIBDIR)
diff --git a/sys-cluster/ploop/ploop-1.14.1.ebuild b/sys-cluster/ploop/ploop-1.14.1.ebuild
new file mode 100644 (file)
index 0000000..00858bd
--- /dev/null
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs multilib systemd
+
+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="~amd64 ~x86"
+IUSE="debug static-libs"
+
+DEPEND="
+       dev-libs/libxml2
+       virtual/pkgconfig
+       "
+
+RDEPEND="dev-libs/libxml2
+       !<sys-cluster/vzctl-4.8
+       sys-block/parted
+       sys-fs/e2fsprogs
+       sys-process/lsof
+       sys-apps/findutils
+       "
+
+DOCS=( tools/README )
+
+src_prepare() {
+       epatch "${FILESDIR}/disable_create_run_dir.patch"
+
+       # Respect CFLAGS and CC, do not add debug by default
+       sed -i \
+               -e 's|CFLAGS =|CFLAGS +=|' \
+               -e '/CFLAGS/s/-g -O0 //' \
+               -e '/CFLAGS/s/-O2//' \
+               -e 's|CC=|CC?=|' \
+               -e 's/-Werror//' \
+               -e '/DEBUG=yes/d' \
+               -e '/LOCKDIR/s/var/run/' \
+               Makefile.inc || die 'sed on Makefile.inc failed'
+       # Avoid striping of binaries
+       sed -e '/INSTALL/{s: -s::}' -i tools/Makefile || die 'sed on tools/Makefile failed'
+
+       # respect AR and RANLIB, bug #452092
+       tc-export AR RANLIB
+       sed -i -e 's/ranlib/$(RANLIB)/' lib/Makefile || die 'sed on lib/Makefile failed'
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" V=1 $(usex debug 'DEBUG' '' '=yes' '')
+}
+
+src_install() {
+       default
+       ldconfig -n "${D}/usr/$(get_libdir)/" || die
+}