public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/util-vserver/
Date: Thu,  3 Mar 2016 09:44:19 +0000 (UTC)	[thread overview]
Message-ID: <1456997089.7fa3fadde8fa6ed0e86a6db6df57de98b594719e.monsieurp@gentoo> (raw)

commit:     7fa3fadde8fa6ed0e86a6db6df57de98b594719e
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  3 09:24:32 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Mar  3 09:24:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa3fadd

sys-cluster/util-vserver: Housekeeping. Add missing dies.

Package-Manager: portage-2.2.26

 .../util-vserver-0.30.216_pre3120.ebuild           | 32 ++++++++++++++--------
 1 file changed, 20 insertions(+), 12 deletions(-)

diff --git a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
index 79bea53..fab02ae 100644
--- a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
+++ b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild
@@ -6,8 +6,7 @@ EAPI=5
 
 inherit eutils bash-completion-r1
 
-MY_P=${P/_/-}
-S="${WORKDIR}"/${MY_P}
+MY_P="${P/_/-}"
 
 DESCRIPTION="Linux-VServer admin utilities"
 HOMEPAGE="http://www.nongnu.org/util-vserver/"
@@ -19,16 +18,20 @@ KEYWORDS="~alpha amd64 ~sparc x86"
 
 IUSE=""
 
-CDEPEND="dev-libs/beecrypt
+CDEPEND="
+	dev-libs/beecrypt
 	net-firewall/iptables
 	net-misc/vconfig
 	sys-apps/iproute2"
 
-DEPEND=">dev-libs/dietlibc-0.33
-	${CDEPEND}"
+DEPEND="
+	${CDEPEND}
+	>dev-libs/dietlibc-0.33"
 
 RDEPEND="${CDEPEND}"
 
+S="${WORKDIR}/${MY_P}"
+
 pkg_setup() {
 	if [[ -z "${VDIRBASE}" ]]; then
 		einfo
@@ -45,14 +48,19 @@ pkg_setup() {
 
 src_test() {
 	# do not use $D from portage by accident (#297982)
-	sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh
+	sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh || die
+
 	default
 }
 
 src_configure() {
-	econf --with-vrootdir=${VDIRBASE} \
-		--with-initscripts=gentoo \
+	local myeconf=(
+		--with-vrootdir="${VDIRBASE}"
+		--with-initscripts=gentoo
 		--localstatedir=/var
+	)
+
+	econf "${myeconf[@]}"
 }
 
 src_compile() {
@@ -78,11 +86,11 @@ pkg_postinst() {
 	# Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also
 	# present when merging.
 
-	mkdir -p "${VDIRBASE}"
-	setattr --barrier "${VDIRBASE}"
+	mkdir -p "${VDIRBASE}" || die
+	setattr --barrier "${VDIRBASE}" || die
 
-	rm /etc/vservers/.defaults/vdirbase
-	ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase
+	rm /etc/vservers/.defaults/vdirbase || die
+	ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die
 
 	elog
 	elog "You have to run the vprocunhide command after every reboot"


             reply	other threads:[~2016-03-03  9:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-03  9:44 Patrice Clement [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-03-25 21:41 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/util-vserver/ Patrice Clement
2019-02-19 22:52 Patrice Clement
2018-11-11 13:07 Pacho Ramos
2018-08-05 18:45 Jonas Stein
2017-10-30 23:41 Patrice Clement
2017-01-23  8:36 Patrice Clement
2017-01-23  0:20 Patrice Clement
2017-01-23  0:20 Patrice Clement
2017-01-23  0:20 Patrice Clement
2016-06-06 16:05 Amy Winston
2016-06-06 16:05 Amy Winston
2015-10-10 18:23 Mike Frysinger
2015-09-05 18:37 Agostino Sarubbo
2015-09-05 18:36 Agostino Sarubbo
2015-08-24 11:33 Patrice Clement

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=1456997089.7fa3fadde8fa6ed0e86a6db6df57de98b594719e.monsieurp@gentoo \
    --to=monsieurp@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