1 |
commit: 7fa3fadde8fa6ed0e86a6db6df57de98b594719e |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 3 09:24:32 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 09:24:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa3fadd |
7 |
|
8 |
sys-cluster/util-vserver: Housekeeping. Add missing dies. |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../util-vserver-0.30.216_pre3120.ebuild | 32 ++++++++++++++-------- |
13 |
1 file changed, 20 insertions(+), 12 deletions(-) |
14 |
|
15 |
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 |
16 |
index 79bea53..fab02ae 100644 |
17 |
--- a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild |
18 |
+++ b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild |
19 |
@@ -6,8 +6,7 @@ EAPI=5 |
20 |
|
21 |
inherit eutils bash-completion-r1 |
22 |
|
23 |
-MY_P=${P/_/-} |
24 |
-S="${WORKDIR}"/${MY_P} |
25 |
+MY_P="${P/_/-}" |
26 |
|
27 |
DESCRIPTION="Linux-VServer admin utilities" |
28 |
HOMEPAGE="http://www.nongnu.org/util-vserver/" |
29 |
@@ -19,16 +18,20 @@ KEYWORDS="~alpha amd64 ~sparc x86" |
30 |
|
31 |
IUSE="" |
32 |
|
33 |
-CDEPEND="dev-libs/beecrypt |
34 |
+CDEPEND=" |
35 |
+ dev-libs/beecrypt |
36 |
net-firewall/iptables |
37 |
net-misc/vconfig |
38 |
sys-apps/iproute2" |
39 |
|
40 |
-DEPEND=">dev-libs/dietlibc-0.33 |
41 |
- ${CDEPEND}" |
42 |
+DEPEND=" |
43 |
+ ${CDEPEND} |
44 |
+ >dev-libs/dietlibc-0.33" |
45 |
|
46 |
RDEPEND="${CDEPEND}" |
47 |
|
48 |
+S="${WORKDIR}/${MY_P}" |
49 |
+ |
50 |
pkg_setup() { |
51 |
if [[ -z "${VDIRBASE}" ]]; then |
52 |
einfo |
53 |
@@ -45,14 +48,19 @@ pkg_setup() { |
54 |
|
55 |
src_test() { |
56 |
# do not use $D from portage by accident (#297982) |
57 |
- sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh |
58 |
+ sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh || die |
59 |
+ |
60 |
default |
61 |
} |
62 |
|
63 |
src_configure() { |
64 |
- econf --with-vrootdir=${VDIRBASE} \ |
65 |
- --with-initscripts=gentoo \ |
66 |
+ local myeconf=( |
67 |
+ --with-vrootdir="${VDIRBASE}" |
68 |
+ --with-initscripts=gentoo |
69 |
--localstatedir=/var |
70 |
+ ) |
71 |
+ |
72 |
+ econf "${myeconf[@]}" |
73 |
} |
74 |
|
75 |
src_compile() { |
76 |
@@ -78,11 +86,11 @@ pkg_postinst() { |
77 |
# Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also |
78 |
# present when merging. |
79 |
|
80 |
- mkdir -p "${VDIRBASE}" |
81 |
- setattr --barrier "${VDIRBASE}" |
82 |
+ mkdir -p "${VDIRBASE}" || die |
83 |
+ setattr --barrier "${VDIRBASE}" || die |
84 |
|
85 |
- rm /etc/vservers/.defaults/vdirbase |
86 |
- ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase |
87 |
+ rm /etc/vservers/.defaults/vdirbase || die |
88 |
+ ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die |
89 |
|
90 |
elog |
91 |
elog "You have to run the vprocunhide command after every reboot" |