1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
|
Index: util-vserver-0.30.210/distrib/Makefile.am
===================================================================
--- util-vserver-0.30.210.orig/distrib/Makefile.am
+++ util-vserver-0.30.210/distrib/Makefile.am
@@ -40,13 +40,16 @@ nobase_distrib_DATA = defaults/devs \
fc1/apt/rpmpriorities fc1/pkgs/01 fc1/pkgs/02 \
fc2/apt/rpmpriorities fc2/pkgs/01 fc2/pkgs/02 \
fc3/apt/rpmpriorities fc3/pkgs/01 fc3/pkgs/02 fc3/pkgs/03 \
- fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/fedora*.repo) \
+ fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/*.repo) \
$(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
fc4/apt/rpmpriorities fc4/pkgs/01 fc4/pkgs/02 fc4/pkgs/03 \
- fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/fedora*.repo) \
+ fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/*.repo) \
$(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \
+ fc5/apt/rpmpriorities fc5/pkgs/01 fc5/pkgs/02 fc5/pkgs/03 \
+ fc5/yum/yum.conf $(wildcard fc5/yum.repos.d/*.repo) \
+ $(wildcard fc5/rpmlist.d/*.lst) $(wildcard fc5/rpmlist.d/*.opt) \
centos42/pkgs/01 centos42/pkgs/02 centos42/pkgs/03 \
- centos42/yum/yum.conf $(wildcard centos42/yum.repos.d/CentOS*.repo) \
+ centos42/yum/yum.conf $(wildcard centos42/yum.repos.d/*.repo) \
suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
suse91/rpm/macros
@@ -65,7 +68,7 @@ EXTRA_DIST = $(nobase_distrib_DATA) \
$(nobase_confdistrib_DATA) \
$(defaults_DATA)
-redhat_style = rh9 fc1 fc2 fc3 fc4 centos42
+redhat_style = rh9 fc1 fc2 fc3 fc4 fc5 centos42
install-exec-hook: install-notify-xtra
install-data-hook: install-data-xtras
Index: util-vserver-0.30.210/distrib/centos42/pkgs/03
===================================================================
--- util-vserver-0.30.210.orig/distrib/centos42/pkgs/03
+++ util-vserver-0.30.210/distrib/centos42/pkgs/03
@@ -1,2 +1,5 @@
coreutils
setup
+vps-dev
+vps-fakekernel
+vps-fakepackages
Index: util-vserver-0.30.210/distrib/centos42/yum.repos.d/cru-vps.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/centos42/yum.repos.d/cru-vps.repo
@@ -0,0 +1,5 @@
+[cru-vps]
+name=Cru APT Repository for CentOS 4 vservers
+baseurl=http://mirror.naturidentisch.de/yum/centos4-vps/
+gpgcheck=1
+gpgkey=http://naturidentisch.de/packages/cru.asc
Index: util-vserver-0.30.210/distrib/fc4/pkgs/03
===================================================================
--- util-vserver-0.30.210.orig/distrib/fc4/pkgs/03
+++ util-vserver-0.30.210/distrib/fc4/pkgs/03
@@ -1,2 +1,5 @@
coreutils
setup
+vps-dev
+vps-fakekernel
+vps-fakepackages
Index: util-vserver-0.30.210/distrib/fc4/yum.repos.d/cru-vps.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc4/yum.repos.d/cru-vps.repo
@@ -0,0 +1,5 @@
+[cru-vps]
+name=Cru APT Repository for Fedora 4 vservers
+baseurl=http://mirror.naturidentisch.de/yum/fc4-vps/
+gpgcheck=1
+gpgkey=http://naturidentisch.de/packages/cru.asc
Index: util-vserver-0.30.210/distrib/fc5/apt/rpmpriorities
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/apt/rpmpriorities
@@ -0,0 +1,7 @@
+Essential:
+ basesystem
+ coreutils
+ filesystem
+ glibc
+ setup
+ fedora-release
Index: util-vserver-0.30.210/distrib/fc5/apt/sources.list
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/apt/sources.list
@@ -0,0 +1,7 @@
+# rpm http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/fedora/core/.apt 3/i386 os patches updates
+
+# rpm ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
+# rpm ftp://ftp.tu-chemnitz.de/pub/linux/fedora/fedora 3/i386 os updates
+# rpm http://mirrors.usc.edu/pub/linux/fedora/fedora/fedora 3/i386 os updates
+# rpm http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/fedora 3/i386 os updates
+# rpm http://download.fedora.us/fedora/fedora 3/i386 os updates
Index: util-vserver-0.30.210/distrib/fc5/pkgs/01
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/pkgs/01
@@ -0,0 +1 @@
+glibc
Index: util-vserver-0.30.210/distrib/fc5/pkgs/02
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/pkgs/02
@@ -0,0 +1,3 @@
+--reinstall
+
+filesystem
Index: util-vserver-0.30.210/distrib/fc5/pkgs/03
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/pkgs/03
@@ -0,0 +1,5 @@
+coreutils
+initscripts
+vps-dev
+vps-fakekernel
+vps-fakepackages
Index: util-vserver-0.30.210/distrib/fc5/rpmlist.d/00.lst
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/rpmlist.d/00.lst
@@ -0,0 +1,7 @@
+basesystem-*.rpm
+filesystem-*.rpm
+glibc-common-*.rpm
+glibc-[0-9]*.rpm
+libgcc-[0-9]*.rpm
+setup-*.rpm
+tzdata-*.rpm
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/cru-fc5-vps.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/cru-fc5-vps.repo
@@ -0,0 +1,6 @@
+[cru-vps]
+name=Cru APT Repository for Fedora Core 5 vservers
+baseurl=http://mirror.naturidentisch.de/yum/fc5-vps/
+enabled=1
+gpgcheck=1
+gpgkey=http://naturidentisch.de/packages/cru.asc
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-core.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-core.repo
@@ -0,0 +1,21 @@
+[core]
+name=Fedora Core 5 - $basearch
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/$basearch/os/
+mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-5
+enabled=1
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
+
+[core-debuginfo]
+name=Fedora Core 5 - $basearch - Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/$basearch/debug/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
+
+[core-source]
+name=Fedora Core 5 - Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-development.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-development.repo
@@ -0,0 +1,44 @@
+# These packages are untested and still under development. This
+# repository is used for updates to test releases, and for
+# development of new releases.
+#
+# This repository can see significant daily turnover and major
+# functionality changes which cause unexpected problems with other
+# development packages. Please use these packages if you want to work
+# with the Fedora developers by testing these new development packages.
+#
+# fedora-test-list@redhat.com is available as a discussion forum for
+# testing and troubleshooting for development packages in conjunction
+# with new test releases.
+#
+# fedora-devel-list@redhat.com is available as a discussion forum for
+# testing and troubleshooting for development packages in conjunction
+# with developing new releases.
+#
+# More information is available at http://fedoraproject.org/wiki/Testing
+#
+# Reproducible and reportable issues should be filed at
+# http://bugzilla.redhat.com/.
+#
+# Product: Fedora Core
+# Version: devel
+
+[development]
+name=Fedora Core - Development
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
+mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-rawhide
+enabled=0
+gpgcheck=0
+
+[development-debuginfo]
+name=Fedora Core - Development - Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/debug/
+enabled=0
+gpgcheck=0
+
+[development-source]
+name=Fedora Core - Development - Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/
+enabled=0
+gpgcheck=0
+
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-extras-development.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-extras-development.repo
@@ -0,0 +1,21 @@
+[extras-development]
+name=Fedora Extras - Development Tree
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/
+mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-devel
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
+
+[extras-development-debuginfo]
+name=Fedora Extras - Development - Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/$basearch/debug/
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
+
+[extras-development-source]
+name=Fedora Extras - Development - Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-extras.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-extras.repo
@@ -0,0 +1,21 @@
+[extras]
+name=Fedora Extras 5 - $basearch
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/$basearch/
+mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-5
+enabled=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
+
+[extras-debuginfo]
+name=Fedora Extras 5 - $basearch - Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/$basearch/debug/
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
+
+[extras-source]
+name=Fedora Extras 5 - Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/5/SRPMS/
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
+gpgcheck=1
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-legacy.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-legacy.repo
@@ -0,0 +1,13 @@
+[legacy-updates]
+name=Fedora Legacy 5 - $basearch - Updates
+mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-released-fc5
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy
+
+[legacy-testing]
+name=Fedora Legacy 5 - $basearch - Updates Testing
+mirrorlist=http://fedora.redhat.com/download/mirrors/legacy-updates-testing-fc5
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-legacy
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-updates-testing.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-updates-testing.repo
@@ -0,0 +1,21 @@
+[updates-testing]
+name=Fedora Core 5 - $basearch - Test Updates
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/$basearch/
+mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc5
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
+
+[updates-testing-debuginfo]
+name=Fedora Core 5 - $basearch - Test Updates Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/$basearch/debug/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
+
+[updates-testing-source]
+name=Fedora Core 5 - Test Updates Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/SRPMS/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-test
Index: util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-updates.repo
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum.repos.d/fedora-updates.repo
@@ -0,0 +1,21 @@
+[updates]
+name=Fedora Core 5 - $basearch - Updates
+#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/$basearch/
+mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc5
+enabled=1
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
+
+[updates-debuginfo]
+name=Fedora Core 5 - $basearch - Updates - Debug
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/$basearch/debug/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
+
+[updates-source]
+name=Fedora Core 5 - Updates Source
+baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/SRPMS/
+enabled=0
+gpgcheck=1
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Index: util-vserver-0.30.210/distrib/fc5/yum/yum.conf
===================================================================
--- /dev/null
+++ util-vserver-0.30.210/distrib/fc5/yum/yum.conf
@@ -0,0 +1,10 @@
+[main]
+cachedir=@YUMCACHEDIR@
+reposdir=@YUMETCDIR@/yum.repos.d
+debuglevel=1
+logfile=@YUMLOGDIR@/log
+lockfile=@YUMLOCKDIR@/yum.pid
+pkgpolicy=newest
+distroverpkg=fedora-release
+installonlypkgs=
+exactarch=0
Index: util-vserver-0.30.210/distrib/redhat/initpost
===================================================================
--- util-vserver-0.30.210.orig/distrib/redhat/initpost
+++ util-vserver-0.30.210/distrib/redhat/initpost
@@ -52,7 +52,7 @@ $_VSERVER "$vserver" start --rescue bash
f=/tmp/startwait
trap "rm -f $f" EXIT
mkfifo $f
- ( sleep 10; kill -s 9 -- -1 ) &
+ ( sleep 15; kill -s 9 -- -1 ) &
cat "$f" >/dev/null
kill -s 9 -- -1
wait
Index: util-vserver-0.30.210/scripts/vyum-worker
===================================================================
--- util-vserver-0.30.210.orig/scripts/vyum-worker
+++ util-vserver-0.30.210/scripts/vyum-worker
@@ -39,8 +39,8 @@ test -z "$_YUM" || {
yum=${YUM:-yum}
conf=yum.conf
-case $(yum --version) in
- (2.[01234]*)
+case $($yum --version|tail -n 1) in
+ (2.[0123456]*)
python -c 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))' &>/dev/null || {
warning "\
You are using a version of yum which is insecure and broken in chroot
|