From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D1782158086 for ; Fri, 26 Nov 2021 23:37:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D716E0794; Fri, 26 Nov 2021 23:37:50 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E6265E0794 for ; Fri, 26 Nov 2021 23:37:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0DA6342F8B for ; Fri, 26 Nov 2021 23:37:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 631351DC for ; Fri, 26 Nov 2021 23:37:47 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1637969862.6573b85f2753135263c241db65f2332cb26af45f.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ploop/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/ploop/ploop-1.14.1-r1.ebuild X-VCS-Directories: sys-cluster/ploop/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 6573b85f2753135263c241db65f2332cb26af45f X-VCS-Branch: master Date: Fri, 26 Nov 2021 23:37:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0a2e3ff4-fd3e-4811-9442-4df03d275ab4 X-Archives-Hash: e9aec2ca72c830217c586d0e6df74144 commit: 6573b85f2753135263c241db65f2332cb26af45f Author: Marek Szuba gentoo org> AuthorDate: Fri Nov 26 23:34:17 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Fri Nov 26 23:37:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6573b85f sys-cluster/ploop: update EAPI 5 -> 7 Nb. The latest version upstream is 1.15, dated April 2016. It fails to build, though. Signed-off-by: Marek Szuba gentoo.org> sys-cluster/ploop/ploop-1.14.1-r1.ebuild | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/sys-cluster/ploop/ploop-1.14.1-r1.ebuild b/sys-cluster/ploop/ploop-1.14.1-r1.ebuild new file mode 100644 index 000000000000..5133adf338ac --- /dev/null +++ b/sys-cluster/ploop/ploop-1.14.1-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit tmpfiles toolchain-funcs + +DESCRIPTION="openvz tool and a library to control ploop block devices" +HOMEPAGE="https://wiki.openvz.org/Download/ploop" +SRC_URI="https://download.openvz.org/utils/ploop/${PV}/src/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +BDEPEND="virtual/pkgconfig" +DEPEND="dev-libs/libxml2" +RDEPEND="${DEPEND} + sys-block/parted + sys-fs/e2fsprogs + sys-process/lsof + sys-apps/findutils" + +PATCHES=( + "${FILESDIR}"/disable_create_run_dir.patch +) + +DOCS=( tools/README ) + +src_prepare() { + default + + # 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 + rm "${ED}"/usr/$(get_libdir)/*.a || die +} + +pkg_postinst() { + tmpfiles_process ploop.conf +}