1 |
commit: 48b263e58650d1806699c58757b23d007b150904 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 13 06:56:13 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 13 06:57:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48b263e5 |
7 |
|
8 |
sys-cluster/util-vserver: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/680264 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 8 - |
14 |
sys-cluster/util-vserver/Manifest | 1 - |
15 |
sys-cluster/util-vserver/files/bash_completion | 300 --------------------- |
16 |
.../util-vserver-0.30.216_pre3120-dietlibc.patch | 23 -- |
17 |
...r-0.30.216_pre3120-vserver-init-functions.patch | 11 - |
18 |
sys-cluster/util-vserver/metadata.xml | 16 -- |
19 |
.../util-vserver-0.30.216_pre3120-r1.ebuild | 115 -------- |
20 |
.../util-vserver-0.30.216_pre3120.ebuild | 109 -------- |
21 |
8 files changed, 583 deletions(-) |
22 |
|
23 |
diff --git a/profiles/package.mask b/profiles/package.mask |
24 |
index 5e17f80595f..e0b51517a2b 100644 |
25 |
--- a/profiles/package.mask |
26 |
+++ b/profiles/package.mask |
27 |
@@ -722,14 +722,6 @@ app-arch/createrepo |
28 |
dev-python/pyliblzma |
29 |
sys-apps/yum |
30 |
|
31 |
-# Michał Górny <mgorny@g.o> (13 Mar 2019) |
32 |
-# Obscure package with multiple bugs open. Blocks removal |
33 |
-# of dev-libs/dietlibc (#498256) and dev-libs/beecrypt (#666599). |
34 |
-# Unresolved segfaults (#641112) or build failures (#650578), depending |
35 |
-# on the GCC version/profile. |
36 |
-# Removal in 30 days. Bug #680264. |
37 |
-sys-cluster/util-vserver |
38 |
- |
39 |
# Eray Aslan <eras@g.o> (01 Mar 2019) |
40 |
# Mask experimental software |
41 |
=mail-mta/postfix-3.5* |
42 |
|
43 |
diff --git a/sys-cluster/util-vserver/Manifest b/sys-cluster/util-vserver/Manifest |
44 |
deleted file mode 100644 |
45 |
index 7189e1ecda6..00000000000 |
46 |
--- a/sys-cluster/util-vserver/Manifest |
47 |
+++ /dev/null |
48 |
@@ -1 +0,0 @@ |
49 |
-DIST util-vserver-0.30.216-pre3120.tar.gz 990833 BLAKE2B a9227d4b4074300f188617c48ec7884f8cf34e8b2c2685eab7678b00fbca6ea5ad4bc9dd926f88e49633165b0402802a3077d029ee4c75447112705fdb41ca4c SHA512 eca7680a8b06fecd678b4dad5824c92b53d872b3e7ec9cc275425437fb7fcfb3991f58770096f20d8274e37927a39b64ed9db082ef806e76d0c603b2cd64ef32 |
50 |
|
51 |
diff --git a/sys-cluster/util-vserver/files/bash_completion b/sys-cluster/util-vserver/files/bash_completion |
52 |
deleted file mode 100644 |
53 |
index 73a9fef89f8..00000000000 |
54 |
--- a/sys-cluster/util-vserver/files/bash_completion |
55 |
+++ /dev/null |
56 |
@@ -1,300 +0,0 @@ |
57 |
-# Completion for the vserver command. Source this file (or on some systems |
58 |
-# add it to ~/.bash_completion and start a new shell) and bash's completion |
59 |
-# mechanism will know all about vserver's options! |
60 |
-# |
61 |
-# Copyright (C) Thomas Champagne <lafeuil@×××××.com> |
62 |
-# |
63 |
-# This program is free software; you can redistribute it and/or modify |
64 |
-# it under the terms of the GNU General Public License as published by |
65 |
-# the Free Software Foundation; either version 2, or (at your option) |
66 |
-# any later version. |
67 |
-# |
68 |
-# This program is distributed in the hope that it will be useful, |
69 |
-# but WITHOUT ANY WARRANTY; without even the implied warranty of |
70 |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
71 |
-# GNU General Public License for more details. |
72 |
-# |
73 |
-# You should have received a copy of the GNU General Public License |
74 |
-# along with this program; if not, write to the Free Software Foundation, |
75 |
-# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
76 |
-# |
77 |
-# The latest version of this software can be obtained here: |
78 |
-# |
79 |
-# http://linux-vserver.org/Vserver+Completion |
80 |
-# |
81 |
-# version 0.4.0 |
82 |
- |
83 |
-have vserver-info && { |
84 |
-: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO |grep prefix: | awk '{ print $2}')/lib/util-vserver/util-vserver-vars} |
85 |
- |
86 |
-test -e "$UTIL_VSERVER_VARS" && { |
87 |
- |
88 |
-. "$UTIL_VSERVER_VARS" |
89 |
-. "$_LIB_FUNCTIONS" |
90 |
- |
91 |
-_vserver() { |
92 |
- local cur cmds cmdOpts cmdMethodOpts helpCmds names names_pipe func i j method |
93 |
- |
94 |
- COMPREPLY=() |
95 |
- cur=${COMP_WORDS[COMP_CWORD]} |
96 |
- |
97 |
- # find available vServers: |
98 |
- # call function getAllVservers in vserver library |
99 |
- getAllVservers names |
100 |
- names_pipe=`echo ${names[@]} | sed 's/ /|/g'` |
101 |
- |
102 |
- # available commands |
103 |
- cmds='start stop restart condrestart suexec exec enter chkconfig \ |
104 |
- running status unify pkg apt-get apt-config apt-cache \ |
105 |
- rpm pkgmgmt delete' |
106 |
- |
107 |
- # options (long and short name) |
108 |
- cmdOpts='--help --version --debug --defaulttty -s --sync -v \ |
109 |
- --verbose --silent --' |
110 |
- |
111 |
- cmdMethodOpts='-m -n --context --confdir --lockfile \ |
112 |
- --hostname --netdev --netbcast --netmask \ |
113 |
- --netprefix --interface --cpuset \ |
114 |
- --cpusetcpus --cpusetmems --cpusetvirt \ |
115 |
- --initstyle --flags --help --' |
116 |
- |
117 |
- # if the previous option is a single option |
118 |
- helpCmds='--help|--version' |
119 |
- if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then |
120 |
- return 0 |
121 |
- fi |
122 |
- |
123 |
- # lookup the vServer name |
124 |
- for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do |
125 |
- if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then |
126 |
- # found it! |
127 |
- break |
128 |
- fi |
129 |
- done |
130 |
- |
131 |
- #a vserver has been found |
132 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) ; then |
133 |
- # Show the vserver command without build |
134 |
- case "${COMP_WORDS[i+1]}" in |
135 |
- start) |
136 |
- COMPREPLY=( $( compgen -W "--rescue --rescue-cmd" -- $cur ) ) |
137 |
- ;; |
138 |
- # No completion for apt-config |
139 |
- stop|restart|condrestart|enter|running|status|apt-config|delete) |
140 |
- ;; |
141 |
- suexec) |
142 |
- # I don't know how to do |
143 |
- COMPREPLY=( $( compgen -W -- $cur ) ) |
144 |
- ;; |
145 |
- exec) |
146 |
- #I don't know how to do |
147 |
- COMPREPLY=( $( compgen -W "" -- $cur ) ) |
148 |
- ;; |
149 |
- unify) |
150 |
- COMPREPLY=( $( compgen -W "-R" -- $cur ) ) |
151 |
- ;; |
152 |
- apt-get|apt-cache) |
153 |
- func=${COMP_WORDS[i+1]} |
154 |
- COMP_WORDS=( ${COMP_WORDS[@]:$((i+1))} ) |
155 |
- COMP_CWORD=$((COMP_CWORD-i-1)) |
156 |
- declare -f _${func//-/_} > /dev/null && _${func//-/_} |
157 |
- ;; |
158 |
- *) |
159 |
- COMPREPLY=( $( compgen -W "$cmds" -- $cur ) ) |
160 |
- ;; |
161 |
- esac |
162 |
- return 0 |
163 |
- else |
164 |
- #no vserver name found |
165 |
- prev=${COMP_WORDS[COMP_CWORD-1]} |
166 |
- |
167 |
- #search the new name of vserver |
168 |
- for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do |
169 |
- if [[ ${COMP_WORDS[i]} == !(vserver|-*) ]] ; then |
170 |
- # found it! |
171 |
- break |
172 |
- fi |
173 |
- done |
174 |
- |
175 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) ; then |
176 |
- j=$i |
177 |
- i=${#COMP_WORDS[@]} |
178 |
- for (( ; j < ${#COMP_WORDS[@]}-1; j++ )) ; do |
179 |
- if [[ ${COMP_WORDS[j]} == "--" ]]; then |
180 |
- # method's parameter |
181 |
- case "$method" in |
182 |
- legacy|copy) |
183 |
- ;; |
184 |
- apt-rpm) |
185 |
- COMPREPLY=( $( compgen -W "-d" -- $cur ) ) |
186 |
- ;; |
187 |
- yum) |
188 |
- COMPREPLY=( $( compgen -W "-d" -- $cur ) ) |
189 |
- ;; |
190 |
- rpm) |
191 |
- COMPREPLY=( $( compgen -W "-d --empty --force --nodeps" -- $cur ) ) |
192 |
- ;; |
193 |
- skeleton) |
194 |
- ;; |
195 |
- debootstrap) |
196 |
- COMPREPLY=( $( compgen -W "-d -m -s --" -- $cur ) ) |
197 |
- ;; |
198 |
- *) |
199 |
- ;; |
200 |
- esac |
201 |
- return 0 |
202 |
- break |
203 |
- fi |
204 |
- |
205 |
- if [[ ${COMP_WORDS[j]} == @(build|-m) ]]; then |
206 |
- i=$j |
207 |
- if (( $j+1 < ${#COMP_WORDS[@]}-1 )) ; then |
208 |
- method=${COMP_WORDS[j+1]} |
209 |
- fi |
210 |
- fi |
211 |
- done |
212 |
- |
213 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) ; then |
214 |
- case $prev in |
215 |
- --help) |
216 |
- ;; |
217 |
- -n|--context|--confdir|--lockfile|--hostname|--netdev|--netbcast|--netmask|--netprefix|--interface|--cpuset|--cpusetcpus|--cpusetmems|--cpusetvirt|--initstyle|--flags) |
218 |
- COMPREPLY=( $( compgen -W "" -- $cur ) ) |
219 |
- ;; |
220 |
- -m) |
221 |
- COMPREPLY=( $( compgen -W "legacy copy apt-rpm yum rpm skeleton debootstrap" -- $cur ) ) |
222 |
- ;; |
223 |
- *) |
224 |
- COMPREPLY=( $( compgen -W "$cmdMethodOpts" -- $cur ) ) |
225 |
- ;; |
226 |
- esac |
227 |
- else |
228 |
- COMPREPLY=( $( compgen -W "build" -- $cur ) ) |
229 |
- fi |
230 |
- else |
231 |
- COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) |
232 |
- fi |
233 |
- |
234 |
- return 0 |
235 |
- fi |
236 |
- |
237 |
- return 0 |
238 |
-} |
239 |
- |
240 |
-complete -F _vserver vserver |
241 |
- |
242 |
-_vapt_rpm_yum() |
243 |
-{ |
244 |
- local cur cmds cmdOpts helpCmds names func i |
245 |
- |
246 |
- COMPREPLY=() |
247 |
- cur=${COMP_WORDS[COMP_CWORD]} |
248 |
- |
249 |
- # options (long and short name) |
250 |
- cmdOpts='--help --version --quiet -q --all' |
251 |
- |
252 |
- # if the previous option is a single option |
253 |
- helpCmds='--help|--version' |
254 |
- |
255 |
- if [[ "${COMP_WORDS[1]}" == "@($helpCmds)" ]] ; then |
256 |
- return 0 |
257 |
- fi |
258 |
- |
259 |
- # search -- |
260 |
- for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do |
261 |
- if [[ ${COMP_WORDS[i]} = "--" ]] ; then |
262 |
- # found it! |
263 |
- break |
264 |
- fi |
265 |
- done |
266 |
- |
267 |
- # find available vServers |
268 |
- # call function getAllVservers in vserver library |
269 |
- getAllVservers names |
270 |
- names_pipe=`echo ${names[@]}" --all" | sed 's/ /|/g'` |
271 |
- |
272 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) && (( $i < $COMP_CWORD )) ; then |
273 |
- func=${COMP_WORDS[0]:1} |
274 |
- COMP_WORDS=( $func ${COMP_WORDS[@]:$((i+1))} ) |
275 |
- COMP_CWORD=$((COMP_CWORD-i)) |
276 |
- declare -f _${func//-/_} > /dev/null && _${func//-/_} |
277 |
- else |
278 |
- # search vServer name |
279 |
- for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )) ; do |
280 |
- if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then |
281 |
- # found it! |
282 |
- break |
283 |
- fi |
284 |
- done |
285 |
- |
286 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) ; then |
287 |
- if [[ "${COMP_WORDS[i]}" = "--all" ]] ; then |
288 |
- cmdOpts='--' |
289 |
- COMPREPLY=( $( compgen -W "$cmdOpts" -- $cur ) ) |
290 |
- else |
291 |
- cmdOpts='--' |
292 |
- COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) |
293 |
- fi |
294 |
- else |
295 |
- COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) |
296 |
- fi |
297 |
- fi |
298 |
- |
299 |
- return 0 |
300 |
-} |
301 |
- |
302 |
-_vserver_copy() |
303 |
-{ |
304 |
- local cur prev cmdOpts helpCmds confCmds names names_pipe i |
305 |
- |
306 |
- COMPREPLY=() |
307 |
- cur=${COMP_WORDS[COMP_CWORD]} |
308 |
- |
309 |
- # find available vServers |
310 |
- # call function getAllVservers in vserver library |
311 |
- getAllVservers names |
312 |
- names_pipe=`echo ${names[@]} | sed 's/ /|/g'` |
313 |
- |
314 |
- # options (long and short name) |
315 |
- cmdOpts='--help -h --version -V --verbose -v --quiet -q \ |
316 |
- --vsroot -r --rsh -R --stopstart -s \ |
317 |
- --domain -d --ip -i' |
318 |
- |
319 |
- # if the previous option is a single option |
320 |
- helpCmds='--help|-h|--version|-V' |
321 |
- |
322 |
- if [[ ${COMP_WORDS[1]} == @($helpCmds) ]] ; then |
323 |
- return 0 |
324 |
- fi |
325 |
- |
326 |
- confCmds='--ip|-i|--domain|-d' |
327 |
- prev=${COMP_WORDS[COMP_CWORD-1]} |
328 |
- |
329 |
- if [[ $prev == @($confCmds) ]] ; then |
330 |
- return 0 |
331 |
- fi |
332 |
- |
333 |
- # search a vServer name |
334 |
- for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do |
335 |
- if [[ ${COMP_WORDS[i]} == @($names_pipe) ]] ; then |
336 |
- # found it! |
337 |
- break |
338 |
- fi |
339 |
- done |
340 |
- |
341 |
- if (( $i < ${#COMP_WORDS[@]}-1 )) ; then |
342 |
- return 0 |
343 |
- else |
344 |
- COMPREPLY=( $( compgen -W "${names[@]} $cmdOpts" -- $cur ) ) |
345 |
- fi |
346 |
- |
347 |
- return 0 |
348 |
-} |
349 |
- |
350 |
-complete -F _vapt_rpm_yum vapt-get |
351 |
-complete -F _vapt_rpm_yum vrpm |
352 |
-complete -F _vapt_rpm_yum vyum |
353 |
-complete -F _vserver_copy vserver-copy |
354 |
- |
355 |
-} |
356 |
-} |
357 |
|
358 |
diff --git a/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch b/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch |
359 |
deleted file mode 100644 |
360 |
index cde8ccc500a..00000000000 |
361 |
--- a/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-dietlibc.patch |
362 |
+++ /dev/null |
363 |
@@ -1,23 +0,0 @@ |
364 |
-diff -puriN util-vserver-0.30.216-pre3120.orig/lib_internal/util-cleanupmount.c util-vserver-0.30.216-pre3120/lib_internal/util-cleanupmount.c |
365 |
---- util-vserver-0.30.216-pre3120.orig/lib_internal/util-cleanupmount.c 2015-05-30 10:18:50.000000000 -0500 |
366 |
-+++ util-vserver-0.30.216-pre3120/lib_internal/util-cleanupmount.c 2019-02-19 02:36:55.000000000 -0600 |
367 |
-@@ -22,7 +22,6 @@ |
368 |
- |
369 |
- #include <stdio.h> |
370 |
- #include <sys/mount.h> |
371 |
--#include <linux/fs.h> |
372 |
- |
373 |
- #ifndef MS_REC |
374 |
- #define MS_REC 0x4000 |
375 |
-diff -puriN util-vserver-0.30.216-pre3120.orig/src/secure-mount.c util-vserver-0.30.216-pre3120/src/secure-mount.c |
376 |
---- util-vserver-0.30.216-pre3120.orig/src/secure-mount.c 2015-05-30 10:18:50.000000000 -0500 |
377 |
-+++ util-vserver-0.30.216-pre3120/src/secure-mount.c 2019-02-19 02:37:17.000000000 -0600 |
378 |
-@@ -46,7 +46,7 @@ |
379 |
- #include <sys/stat.h> |
380 |
- #include <sys/types.h> |
381 |
- #include <sys/file.h> |
382 |
--#include <linux/fs.h> |
383 |
-+#include <limits.h> |
384 |
- #include <assert.h> |
385 |
- #include <ctype.h> |
386 |
- #include <sys/wait.h> |
387 |
|
388 |
diff --git a/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-vserver-init-functions.patch b/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-vserver-init-functions.patch |
389 |
deleted file mode 100644 |
390 |
index 9026ba07c96..00000000000 |
391 |
--- a/sys-cluster/util-vserver/files/util-vserver-0.30.216_pre3120-vserver-init-functions.patch |
392 |
+++ /dev/null |
393 |
@@ -1,11 +0,0 @@ |
394 |
---- a/scripts/vserver-init.functions 2019-02-20 07:54:16.747585681 +0000 |
395 |
-+++ b/scripts/vserver-init.functions 2019-02-20 07:54:31.457661349 +0000 |
396 |
-@@ -80,7 +80,7 @@ |
397 |
- |
398 |
- function create_dirs() |
399 |
- { |
400 |
-- $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p `$_READLINK "$__PKGSTATEREVDIR"` |
401 |
-+ $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p "$__PKGCACHEDIR" && $_MKDIR -p `$_READLINK "$__PKGSTATEREVDIR"` |
402 |
- } |
403 |
- |
404 |
- function mount_cgroup() |
405 |
|
406 |
diff --git a/sys-cluster/util-vserver/metadata.xml b/sys-cluster/util-vserver/metadata.xml |
407 |
deleted file mode 100644 |
408 |
index 39c113a225e..00000000000 |
409 |
--- a/sys-cluster/util-vserver/metadata.xml |
410 |
+++ /dev/null |
411 |
@@ -1,16 +0,0 @@ |
412 |
-<?xml version="1.0" encoding="UTF-8"?> |
413 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
414 |
-<pkgmetadata> |
415 |
- <maintainer type="person"> |
416 |
- <email>monsieurp@g.o</email> |
417 |
- <name>Patrice Clement</name> |
418 |
- </maintainer> |
419 |
- <longdescription> |
420 |
- util-vserver is a Linux virtual server utility framework, |
421 |
- allowing an administrator to set up multiple, isolated |
422 |
- virtual servers. It can be used to run various services |
423 |
- securely separated, without requiring special configuration. |
424 |
- Virtual servers are unable to interact with each other, or |
425 |
- the main server. |
426 |
- </longdescription> |
427 |
-</pkgmetadata> |
428 |
|
429 |
diff --git a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild b/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild |
430 |
deleted file mode 100644 |
431 |
index b64a51e5272..00000000000 |
432 |
--- a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild |
433 |
+++ /dev/null |
434 |
@@ -1,115 +0,0 @@ |
435 |
-# Copyright 1999-2019 Gentoo Authors |
436 |
-# Distributed under the terms of the GNU General Public License v2 |
437 |
- |
438 |
-EAPI=6 |
439 |
- |
440 |
-inherit eutils bash-completion-r1 |
441 |
- |
442 |
-MY_P="${P/_/-}" |
443 |
- |
444 |
-DESCRIPTION="Linux-VServer admin utilities" |
445 |
-HOMEPAGE="http://www.nongnu.org/util-vserver/" |
446 |
-SRC_URI="http://people.linux-vserver.org/~dhozac/t/uv-testing/${MY_P}.tar.gz" |
447 |
- |
448 |
-LICENSE="GPL-2" |
449 |
-SLOT="0" |
450 |
-KEYWORDS="~alpha ~amd64 ~x86" |
451 |
- |
452 |
-CDEPEND=" |
453 |
- net-misc/vconfig |
454 |
- dev-libs/beecrypt |
455 |
- sys-apps/iproute2 |
456 |
- net-firewall/iptables" |
457 |
- |
458 |
-DEPEND=" |
459 |
- ${CDEPEND} |
460 |
- >dev-libs/dietlibc-0.33" |
461 |
- |
462 |
-RDEPEND=" |
463 |
- ${CDEPEND}" |
464 |
- |
465 |
-S="${WORKDIR}/${MY_P}" |
466 |
- |
467 |
-PATCHES=( |
468 |
- "${FILESDIR}/${P}-vserver-init-functions.patch" |
469 |
- "${FILESDIR}/${P}-dietlibc.patch" |
470 |
-) |
471 |
- |
472 |
-DOCS=( README ChangeLog NEWS AUTHORS THANKS util-vserver.spec ) |
473 |
- |
474 |
-pkg_setup() { |
475 |
- if [[ -z "${VDIRBASE}" ]]; then |
476 |
- einfo |
477 |
- einfo "You can change the default vserver base directory (/vservers)" |
478 |
- einfo "by setting the VDIRBASE environment variable." |
479 |
- fi |
480 |
- |
481 |
- : ${VDIRBASE:=/vservers} |
482 |
- |
483 |
- einfo |
484 |
- einfo "Using \"${VDIRBASE}\" as vserver base directory" |
485 |
- einfo |
486 |
-} |
487 |
- |
488 |
-src_test() { |
489 |
- # do not use $D from portage by accident (#297982) |
490 |
- sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh || die |
491 |
- |
492 |
- default |
493 |
-} |
494 |
- |
495 |
-src_configure() { |
496 |
- local myeconf=( |
497 |
- --with-vrootdir="${VDIRBASE}" |
498 |
- --with-initscripts=gentoo |
499 |
- --localstatedir=/var |
500 |
- ) |
501 |
- |
502 |
- econf "${myeconf[@]}" |
503 |
-} |
504 |
- |
505 |
-src_compile() { |
506 |
- emake -j1 |
507 |
-} |
508 |
- |
509 |
-src_install() { |
510 |
- make DESTDIR="${D}" install install-distribution || die |
511 |
- |
512 |
- # remove runtime paths |
513 |
- rm -r "${D}"/var/run || die |
514 |
- rm -r "${D}"/var/cache || die |
515 |
- |
516 |
- # keep dirs |
517 |
- keepdir "${VDIRBASE}" |
518 |
- keepdir "${VDIRBASE}"/.pkg |
519 |
- |
520 |
- # bash-completion |
521 |
- newbashcomp "${FILESDIR}"/bash_completion ${PN} |
522 |
-} |
523 |
- |
524 |
-pkg_postinst() { |
525 |
- # Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also |
526 |
- # present when merging. |
527 |
- mkdir -p "${VDIRBASE}" || die |
528 |
- if ! setattr --barrier "${VDIRBASE}"; then |
529 |
- ewarn "Filesystem on ${VDIRBASE} does not support chroot barriers." |
530 |
- ewarn "Chroot barrier is additional security measure that is used" |
531 |
- ewarn "when two vservers or the host system share the same filesystem." |
532 |
- ewarn "If you intend to use separate filesystem for every vserver" |
533 |
- ewarn "you can safely ignore this warning." |
534 |
- ewarn "To manually apply a barrier use: setattr --barrier ${VDIRBASE}" |
535 |
- ewarn "For details see: http://linux-vserver.org/Secure_chroot_Barrier" |
536 |
- fi |
537 |
- |
538 |
- rm /etc/vservers/.defaults/vdirbase || die |
539 |
- ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die |
540 |
- |
541 |
- elog |
542 |
- elog "You have to run the vprocunhide command after every reboot" |
543 |
- elog "in order to setup /proc permissions correctly for vserver" |
544 |
- elog "use. An init script has been installed by this package." |
545 |
- elog "To use it you should add it to a runlevel:" |
546 |
- elog |
547 |
- elog " rc-update add vprocunhide default" |
548 |
- elog |
549 |
-} |
550 |
|
551 |
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 |
552 |
deleted file mode 100644 |
553 |
index f78cde235aa..00000000000 |
554 |
--- a/sys-cluster/util-vserver/util-vserver-0.30.216_pre3120.ebuild |
555 |
+++ /dev/null |
556 |
@@ -1,109 +0,0 @@ |
557 |
-# Copyright 1999-2018 Gentoo Authors |
558 |
-# Distributed under the terms of the GNU General Public License v2 |
559 |
- |
560 |
-EAPI=5 |
561 |
- |
562 |
-inherit eutils bash-completion-r1 |
563 |
- |
564 |
-MY_P="${P/_/-}" |
565 |
- |
566 |
-DESCRIPTION="Linux-VServer admin utilities" |
567 |
-HOMEPAGE="http://www.nongnu.org/util-vserver/" |
568 |
-SRC_URI="http://people.linux-vserver.org/~dhozac/t/uv-testing/${MY_P}.tar.gz" |
569 |
- |
570 |
-LICENSE="GPL-2" |
571 |
-SLOT="0" |
572 |
-KEYWORDS="~alpha amd64 x86" |
573 |
- |
574 |
-CDEPEND=" |
575 |
- dev-libs/beecrypt |
576 |
- net-firewall/iptables |
577 |
- net-misc/vconfig |
578 |
- sys-apps/iproute2" |
579 |
- |
580 |
-DEPEND=" |
581 |
- ${CDEPEND} |
582 |
- >dev-libs/dietlibc-0.33" |
583 |
- |
584 |
-RDEPEND=" |
585 |
- ${CDEPEND}" |
586 |
- |
587 |
-S="${WORKDIR}/${MY_P}" |
588 |
- |
589 |
-pkg_setup() { |
590 |
- if [[ -z "${VDIRBASE}" ]]; then |
591 |
- einfo |
592 |
- einfo "You can change the default vserver base directory (/vservers)" |
593 |
- einfo "by setting the VDIRBASE environment variable." |
594 |
- fi |
595 |
- |
596 |
- : ${VDIRBASE:=/vservers} |
597 |
- |
598 |
- einfo |
599 |
- einfo "Using \"${VDIRBASE}\" as vserver base directory" |
600 |
- einfo |
601 |
-} |
602 |
- |
603 |
-src_test() { |
604 |
- # do not use $D from portage by accident (#297982) |
605 |
- sed -i -e 's/^\$D //' "${S}"/src/testsuite/vunify-test.sh || die |
606 |
- |
607 |
- default |
608 |
-} |
609 |
- |
610 |
-src_configure() { |
611 |
- local myeconf=( |
612 |
- --with-vrootdir="${VDIRBASE}" |
613 |
- --with-initscripts=gentoo |
614 |
- --localstatedir=/var |
615 |
- ) |
616 |
- |
617 |
- econf "${myeconf[@]}" |
618 |
-} |
619 |
- |
620 |
-src_compile() { |
621 |
- emake -j1 || die "emake failed!" |
622 |
-} |
623 |
- |
624 |
-src_install() { |
625 |
- make DESTDIR="${D}" install install-distribution \ |
626 |
- || die "make install failed!" |
627 |
- |
628 |
- # keep dirs |
629 |
- keepdir /var/cache/vservers |
630 |
- keepdir "${VDIRBASE}" |
631 |
- keepdir "${VDIRBASE}"/.pkg |
632 |
- |
633 |
- # bash-completion |
634 |
- newbashcomp "${FILESDIR}"/bash_completion ${PN} |
635 |
- |
636 |
- dodoc README ChangeLog NEWS AUTHORS THANKS util-vserver.spec |
637 |
-} |
638 |
- |
639 |
-pkg_postinst() { |
640 |
- # Create VDIRBASE in postinst, so it is (a) not unmerged and (b) also |
641 |
- # present when merging. |
642 |
- |
643 |
- mkdir -p "${VDIRBASE}" || die |
644 |
- if ! setattr --barrier "${VDIRBASE}"; then |
645 |
- ewarn "Filesystem on ${VDIRBASE} does not support chroot barriers." |
646 |
- ewarn "Chroot barrier is additional security measure that is used" |
647 |
- ewarn "when two vservers or the host system share the same filesystem." |
648 |
- ewarn "If you intend to use separate filesystem for every vserver" |
649 |
- ewarn "you can safely ignore this warning." |
650 |
- ewarn "To manually apply a barrier use: setattr --barrier ${VDIRBASE}" |
651 |
- ewarn "For details see: http://linux-vserver.org/Secure_chroot_Barrier" |
652 |
- fi |
653 |
- |
654 |
- rm /etc/vservers/.defaults/vdirbase || die |
655 |
- ln -sf "${VDIRBASE}" /etc/vservers/.defaults/vdirbase || die |
656 |
- |
657 |
- elog |
658 |
- elog "You have to run the vprocunhide command after every reboot" |
659 |
- elog "in order to setup /proc permissions correctly for vserver" |
660 |
- elog "use. An init script has been installed by this package." |
661 |
- elog "To use it you should add it to a runlevel:" |
662 |
- elog |
663 |
- elog " rc-update add vprocunhide default" |
664 |
- elog |
665 |
-} |