Gentoo Archives: gentoo-commits

From: Maxim Koltsov <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ploop/files/, sys-cluster/ploop/
Date: Sat, 10 Oct 2015 14:33:54
Message-Id: 1444487620.4ee814d2c1222272104e5ff4ca602a755ba4d173.maksbotan@gentoo
1 commit: 4ee814d2c1222272104e5ff4ca602a755ba4d173
2 Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 14:31:51 2015 +0000
4 Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 14:33:40 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee814d2
7
8 sys-cluster/ploop: bump to 1.14.1
9
10 Package-Manager: portage-2.2.22
11
12 sys-cluster/ploop/Manifest | 1 +
13 .../ploop/files/disable_create_run_dir.patch | 21 ++++++++
14 sys-cluster/ploop/ploop-1.14.1.ebuild | 61 ++++++++++++++++++++++
15 3 files changed, 83 insertions(+)
16
17 diff --git a/sys-cluster/ploop/Manifest b/sys-cluster/ploop/Manifest
18 index 056d0d0..e48d97d 100644
19 --- a/sys-cluster/ploop/Manifest
20 +++ b/sys-cluster/ploop/Manifest
21 @@ -1 +1,2 @@
22 DIST ploop-1.13.2.tar.bz2 122821 SHA256 c1705c3bebd4f0f8860fecadf57cca457216b2abad880eb36098351244f9c1c3 SHA512 85a3314dc1114b692cd98290412fd2ea78c516964c712487dd72f8347fd583172d8836f997d63ccade89ee39be031669074d9bc957926b97175e659ec505ddfb WHIRLPOOL aea714ec18aa82cce2fcffa9aafdfe0e627ed83db9b8eaf0621b2dddb58fd300fdd9a3896e2e5192154cc5e0b6b11668128ed2e66fd04c1daae84e23d41c7a99
23 +DIST ploop-1.14.1.tar.bz2 123962 SHA256 841fde81c46632072ff8bcc29a4074a15b3c8359967254deeba51f0af34a6c0e SHA512 7a235865f071de6e2762923d6591c8c6ee00d0d05ec80c6a2a1332f5b6881ccf827f7ddc40dfe1d663b8abf492a188a23f7d28a43dd553d6e37c8091cb3bc484 WHIRLPOOL 8e80385233cbd5be0a26a20fb5442f82fa57adffe22f78a1207c73ece65822091c7fbbf90b59b97b8cf6ff760447a93c391e828af5402ecdc59285a74c114332
24
25 diff --git a/sys-cluster/ploop/files/disable_create_run_dir.patch b/sys-cluster/ploop/files/disable_create_run_dir.patch
26 new file mode 100644
27 index 0000000..7260949
28 --- /dev/null
29 +++ b/sys-cluster/ploop/files/disable_create_run_dir.patch
30 @@ -0,0 +1,21 @@
31 +--- lib/Makefile.old 2015-10-10 15:49:25.377235002 +0300
32 ++++ lib/Makefile 2015-10-10 15:49:50.021464544 +0300
33 +@@ -76,17 +76,13 @@
34 + .depend: $(filter-out $(GENERATED),$(SOURCES))
35 + -include .depend
36 +
37 +-install-lockdir:
38 +- $(Q) $(INSTALL) -d $(DESTDIR)$(LOCKDIR)
39 +-.PHONY: install-lockdir
40 +-
41 + install-pc: $(PC)
42 + $(E) " INSTALL " $(PC)
43 + $(Q) $(INSTALL) -d $(DESTDIR)$(PCDIR)
44 + $(Q) $(INSTALL) $(PC) $(DESTDIR)$(PCDIR)
45 + .PHONY: install-pc
46 +
47 +-install: all install-lockdir install-pc
48 ++install: all install-pc
49 + $(Q) $(INSTALL) -d $(DESTDIR)$(LIBDIR)
50 + $(E) " INSTALL " $(LIBPLOOP)
51 + $(Q) $(INSTALL) -m 644 $(LIBPLOOP) $(DESTDIR)$(LIBDIR)
52
53 diff --git a/sys-cluster/ploop/ploop-1.14.1.ebuild b/sys-cluster/ploop/ploop-1.14.1.ebuild
54 new file mode 100644
55 index 0000000..00858bd
56 --- /dev/null
57 +++ b/sys-cluster/ploop/ploop-1.14.1.ebuild
58 @@ -0,0 +1,61 @@
59 +# Copyright 1999-2015 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Id$
62 +
63 +EAPI=5
64 +
65 +inherit eutils toolchain-funcs multilib systemd
66 +
67 +DESCRIPTION="openvz tool and a library to control ploop block devices"
68 +HOMEPAGE="http://wiki.openvz.org/Download/ploop"
69 +SRC_URI="http://download.openvz.org/utils/ploop/${PV}/src/${P}.tar.bz2"
70 +
71 +LICENSE="GPL-2"
72 +SLOT="0"
73 +KEYWORDS="~amd64 ~x86"
74 +IUSE="debug static-libs"
75 +
76 +DEPEND="
77 + dev-libs/libxml2
78 + virtual/pkgconfig
79 + "
80 +
81 +RDEPEND="dev-libs/libxml2
82 + !<sys-cluster/vzctl-4.8
83 + sys-block/parted
84 + sys-fs/e2fsprogs
85 + sys-process/lsof
86 + sys-apps/findutils
87 + "
88 +
89 +DOCS=( tools/README )
90 +
91 +src_prepare() {
92 + epatch "${FILESDIR}/disable_create_run_dir.patch"
93 +
94 + # Respect CFLAGS and CC, do not add debug by default
95 + sed -i \
96 + -e 's|CFLAGS =|CFLAGS +=|' \
97 + -e '/CFLAGS/s/-g -O0 //' \
98 + -e '/CFLAGS/s/-O2//' \
99 + -e 's|CC=|CC?=|' \
100 + -e 's/-Werror//' \
101 + -e '/DEBUG=yes/d' \
102 + -e '/LOCKDIR/s/var/run/' \
103 + Makefile.inc || die 'sed on Makefile.inc failed'
104 + # Avoid striping of binaries
105 + sed -e '/INSTALL/{s: -s::}' -i tools/Makefile || die 'sed on tools/Makefile failed'
106 +
107 + # respect AR and RANLIB, bug #452092
108 + tc-export AR RANLIB
109 + sed -i -e 's/ranlib/$(RANLIB)/' lib/Makefile || die 'sed on lib/Makefile failed'
110 +}
111 +
112 +src_compile() {
113 + emake CC="$(tc-getCC)" V=1 $(usex debug 'DEBUG' '' '=yes' '')
114 +}
115 +
116 +src_install() {
117 + default
118 + ldconfig -n "${D}/usr/$(get_libdir)/" || die
119 +}