]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver-0.30.210-delete.patch
- sorted BRs
[packages/util-vserver.git] / util-vserver-0.30.210-delete.patch
1 diff -Nurp util-vserver-0.30.210.orig/contrib/manifest.dat.pathsubst util-vserver-0.30.210.delete/contrib/manifest.dat.pathsubst
2 --- util-vserver-0.30.210.orig/contrib/manifest.dat.pathsubst   2006-01-21 22:34:46.000000000 +0100
3 +++ util-vserver-0.30.210.delete/contrib/manifest.dat.pathsubst 2006-03-25 00:33:26.000000000 +0100
4 @@ -18,6 +18,7 @@ base   @PKGLIBDIR@/vserver.start
5  @ENSC_HAVE_C99_COMPILER_TRUE@base   @PKGLIBDIR@/vserver.start.bin
6  base   @PKGLIBDIR@/vserver.stop
7  base   @PKGLIBDIR@/vserver.suexec
8 +base   @PKGLIBDIR@/vserver.delete
9  core   @PKGLIBDIR@/util-vserver-vars
10  build  @PKGLIBDIR@/rpm-fake.so
11  legacy @LEGACYDIR@/save_s_context
12 diff -Nurp util-vserver-0.30.210.orig/Makefile.in util-vserver-0.30.210.delete/Makefile.in
13 --- util-vserver-0.30.210.orig/Makefile.in      2006-01-22 20:33:21.000000000 +0100
14 +++ util-vserver-0.30.210.delete/Makefile.in    2006-04-10 23:29:34.000000000 +0200
15 @@ -1927,7 +1927,8 @@ scripts_pkglib_src_DTA = scripts/functio
16                                 scripts/vserver.functions \
17                                 scripts/vserver.start \
18                                 scripts/vserver.stop \
19 -                               scripts/vserver.suexec
20 +                               scripts/vserver.suexec \
21 +                               scripts/vserver.delete
22  
23  scripts_pkglib_gen_DTA = scripts/util-vserver-vars
24  scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
25 diff -Nurp util-vserver-0.30.210.orig/scripts/Makefile-files util-vserver-0.30.210.delete/scripts/Makefile-files
26 --- util-vserver-0.30.210.orig/scripts/Makefile-files   2005-04-28 19:45:34.000000000 +0200
27 +++ util-vserver-0.30.210.delete/scripts/Makefile-files 2006-03-25 00:31:07.000000000 +0100
28 @@ -52,7 +52,8 @@ scripts_pkglib_src_DTA =      scripts/functio
29                                 scripts/vserver.functions \
30                                 scripts/vserver.start \
31                                 scripts/vserver.stop \
32 -                               scripts/vserver.suexec
33 +                               scripts/vserver.suexec \
34 +                               scripts/vserver.delete
35  
36  scripts_pkglib_gen_DTA =       scripts/util-vserver-vars
37  
38 diff -Nurp util-vserver-0.30.210.orig/scripts/vserver util-vserver-0.30.210.delete/scripts/vserver
39 --- util-vserver-0.30.210.orig/scripts/vserver  2005-10-28 20:29:00.000000000 +0200
40 +++ util-vserver-0.30.210.delete/scripts/vserver        2006-03-23 23:07:03.000000000 +0100
41 @@ -57,6 +57,7 @@ Possible commands are:
42  
43      build <buildopts>*
44                  ... builds a new vserver from scratch
45 +    delete      ... remove a vserver
46  
47      unify [-R]
48                 ... (de)unify vserver
49 @@ -199,7 +200,7 @@ test "$2" != start -o -n "$OPTION_NONAME
50  
51  . $__PKGLIBDIR/vserver.functions
52  case "$2" in
53 -    (start|stop)
54 +    (start|stop|delete)
55         shift 2
56         . $__PKGLIBDIR/vserver.$cmd
57         ;;
58 diff -Nurp util-vserver-0.30.210.orig/scripts/vserver.delete util-vserver-0.30.210.delete/scripts/vserver.delete
59 --- util-vserver-0.30.210.orig/scripts/vserver.delete   1970-01-01 01:00:00.000000000 +0100
60 +++ util-vserver-0.30.210.delete/scripts/vserver.delete 2006-03-25 00:49:35.000000000 +0100
61 @@ -0,0 +1,34 @@
62 +#! /bin/bash
63 +# $Id$
64 +
65 +# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
66 +#  
67 +# This program is free software; you can redistribute it and/or modify
68 +# it under the terms of the GNU General Public License as published by
69 +# the Free Software Foundation; version 2 of the License.
70 +#  
71 +# This program is distributed in the hope that it will be useful,
72 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
73 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
74 +# GNU General Public License for more details.
75 +#  
76 +# You should have received a copy of the GNU General Public License
77 +# along with this program; if not, write to the Free Software
78 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
79 +
80 +. "$_LIB_VSERVER_BUILD_FUNCTIONS"
81 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
82 +
83 +if test -z "$OPTION_SILENT" ; then
84 +    read -p "Are you sure you want to delete the vserver $vserver (y/N) " deleteok
85 +    if [[ ${deleteok} != [Yy] ]]; then
86 +       exit 2
87 +    fi
88 +fi
89 +
90 +isVserverRunning "$VSERVER_DIR" &&
91 +    "${SELF[@]}" $OPTION_SILENT --sync "$vserver" stop
92 +
93 +base.init
94 +pkgmgmt.initVariables
95 +rm -rf "`readlink -f "$VSERVER_DIR"/vdir`" "$VSERVER_DIR" "$PKGCFGDIR"
This page took 0.080954 seconds and 3 git commands to generate.