Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FL-1113: ploop-1.10.ebuild - needs testing.
- Loading branch information
1 parent
47ab11c
commit 8a01a47
Showing
8 changed files
with
275 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DIST ploop-1.10.tar.bz2 100864 SHA256 031d3ae620990726d2da739983b73cc5fc98d08aec1336e6c298b4932077627c SHA512 69a601062e97cbf9314f422bc990db4455716ad86d977ea6bece76a9e1f82992d095b1f259eadbdf15c5a915bdb285ab9154fbafaa133b1db5c785f422f76586 WHIRLPOOL 0369c5cd003f3e3811f8c552c96c2bcd3fae51d8f3187370cf01c50bd8af5f2b4eba7b3e9f16ed81563a60d752b82a568fb182c261b57a51ce83d43e6c76bc58 | ||
DIST ploop-1.6.tar.bz2 88721 SHA256 02585bab5591bac8387578e88c1cbda1f8c4e821aaa716820a38df277adae120 SHA512 2e76ea0f7a6687b30a536f28034efdd11388ebb4c6510ab551a173fc339b8f3f0ab98f164fc180a5c31b5c2a143c4e2dc1bf02b8fd990e8d31c5d9397e702d84 WHIRLPOOL e50a40d66a426a52bc6ab859d568099222ed8ff5f766b8b56675aa9ef1d850a9b7024d3394519f7a66d598a6aab1123ac130c6ee35655207f12d5e676939ccf1 | ||
DIST ploop-1.8.tar.bz2 94018 SHA256 077ebb4b7a5a7001bfc60db5c2dfaf7b55144282e94187cd12bd1679e13ba0e9 SHA512 cfe5ff1d2d299fd548f3948c1d00e78a66f9a9fc7b06bff8591a9187e800f6f951e3d8ae13aab8780f13b09188cecef2726c2324ba8199e308953afd78287246 WHIRLPOOL 36c2a7fc13e01124d2b13449a1fec13d054cd518edefc4983e3c938cf0748d170170118fe33f28b82bb3fd0a8ed651fec9326656649b11aef0b8c16236945323 | ||
DIST ploop-1.9.tar.bz2 94824 SHA256 cc6befc04735e339a49c2ee780c71df2ab11c8bd72b149a58c6a88ca305287ab SHA512 134ea839f3967e359f0edb15a45f8b67564157404456bbb87f3d9761d01968086fe76ce4f1e7e883a9427de74ca5140a97bbda0793f177668f683159d92d0049 WHIRLPOOL 92562552348893bfd75a6544f49442398f64f40d40a06ffb137cd7290d458ed99df6b6e30ad2bce5b8cc924a73825bf3fe21fe69300249c37ce4105376a81c21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- lib/Makefile 2012-05-03 21:11:04.000000000 +0400 | ||
+++ lib/Makefile 2012-05-03 21:10:47.000000000 +0400 | ||
@@ -2,6 +2,7 @@ | ||
|
||
LIBPLOOP=libploop.a | ||
LIBPLOOP_DYN = libploop.so | ||
+SONAME = $(LIBPLOOP_DYN).0 | ||
LIBOBJS=uuid.o \ | ||
delta_read.o \ | ||
delta_sysfs.o \ | ||
@@ -36,7 +37,7 @@ | ||
|
||
$(LIBPLOOP_DYN): $(LIBOBJS) | ||
$(E) " LINK " $@ | ||
- $(Q) $(CC) $(CFLAGS) $(INC) $(LDFLAGS) -shared $^ ${LDLIBS} -o $@ | ||
+ $(Q) $(CC) $(CFLAGS) $(INC) $(LDFLAGS) -shared $^ ${LDLIBS} -o $@ -Wl,-soname,$(SONAME) | ||
|
||
.depend: $(SOURCES) | ||
-include .depend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d /run/lock/ploop 0755 root root - - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<herd>proxy-maintainers</herd> | ||
<maintainer> | ||
<email>andreis.vinogradovs@gmail.com</email> | ||
<name>Andreis Vinogradovs</name> | ||
<description>Primary maintainer, assign bugs to him</description> | ||
</maintainer> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright 1999-2014 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ploop/ploop-1.9.ebuild,v 1.3 2014/01/14 13:58:30 ago Exp $ | ||
|
||
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" | ||
RDEPEND="${DEPEND} | ||
!<sys-cluster/vzctl-4.5 | ||
sys-block/parted | ||
sys-fs/e2fsprogs | ||
" | ||
|
||
DOCS=( tools/README ) | ||
|
||
src_prepare() { | ||
# 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 | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Warning - API changes" | ||
elog "1. This version requires running vzkernel >= 2.6.32-042stab79.5 and vzctl-4.5 ot above" | ||
elog "2. DiskDescriptor.xml created by older ploop versions are converted to current format" | ||
elog "3. If you have eise --diskquota paranetr on gentoo CT, please install sys-fs/quota on CT. " | ||
elog "[3] is gentoo specific messages ( due stage3 not contain quta tools) " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ploop/ploop-1.6.ebuild,v 1.3 2013/04/15 08:39:10 ago Exp $ | ||
|
||
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" | ||
RDEPEND="${DEPEND}" | ||
|
||
DOCS=( tools/README ) | ||
|
||
src_prepare() { | ||
# 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' | ||
|
||
epatch "${FILESDIR}/ploop-1.2-soname.patch" | ||
|
||
# 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 | ||
use static-libs || rm "${D}/usr/$(get_libdir)/libploop.a" || die 'remove static lib failed' | ||
|
||
systemd_newtmpfilesd "${FILESDIR}/ploop.tmpfiles" ploop.conf | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Warning - API changes" | ||
elog "1. This version requires running vzkernel >= 2.6.32-042stab061.1" | ||
elog "2. DiskDescriptor.xml created by older ploop versions are converted to current format" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright 1999-2013 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ploop/ploop-1.8.ebuild,v 1.3 2013/09/05 19:24:35 ago Exp $ | ||
|
||
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" | ||
RDEPEND="${DEPEND}" | ||
|
||
DOCS=( tools/README ) | ||
|
||
src_prepare() { | ||
# 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' | ||
|
||
epatch "${FILESDIR}/ploop-1.2-soname.patch" | ||
|
||
# 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 | ||
use static-libs || rm "${D}/usr/$(get_libdir)/libploop.a" || die 'remove static lib failed' | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Warning - API changes" | ||
elog "1. This version requires running vzkernel >= 2.6.32-042stab061.1" | ||
elog "2. DiskDescriptor.xml created by older ploop versions are converted to current format" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 1999-2014 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/ploop/ploop-1.9.ebuild,v 1.3 2014/01/14 13:58:30 ago Exp $ | ||
|
||
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" | ||
RDEPEND="${DEPEND} | ||
!<sys-cluster/vzctl-4.5 | ||
sys-block/parted | ||
sys-fs/e2fsprogs | ||
" | ||
|
||
DOCS=( tools/README ) | ||
|
||
src_prepare() { | ||
# 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 | ||
use static-libs || rm "${D}/usr/$(get_libdir)/libploop.a" || die 'remove static lib failed' | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Warning - API changes" | ||
elog "1. This version requires running vzkernel >= 2.6.32-042stab79.5 and vzctl-4.5 ot above" | ||
elog "2. DiskDescriptor.xml created by older ploop versions are converted to current format" | ||
elog "3. If you have eise --diskquota paranetr on gentoo CT, please install sys-fs/quota on CT. " | ||
elog "[3] is gentoo specific messages ( due stage3 not contain quta tools) " | ||
} |