public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/vzctl/
Date: Tue, 30 Mar 2021 21:45:55 +0000 (UTC)	[thread overview]
Message-ID: <1617140746.d7c62fe7c2b60209e25aec8da5779df8b4161028.sam@gentoo> (raw)

commit:     d7c62fe7c2b60209e25aec8da5779df8b4161028
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 30 21:44:53 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 30 21:45:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c62fe7

sys-cluster/vzctl: port to EAPI 7, drop {eutils, base}.eclass, add optfeature

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-cluster/vzctl/vzctl-4.9.4.ebuild | 69 +++++++++++++++++-------------------
 1 file changed, 33 insertions(+), 36 deletions(-)

diff --git a/sys-cluster/vzctl/vzctl-4.9.4.ebuild b/sys-cluster/vzctl/vzctl-4.9.4.ebuild
index 97b9d64eb6e..7c9536d7182 100644
--- a/sys-cluster/vzctl/vzctl-4.9.4.ebuild
+++ b/sys-cluster/vzctl/vzctl-4.9.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=7
 
-inherit base bash-completion-r1 eutils toolchain-funcs udev
+inherit bash-completion-r1 toolchain-funcs optfeature udev
 
 DESCRIPTION="OpenVZ ConTainers control utility"
 HOMEPAGE="http://openvz.org/"
@@ -14,31 +14,35 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc64 x86"
 IUSE="+ploop +vzmigrate"
 
-RDEPEND="net-firewall/iptables
-		sys-apps/ed
-		>=sys-apps/iproute2-3.3.0
-		>=sys-fs/vzquota-3.1
-		ploop? (
-			>=sys-cluster/ploop-1.13
-			sys-block/parted
-			sys-fs/quota
-			dev-libs/libxml2
-			)
-		>=dev-libs/libcgroup-0.38
-		vzmigrate? (
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+	>=dev-libs/libcgroup-0.38
+	net-firewall/iptables
+	sys-apps/attr
+	sys-apps/ed
+	>=sys-apps/iproute2-3.3.0
+	>=sys-fs/vzquota-3.1
+	virtual/udev
+	ploop? (
+		dev-libs/libxml2
+		sys-block/parted
+		>=sys-cluster/ploop-1.13
+		sys-fs/quota
+	)
+	vzmigrate? (
+		app-arch/tar[xattr,acl]
 		net-misc/openssh
 		net-misc/rsync[xattr,acl]
-		app-arch/tar[xattr,acl]
 		net-misc/bridge-utils
 		virtual/awk
-			)
-		virtual/udev
-		sys-apps/attr
-		"
+	)
+"
+DEPEND="${RDEPEND}"
 
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-	"
+PATCHES=(
+	"${FILESDIR}"/${P}-glibc225.patch
+	"${FILESDIR}"/${P}-glibc225-2.patch
+)
 
 src_prepare() {
 	# Set default OSTEMPLATE on gentoo
@@ -46,13 +50,10 @@ src_prepare() {
 	# Set proper udev directory
 	sed -i -e "s:/lib/udev:$(get_udevdir):" src/lib/dev.c || die 'sed on src/lib/dev.c failed'
 
-	epatch "${FILESDIR}/${P}-glibc225.patch"
-	epatch "${FILESDIR}/${P}-glibc225-2.patch"
-	epatch_user
+	default
 }
 
 src_configure() {
-
 	econf \
 		--localstatedir=/var \
 		--enable-udev \
@@ -64,11 +65,10 @@ src_configure() {
 }
 
 src_install() {
-
 	emake DESTDIR="${D}" udevdir="$(get_udevdir)"/rules.d install install-gentoo
 
 	# install the bash-completion script into the right location
-	rm -rf "${ED}"/etc/bash_completion.d
+	rm -rf "${ED}"/etc/bash_completion.d || die
 	newbashcomp etc/bash_completion.d/vzctl.sh ${PN}
 
 	# We need to keep some dirs
@@ -77,12 +77,9 @@ src_install() {
 }
 
 pkg_postinst() {
-	einfo "This vzctl release required kernel above 2.6.32.92"
-
-	einfo "If you have checkpoint suspend/restore feature in vanilla kernel"
-	einfo "please install "sys-process/criu" "
-	einfo "This is experimental and not stable ( in gentoo ) now"
+	einfo "This vzctl release requires a kernel above 2.6.32.92"
 
-	einfo "if you have work with  .xz compressed template, please install app-arch/xz-utils"
-	einfo "if you have check signature downloaded template - install gpg "
+	optfeature "Checkpoint suspend/restore support (experimental)" sys-process/criu
+	optfeature "Compressed .xz templates" app-arch/xz-utils
+	optfeature "Signed templates" app-crypt/gnupg
 }


             reply	other threads:[~2021-03-30 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30 21:45 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-11 20:03 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/vzctl/ Sam James
2021-06-07  8:33 Joonas Niilola
2017-01-11  0:53 Thomas Deutschmann
2017-01-10 10:02 Aaron Bauman
2016-12-29 17:46 Göktürk Yüksek
2015-10-10 14:33 Maxim Koltsov
2015-08-12  7:11 Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1617140746.d7c62fe7c2b60209e25aec8da5779df8b4161028.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox