]> git.pld-linux.org Git - packages/util-vserver.git/blame - util-vserver-pld.patch
- kill really unneccessary poldek configs
[packages/util-vserver.git] / util-vserver-pld.patch
CommitLineData
521e98dd
AM
1--- util-vserver-0.30.214.org/distrib/Makefile.am 2007-09-02 22:06:42.000000000 +0200
2+++ util-vserver-0.30.214/distrib/Makefile.am 2007-11-15 23:20:48.177838628 +0100
21e9a651 3@@ -73,7 +73,13 @@
67457f13 4 breezy/debootstrap.script dapper/debootstrap.script \
5 edgy/debootstrap.script feisty/debootstrap.script \
6 gutsy/debootstrap.script hoary/debootstrap.script \
7- warty/debootstrap.script
8+ warty/debootstrap.script \
9+ pld-ac/pkgs/01 pld-ac/rpm/macros \
909684f7 10+ pld-ac/rpmlist.d/00.lst \
21e9a651 11+ pld-th/pkgs/01 pld-th/rpm/macros \
12+ pld-th/rpmlist.d/00.lst \
13+ pld-ti/pkgs/01 pld-ti/rpm/macros \
14+ pld-ti/rpmlist.d/00.lst
e7229914
JR
15
16 nobase_confdistrib_DATA = rh9/apt/sources.list \
17 fc1/apt/sources.list \
21e9a651 18@@ -83,7 +89,23 @@
fe9ea50c 19 fc5/apt/sources.list \
20 fc6/apt/sources.list \
67457f13 21 f7/apt/sources.list \
4fadbbef
JR
22- suse91/apt/sources.list
23+ suse91/apt/sources.list \
24+ pld-ac/poldek/aliases.conf \
25+ pld-ac/poldek/fetch.conf \
26+ pld-ac/poldek/pld-source.conf \
27+ pld-ac/poldek/poldek.conf \
909684f7
AM
28+ pld-ac/poldek/source.conf \
29+ pld-th/poldek/aliases.conf \
30+ pld-th/poldek/fetch.conf \
31+ pld-th/poldek/pld-source.conf \
32+ pld-th/poldek/poldek.conf \
21e9a651 33+ pld-th/poldek/source.conf \
34+ pld-ti/poldek/aliases.conf \
35+ pld-ti/poldek/fetch.conf \
36+ pld-ti/poldek/pld-source.conf \
37+ pld-ti/poldek/poldek.conf \
38+ pld-ti/poldek/source.conf
fe9ea50c 39+
4fadbbef
JR
40
41 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
42 = $(nobase_distrib_SCRIPTS)
521e98dd
AM
43--- util-vserver-0.30.214.org/distrib/pld-ac/pkgs/01 1970-01-01 01:00:00.000000000 +0100
44+++ util-vserver-0.30.214/distrib/pld-ac/pkgs/01 2007-11-15 23:20:48.181172125 +0100
34158836 45@@ -0,0 +1,5 @@
452506e7 46+basesystem
e7229914 47+glibc
4e5a2018 48+issue
f5f1d176 49+rpm-base
34158836 50+vserver-packages
521e98dd
AM
51--- util-vserver-0.30.214.org/distrib/pld-ac/poldek/pld-source.conf 1970-01-01 01:00:00.000000000 +0100
52+++ util-vserver-0.30.214/distrib/pld-ac/poldek/pld-source.conf 2007-11-15 23:20:48.181172125 +0100
7eb65750 53@@ -0,0 +1,44 @@
4fadbbef
JR
54+# $Id$
55+# PLD <http://www.pld-linux.org/>
56+
57+_pld_arch = %ARCH%
58+_pld_prefix = ftp://ftp.ac.pld-linux.org/dists/ac
59+## Some mirrors
60+## You can use them if you have better connection there
61+# CI TASK:
62+#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/ac
63+
64+
65+_ac_idxtype = pndir
66+
67+# PLD 2.0 (Ac)
68+[source]
69+type = %{_ac_idxtype}
70+name = ac
71+path = %{_pld_prefix}/PLD/%{_pld_arch}/PLD/RPMS/
7eb65750 72+#signed = yes
4fadbbef
JR
73+
74+[source]
75+type = %{_ac_idxtype}
7eb65750
ER
76+name = ac-updates
77+path = %{_pld_prefix}/updates/%{_pld_arch}/
78+#signed = yes
4fadbbef
JR
79+
80+[source]
81+type = %{_ac_idxtype}
82+name = ac-supported
83+path = %{_pld_prefix}/supported/%{_pld_arch}/
84+noauto = yes
7eb65750 85+#signed = yes
4fadbbef
JR
86+
87+[source]
88+type = %{_ac_idxtype}
89+name = ac-ready
90+path = %{_pld_prefix}/ready/%{_pld_arch}/
91+noauto = yes
92+
93+[source]
94+type = %{_ac_idxtype}
95+name = ac-test
96+path = %{_pld_prefix}/test/%{_pld_arch}/
97+noauto = yes
521e98dd
AM
98--- util-vserver-0.30.214.org/distrib/pld-ac/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
99+++ util-vserver-0.30.214/distrib/pld-ac/poldek/poldek.conf 2007-11-15 23:20:48.181172125 +0100
909684f7
AM
100@@ -0,0 +1,182 @@
101+# poldek main configuration file.
102+
103+# Some macros. Macros are local, they are not visible in included files
104+# and macros declared in them are not visible to includer.
105+# Macros names starts with underscore '_'.
106+#
107+_distro = pld
108+
109+# Both local and remote files may be included. Included files may not contain
110+# [global] section, it will be ignored anyway.
111+%include %{_distro}-source.conf
112+
113+# local sources
114+%include source.conf
115+
116+# External downloaders configuration, not necessary in most cases, cause
117+# to internal HTTP and FTP client.
118+#%include fetch.conf
119+
120+[global]
121+
122+
123+# This parameter allows to configure the default repository index type.
124+#default index type = pndir
125+
126+# Cache directory for downloaded files. NOTE: that parent directory of cachedir
127+# must exists.
128+#cachedir = $HOME/.poldek-cache
129+
130+# Switch to ordinary user at startup when executed by root
131+#runas = poldek
132+
133+# Permits using root privileges for installation only. Automatically turned
134+# on when poldek executed as ordinary user.
135+#use sudo = no
136+
137+# Load /etc/apt/sources.list.
138+#load apt sources list = no
139+
140+# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
141+# This option is a workaround for broken zlib linked into librpm; with enabled
142+# 'auto zlib in rpm' poldek tries to detect such case and then enables external
143+# *.gz handling automatically.
144+#vfile external compress = no
145+
146+# Auto detection of zlib linked into librpm. See 'vfile external compress'
147+# description.
148+#auto zlib in rpm = yes
149+
150+# Automatically download whole index if incremental update fails.
151+#autoupa = yes
152+
153+# Do not save given paths into created indexes. This option may significantly
154+# reduce index size. Example (notice missing starting '/'):
155+# exclude path = usr/share/doc:usr/share/man:usr/src
156+#exclude path =
157+
158+# Full path name to a PM (rpm for now) binary.
159+#pm command = /bin/rpm
160+
161+# Full path name to sudo binary.
162+#sudo command = /usr/bin/sudo
163+
164+
165+### File downloaders configuration
166+
167+# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default
168+# 'poldek@znienacka.net' is sent)
169+#vfile ftp sysuser as anon passwd = no
170+
171+# File getters configuration parameter. By this option URL handlers may be configured.
172+# To get file from HTTP and FTP servers poldek uses its internal client (what is
173+# recommended), although it can be changedby this option. Others protocols handled
174+# by external utilities can be configured also. The syntax is:
175+# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
176+
177+# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
178+# sections (placed in fetch.conf in default configuration).
179+# Examples:
180+# default fetcher = ftp,http:internal
181+# default fetcher = https:wget
182+# default fetcher = cdrom:vfjuggle
183+# vfjuggle is a cdrom getter supplied with poldek.
184+#default fetcher = http,ftp: internal
185+
186+# Proxies for internal FTP and HTTP client may be configured in usual
187+# way, by environment variables ftp_proxy and http_proxy, or by this option.
188+# Its syntax is similar to "default fetcher" one:
189+# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
190+# Example:
191+# proxy = http: http://w3cache.foo.org:8080
192+#proxy =
193+
194+# Comma separated list of hosts or domains which will not be accessed via proxy.
195+# Option overrides no_proxy environment variable.
196+# Example:
197+# noproxy = localhost, .pl, ftp.foo.bar.org
198+#noproxy =
199+
200+# Internal HTTP and FTP client is stubborn, it retries to retrive
201+# file if connection breaks. This option tells it how many times
202+# it should try.
203+#vfile retries = 128
204+
205+
206+### Installation options
207+
208+# Install packages in small groups instead of doing all-or-nothing
209+# installations.
210+particle install = no
211+
212+# Do not remove downloaded packages after its successful installation.
213+#keep downloads = no
214+
215+# Controls visibility of multiple package instances with different EVR.
216+# If on, only one, highest version will be visible.
217+#unique package names = no
218+
219+# Epoch autopromotion during dependency comparision. RPM specific.
220+# Set it up if you are using system with rpm prior to 4.2.1 version.
221+#promoteepoch = no
222+
223+# Confirm packages installation.
224+#confirm installation = no
225+
226+# Confirm packages removal.
227+#confirm removal = yes
228+
229+# Let the user select package among equivalents.
230+choose equivalents manually = yes
231+
232+# Prevent package listed from being upgraded if they are already installed.
233+# hold = kernel* dev
234+#hold =
235+
236+# Ignore package list - packages fits given mask will be invisible.
237+# ignore = *-smp-* foo*
238+ignore = kernel* udev devfs
239+
240+# Conflicts with already installed packages are treated as resolved
241+# if at least one of multiple-installed package satisfies conflict.
242+# rpm doesn't support such cases, so --pm-nodeps is needed (use with
243+# care).
244+#allow duplicates = yes
245+
246+
247+### RPM specific options
248+
249+# rpm macros can be set by this option. Examples:
250+# rpmdef = _install_langs pl:pl_PL:lt:lt_LT
251+# Do not install any documentation:
252+# rpmdef = _netsharedpath /usr/share/info:/usr/share/man
253+# rpmdef = _excludedocs 1
254+#rpmdef =
255+
256+
257+### Dependency processing settings
258+# Subtle dependency processing options, they should not be changed
259+# unless you know what you are doing
260+
261+# Automatically install packages required by installed ones.
262+#follow = yes
263+
264+# Greedy upgrades, i.e. upgrade packages which dependencies are broken
265+# by being uninstalled ones.
266+#greedy = yes
267+
268+# Be yet more greedy; if successor of orphaned package found, and this
269+# successor drags no packages then upgrade the package instead of process
270+# its dependencies. Option value is implied by 'greedy' one by defalut.
271+#aggressive greedy = yes
272+
273+# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
274+# package A requires capability foo &gt;= 1.0 while package B provides "foo"
275+# without any version. Use with care, it may cause weird dependency errors.
276+#mercy = no
277+
278+# Taking into account package Obsoletes.
279+#obsoletes = yes
280+
281+# Taking into account package Conflicts.
282+#conflicts = yes
521e98dd
AM
283--- util-vserver-0.30.214.org/distrib/pld-ac/rpm/macros 1970-01-01 01:00:00.000000000 +0100
284+++ util-vserver-0.30.214/distrib/pld-ac/rpm/macros 2007-11-15 23:20:48.181172125 +0100
909684f7
AM
285@@ -0,0 +1,4 @@
286+# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
287+# you have to use at least one language beside 'C'
288+%_install_langs C:en:pl
289+%_netsharedpath /dev
521e98dd
AM
290--- util-vserver-0.30.214.org/distrib/pld-th/pkgs/01 1970-01-01 01:00:00.000000000 +0100
291+++ util-vserver-0.30.214/distrib/pld-th/pkgs/01 2007-11-15 23:20:48.181172125 +0100
909684f7
AM
292@@ -0,0 +1,5 @@
293+basesystem
294+glibc
295+issue
296+rpm-base
297+vserver-packages
521e98dd
AM
298--- util-vserver-0.30.214.org/distrib/pld-th/poldek/pld-source.conf 1970-01-01 01:00:00.000000000 +0100
299+++ util-vserver-0.30.214/distrib/pld-th/poldek/pld-source.conf 2007-11-15 23:20:48.181172125 +0100
909684f7
AM
300@@ -0,0 +1,51 @@
301+# PLD <http://www.pld-linux.org/>
302+
303+_pld_arch = %ARCH%
304+_pld_prefix = ftp://ftp.th.pld-linux.org/dists/th
305+## Some mirrors
306+## You can use them if you have better connection there
307+# CI TASK:
308+#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/th
309+
310+
311+_th_idxtype = pndir
312+
313+# PLD 3.0 (Th)
314+[source]
315+type = %{_th_idxtype}
316+name = th
317+path = %{_pld_prefix}/PLD/%{_pld_arch}/RPMS/
318+
319+[source]
320+type = %{_th_idxtype}
321+name = th
322+path = %{_pld_prefix}/PLD/noarch/RPMS/
323+
324+[source]
325+type = %{_th_idxtype}
326+name = th-updates-security
327+path = %{_pld_prefix}/updates-security/%{_pld_arch}/RPMS/
328+
329+[source]
330+type = %{_th_idxtype}
331+name = th-updates-general
332+path = %{_pld_prefix}/updates-general/%{_pld_arch}/RPMS/
333+noauto = yes
334+
335+#[source]
336+#type = %{_th_idxtype}
337+#name = th-supported
338+#path = %{_pld_prefix}/supported/%{_pld_arch}/RPMS/
339+#noauto = yes
340+
341+[source]
342+type = %{_th_idxtype}
343+name = th-ready
344+path = %{_pld_prefix}/ready/%{_pld_arch}/RPMS/
345+noauto = yes
346+
347+[source]
348+type = %{_th_idxtype}
349+name = th-test
350+path = %{_pld_prefix}/test/%{_pld_arch}/RPMS/
351+noauto = yes
521e98dd
AM
352--- util-vserver-0.30.214.org/distrib/pld-th/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
353+++ util-vserver-0.30.214/distrib/pld-th/poldek/poldek.conf 2007-11-15 23:20:48.184505622 +0100
4fadbbef
JR
354@@ -0,0 +1,182 @@
355+# poldek main configuration file.
356+
357+# Some macros. Macros are local, they are not visible in included files
358+# and macros declared in them are not visible to includer.
359+# Macros names starts with underscore '_'.
360+#
361+_distro = pld
362+
363+# Both local and remote files may be included. Included files may not contain
364+# [global] section, it will be ignored anyway.
365+%include %{_distro}-source.conf
366+
367+# local sources
368+%include source.conf
369+
370+# External downloaders configuration, not necessary in most cases, cause
371+# to internal HTTP and FTP client.
372+#%include fetch.conf
373+
374+[global]
375+
376+
377+# This parameter allows to configure the default repository index type.
378+#default index type = pndir
379+
380+# Cache directory for downloaded files. NOTE: that parent directory of cachedir
381+# must exists.
382+#cachedir = $HOME/.poldek-cache
383+
384+# Switch to ordinary user at startup when executed by root
385+#runas = poldek
386+
387+# Permits using root privileges for installation only. Automatically turned
388+# on when poldek executed as ordinary user.
389+#use sudo = no
390+
391+# Load /etc/apt/sources.list.
392+#load apt sources list = no
393+
394+# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
395+# This option is a workaround for broken zlib linked into librpm; with enabled
396+# 'auto zlib in rpm' poldek tries to detect such case and then enables external
397+# *.gz handling automatically.
398+#vfile external compress = no
399+
400+# Auto detection of zlib linked into librpm. See 'vfile external compress'
401+# description.
402+#auto zlib in rpm = yes
403+
404+# Automatically download whole index if incremental update fails.
405+#autoupa = yes
406+
407+# Do not save given paths into created indexes. This option may significantly
408+# reduce index size. Example (notice missing starting '/'):
409+# exclude path = usr/share/doc:usr/share/man:usr/src
410+#exclude path =
411+
412+# Full path name to a PM (rpm for now) binary.
413+#pm command = /bin/rpm
414+
415+# Full path name to sudo binary.
416+#sudo command = /usr/bin/sudo
417+
418+
419+### File downloaders configuration
420+
421+# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default
422+# 'poldek@znienacka.net' is sent)
423+#vfile ftp sysuser as anon passwd = no
424+
425+# File getters configuration parameter. By this option URL handlers may be configured.
426+# To get file from HTTP and FTP servers poldek uses its internal client (what is
427+# recommended), although it can be changedby this option. Others protocols handled
428+# by external utilities can be configured also. The syntax is:
429+# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
430+
431+# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
432+# sections (placed in fetch.conf in default configuration).
433+# Examples:
434+# default fetcher = ftp,http:internal
435+# default fetcher = https:wget
436+# default fetcher = cdrom:vfjuggle
437+# vfjuggle is a cdrom getter supplied with poldek.
438+#default fetcher = http,ftp: internal
439+
440+# Proxies for internal FTP and HTTP client may be configured in usual
441+# way, by environment variables ftp_proxy and http_proxy, or by this option.
442+# Its syntax is similar to "default fetcher" one:
443+# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
444+# Example:
445+# proxy = http: http://w3cache.foo.org:8080
446+#proxy =
447+
448+# Comma separated list of hosts or domains which will not be accessed via proxy.
449+# Option overrides no_proxy environment variable.
450+# Example:
451+# noproxy = localhost, .pl, ftp.foo.bar.org
452+#noproxy =
453+
454+# Internal HTTP and FTP client is stubborn, it retries to retrive
455+# file if connection breaks. This option tells it how many times
456+# it should try.
457+#vfile retries = 128
458+
459+
460+### Installation options
461+
462+# Install packages in small groups instead of doing all-or-nothing
463+# installations.
464+particle install = no
465+
466+# Do not remove downloaded packages after its successful installation.
467+#keep downloads = no
468+
469+# Controls visibility of multiple package instances with different EVR.
470+# If on, only one, highest version will be visible.
471+#unique package names = no
472+
473+# Epoch autopromotion during dependency comparision. RPM specific.
474+# Set it up if you are using system with rpm prior to 4.2.1 version.
475+#promoteepoch = no
476+
477+# Confirm packages installation.
478+#confirm installation = no
479+
480+# Confirm packages removal.
481+#confirm removal = yes
482+
483+# Let the user select package among equivalents.
cc65018c 484+choose equivalents manually = yes
4fadbbef
JR
485+
486+# Prevent package listed from being upgraded if they are already installed.
487+# hold = kernel* dev
488+#hold =
489+
490+# Ignore package list - packages fits given mask will be invisible.
491+# ignore = *-smp-* foo*
492+ignore = kernel* udev devfs
493+
494+# Conflicts with already installed packages are treated as resolved
495+# if at least one of multiple-installed package satisfies conflict.
496+# rpm doesn't support such cases, so --pm-nodeps is needed (use with
497+# care).
498+#allow duplicates = yes
499+
500+
501+### RPM specific options
502+
503+# rpm macros can be set by this option. Examples:
504+# rpmdef = _install_langs pl:pl_PL:lt:lt_LT
505+# Do not install any documentation:
506+# rpmdef = _netsharedpath /usr/share/info:/usr/share/man
507+# rpmdef = _excludedocs 1
508+#rpmdef =
509+
510+
511+### Dependency processing settings
512+# Subtle dependency processing options, they should not be changed
513+# unless you know what you are doing
514+
515+# Automatically install packages required by installed ones.
516+#follow = yes
517+
518+# Greedy upgrades, i.e. upgrade packages which dependencies are broken
519+# by being uninstalled ones.
520+#greedy = yes
521+
522+# Be yet more greedy; if successor of orphaned package found, and this
523+# successor drags no packages then upgrade the package instead of process
524+# its dependencies. Option value is implied by 'greedy' one by defalut.
525+#aggressive greedy = yes
526+
527+# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
528+# package A requires capability foo &gt;= 1.0 while package B provides "foo"
529+# without any version. Use with care, it may cause weird dependency errors.
530+#mercy = no
531+
532+# Taking into account package Obsoletes.
533+#obsoletes = yes
534+
535+# Taking into account package Conflicts.
536+#conflicts = yes
521e98dd
AM
537--- util-vserver-0.30.214.org/distrib/pld-th/rpm/macros 1970-01-01 01:00:00.000000000 +0100
538+++ util-vserver-0.30.214/distrib/pld-th/rpm/macros 2007-11-15 23:20:48.184505622 +0100
d7090917 539@@ -0,0 +1,4 @@
e7229914
JR
540+# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
541+# you have to use at least one language beside 'C'
542+%_install_langs C:en:pl
d7090917 543+%_netsharedpath /dev
521e98dd
AM
544--- util-vserver-0.30.214.org/distrib/pld-ti/pkgs/01 1970-01-01 01:00:00.000000000 +0100
545+++ util-vserver-0.30.214/distrib/pld-ti/pkgs/01 2007-11-15 23:20:48.217840583 +0100
21e9a651 546@@ -0,0 +1,5 @@
547+basesystem
548+glibc
549+issue
550+rpm-base
551+vserver-packages
521e98dd
AM
552--- util-vserver-0.30.214.org/distrib/pld-ti/poldek/pld-source.conf 1970-01-01 01:00:00.000000000 +0100
553+++ util-vserver-0.30.214/distrib/pld-ti/poldek/pld-source.conf 2007-11-15 23:20:48.217840583 +0100
21e9a651 554@@ -0,0 +1,46 @@
555+# PLD Titanium
556+# Unofficial version of PLD Linux Distribution
557+# http://www.pld-linux.org/Titanium
558+
559+_arch = %ARCH%
560+_prefix = ftp://ftp.titanium.pld-linux.org/branches/titanium
561+
562+_type = pndir
563+
564+[source]
565+type = %{_type}
566+name = titanium
567+path = %{_prefix}/PLD/%{_arch}/RPMS/
568+
569+[source]
570+type = %{_type}
571+name = titanium
572+path = %{_prefix}/PLD/noarch/RPMS/
573+
574+[source]
575+type = %{_type}
576+name = titanium-ready
577+path = %{_prefix}/ready/%{_arch}/RPMS/
578+auto = no
579+autoup = no
580+
581+[source]
582+type = %{_type}
583+name = titanium-ready
584+path = %{_prefix}/ready/noarch/RPMS/
585+auto = no
586+autoup = no
587+
588+[source]
589+type = %{_type}
590+name = titanium-test
591+path = %{_prefix}/test/%{_arch}/RPMS/
592+auto = no
593+autoup = no
594+
595+[source]
596+type = %{_type}
597+name = titanium-test
598+path = %{_prefix}/test/noarch/RPMS/
599+auto = no
600+autoup = no
521e98dd
AM
601--- util-vserver-0.30.214.org/distrib/pld-ti/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
602+++ util-vserver-0.30.214/distrib/pld-ti/poldek/poldek.conf 2007-11-15 23:20:48.217840583 +0100
21e9a651 603@@ -0,0 +1,182 @@
604+# poldek main configuration file.
605+
606+# Some macros. Macros are local, they are not visible in included files
607+# and macros declared in them are not visible to includer.
608+# Macros names starts with underscore '_'.
609+#
610+_distro = pld
611+
612+# Both local and remote files may be included. Included files may not contain
613+# [global] section, it will be ignored anyway.
614+%include %{_distro}-source.conf
615+
616+# local sources
617+%include source.conf
618+
619+# External downloaders configuration, not necessary in most cases, cause
620+# to internal HTTP and FTP client.
621+#%include fetch.conf
622+
623+[global]
624+
625+
626+# This parameter allows to configure the default repository index type.
627+#default index type = pndir
628+
629+# Cache directory for downloaded files. NOTE: that parent directory of cachedir
630+# must exists.
631+#cachedir = $HOME/.poldek-cache
632+
633+# Switch to ordinary user at startup when executed by root
634+#runas = poldek
635+
636+# Permits using root privileges for installation only. Automatically turned
637+# on when poldek executed as ordinary user.
638+#use sudo = no
639+
640+# Load /etc/apt/sources.list.
641+#load apt sources list = no
642+
643+# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
644+# This option is a workaround for broken zlib linked into librpm; with enabled
645+# 'auto zlib in rpm' poldek tries to detect such case and then enables external
646+# *.gz handling automatically.
647+#vfile external compress = no
648+
649+# Auto detection of zlib linked into librpm. See 'vfile external compress'
650+# description.
651+#auto zlib in rpm = yes
652+
653+# Automatically download whole index if incremental update fails.
654+#autoupa = yes
655+
656+# Do not save given paths into created indexes. This option may significantly
657+# reduce index size. Example (notice missing starting '/'):
658+# exclude path = usr/share/doc:usr/share/man:usr/src
659+#exclude path =
660+
661+# Full path name to a PM (rpm for now) binary.
662+#pm command = /bin/rpm
663+
664+# Full path name to sudo binary.
665+#sudo command = /usr/bin/sudo
666+
667+
668+### File downloaders configuration
669+
670+# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default
671+# 'poldek@znienacka.net' is sent)
672+#vfile ftp sysuser as anon passwd = no
673+
674+# File getters configuration parameter. By this option URL handlers may be configured.
675+# To get file from HTTP and FTP servers poldek uses its internal client (what is
676+# recommended), although it can be changedby this option. Others protocols handled
677+# by external utilities can be configured also. The syntax is:
678+# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
679+
680+# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
681+# sections (placed in fetch.conf in default configuration).
682+# Examples:
683+# default fetcher = ftp,http:internal
684+# default fetcher = https:wget
685+# default fetcher = cdrom:vfjuggle
686+# vfjuggle is a cdrom getter supplied with poldek.
687+#default fetcher = http,ftp: internal
688+
689+# Proxies for internal FTP and HTTP client may be configured in usual
690+# way, by environment variables ftp_proxy and http_proxy, or by this option.
691+# Its syntax is similar to "default fetcher" one:
692+# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
693+# Example:
694+# proxy = http: http://w3cache.foo.org:8080
695+#proxy =
696+
697+# Comma separated list of hosts or domains which will not be accessed via proxy.
698+# Option overrides no_proxy environment variable.
699+# Example:
700+# noproxy = localhost, .pl, ftp.foo.bar.org
701+#noproxy =
702+
703+# Internal HTTP and FTP client is stubborn, it retries to retrive
704+# file if connection breaks. This option tells it how many times
705+# it should try.
706+#vfile retries = 128
707+
708+
709+### Installation options
710+
711+# Install packages in small groups instead of doing all-or-nothing
712+# installations.
713+particle install = no
714+
715+# Do not remove downloaded packages after its successful installation.
716+#keep downloads = no
717+
718+# Controls visibility of multiple package instances with different EVR.
719+# If on, only one, highest version will be visible.
720+#unique package names = no
721+
722+# Epoch autopromotion during dependency comparision. RPM specific.
723+# Set it up if you are using system with rpm prior to 4.2.1 version.
724+#promoteepoch = no
725+
726+# Confirm packages installation.
727+#confirm installation = no
728+
729+# Confirm packages removal.
730+#confirm removal = yes
731+
732+# Let the user select package among equivalents.
733+choose equivalents manually = yes
734+
735+# Prevent package listed from being upgraded if they are already installed.
736+# hold = kernel* dev
737+#hold =
738+
739+# Ignore package list - packages fits given mask will be invisible.
740+# ignore = *-smp-* foo*
741+ignore = kernel* udev devfs
742+
743+# Conflicts with already installed packages are treated as resolved
744+# if at least one of multiple-installed package satisfies conflict.
745+# rpm doesn't support such cases, so --pm-nodeps is needed (use with
746+# care).
747+#allow duplicates = yes
748+
749+
750+### RPM specific options
751+
752+# rpm macros can be set by this option. Examples:
753+# rpmdef = _install_langs pl:pl_PL:lt:lt_LT
754+# Do not install any documentation:
755+# rpmdef = _netsharedpath /usr/share/info:/usr/share/man
756+# rpmdef = _excludedocs 1
757+#rpmdef =
758+
759+
760+### Dependency processing settings
761+# Subtle dependency processing options, they should not be changed
762+# unless you know what you are doing
763+
764+# Automatically install packages required by installed ones.
765+#follow = yes
766+
767+# Greedy upgrades, i.e. upgrade packages which dependencies are broken
768+# by being uninstalled ones.
769+#greedy = yes
770+
771+# Be yet more greedy; if successor of orphaned package found, and this
772+# successor drags no packages then upgrade the package instead of process
773+# its dependencies. Option value is implied by 'greedy' one by defalut.
774+#aggressive greedy = yes
775+
776+# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
777+# package A requires capability foo &gt;= 1.0 while package B provides "foo"
778+# without any version. Use with care, it may cause weird dependency errors.
779+#mercy = no
780+
781+# Taking into account package Obsoletes.
782+#obsoletes = yes
783+
784+# Taking into account package Conflicts.
785+#conflicts = yes
521e98dd
AM
786--- util-vserver-0.30.214.org/distrib/pld-ti/rpm/macros 1970-01-01 01:00:00.000000000 +0100
787+++ util-vserver-0.30.214/distrib/pld-ti/rpm/macros 2007-11-15 23:20:48.221174080 +0100
21e9a651 788@@ -0,0 +1,4 @@
789+# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
790+# you have to use at least one language beside 'C'
791+%_install_langs C:en:pl
792+%_netsharedpath /dev
521e98dd
AM
793--- util-vserver-0.30.214.org/scripts/functions 2007-09-02 22:06:41.000000000 +0200
794+++ util-vserver-0.30.214/scripts/functions 2007-11-15 23:20:48.221174080 +0100
21e9a651 795@@ -403,6 +403,20 @@
4fadbbef
JR
796 fi
797 }
798
799+function _pkgSetVarsPoldek
800+{
801+ if test -n "$PKGDIR"; then
802+ findDir POLDEKETCDIR $PKGDIR/poldeketc $PKGDIR/base/poldek/etc /etc/poldek
803+ findDir POLDEKCACHEDIR $PKGDIR/poldek-cache $PKGDIR/base/poldek/cache
804+ else
805+ findDir POLDEKETCDIR "$VDIR"/etc/poldek /etc/poldek
806+ findDir POLDEKCACHEDIR "$VDIR"/var/tmp/poldek-cache
807+ fi
808+
809+ findFile POLDEK_CONFIG "$POLDEKETCDIR"/poldek.conf ""
810+ test -z "$POLDEK_CONFIG" || export POLDEK_CONFIG
811+}
812+
813
814 function _pkgMountBase
815 {
21e9a651 816@@ -476,6 +490,7 @@
4fadbbef
JR
817 rpm) _pkgSetVarsRPM;;
818 apt) _pkgSetVarsApt;;
819 yum) _pkgSetVarsYum;;
820+ poldek) _pkgSetVarsPoldek;;
821 *) echo "Unknown packaging flavor" >&2; exit 1;;
822 esac
823 done
21e9a651 824@@ -764,6 +779,8 @@
4e5a2018
JR
825 style=redhat
826 elif test -e "$_pgs_vdir"/etc/mandrake-release; then
827 style=mandrake
828+ elif test -e "$_pgs_vdir"/etc/pld-release; then
829+ style=pld
830 elif test -e "$_pgs_vdir"/etc/debian_version; then
831 style=debian
832 elif test -e "$_pgs_vdir"/etc/SuSE-release; then
21e9a651 833@@ -831,6 +848,27 @@
4fadbbef
JR
834 test -n "$have_yum" && return 0 || return 1
835 }
836
837+## Usage: pkgmgmt.isPoldekAvailable <cfgdir> <vdir> [<is-internal>]
838+function pkgmgmt.isPoldekAvailable
839+{
840+ local cfgdir="$1"
841+ local vdir="$2"
842+ local is_internal="$3"
843+
844+ local have_poldek i
845+ if test -n "$is_internal"; then
846+ have_poldek=1
847+ test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
848+ else
849+ have_poldek=
850+ for i in /bin /usr/bin /usr/local/bin; do
851+ test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
852+ done
853+ fi
854+
855+ test -n "$have_poldek" && return 0 || return 1
856+}
857+
858
859 function vshelper.doSanityCheck
860 {
521e98dd
AM
861--- util-vserver-0.30.214.org/scripts/Makefile-files 2007-09-02 22:06:41.000000000 +0200
862+++ util-vserver-0.30.214/scripts/Makefile-files 2007-11-15 23:20:48.221174080 +0100
909684f7 863@@ -21,6 +21,7 @@
fe9ea50c 864 scripts/vapt-get-worker \
865 scripts/vrpm-worker \
866 scripts/vyum-worker \
867+ scripts/vpoldek-worker \
868 scripts/vrpm-preload \
869 scripts/save_s_context \
870 scripts/vservers.grabinfo.sh \
909684f7 871@@ -47,11 +48,13 @@
fe9ea50c 872 scripts/vserver-build.template \
873 scripts/vserver-build.rsync \
893c90d5 874 scripts/vserver-build.clone \
fe9ea50c 875+ scripts/vserver-build.poldek \
876 scripts/vserver-build.functions \
877 scripts/vserver-build.functions.apt \
878 scripts/vserver-build.functions.rpm \
879 scripts/vserver-build.functions.pkgmgmt \
880 scripts/vserver-build.functions.yum \
881+ scripts/vserver-build.functions.poldek \
882 scripts/vserver-setup.functions \
883 scripts/vserver.functions \
884 scripts/vserver.start \
21e9a651 885@@ -65,6 +68,7 @@
fe9ea50c 886 scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
887 scripts/vapt-get-worker \
888 scripts/vpkg \
889+ scripts/vpoldek-worker \
890 scripts/vrpm-worker \
891 scripts/vrpm-preload \
892 scripts/start-vservers \
21e9a651 893@@ -88,6 +92,7 @@
fe9ea50c 894 scripts_sbin_src_PRGS = scripts/chbind \
895 scripts/chcontext \
896 scripts/vapt-get \
897+ scripts/vpoldek \
898 scripts/vdispatch-conf \
899 scripts/vemerge \
900 scripts/vesync \
521e98dd
AM
901--- util-vserver-0.30.214.org/scripts/pkgmgmt 2007-09-02 22:06:41.000000000 +0200
902+++ util-vserver-0.30.214/scripts/pkgmgmt 2007-11-15 23:20:48.221174080 +0100
909684f7 903@@ -195,7 +195,7 @@
4fadbbef
JR
904 "
905
906 case $2 in
907- (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum "${YUM_RELEASEPKGS[@]}")
908+ (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum poldek "${YUM_RELEASEPKGS[@]}")
909 hasSubstring "$pkgs" ---rpm--- || {
910 warning "$ERR
911 * The vserver does not seem to have the 'rpm' package which is required
909684f7 912@@ -205,9 +205,9 @@
4fadbbef
JR
913 ERR=
914 }
915
916- hasSubstring "$pkgs" ---apt--- ---yum--- || {
917+ hasSubstring "$pkgs" ---apt--- ---yum--- ---poldek--- || {
918 warning "$ERR
919-* The vserver does not seem to have a depsolver like 'apt' or 'yum'
920+* The vserver does not seem to have a depsolver like 'apt', 'yum' or 'poldek'
921 installed. It is suggested to install such a program before setting
922 up internal package management."
923 res=1
909684f7 924@@ -368,6 +368,131 @@
4fadbbef
JR
925 fi
926 }
927
928+function processVserver_PLD()
929+{
930+ local vserver=$1
931+ local is_internalize=$2
932+ local cfgdir
933+ local i
934+
935+ cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
936+ cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
937+
938+ ## Figure out the environment....
939+ pkgmgmt.isPoldekAvailable "$cfgdir" "$vdir" "$is_internalize" || have_poldek=
940+
941+ local POLDEKETCDIR=
942+ local POLDEKCACHEDIR=
943+ local RPMETCDIR=
944+ local RPMSTATEDIR=
945+
946+ ## Create directories and assign variables where configuration
947+ ## can/will be found on the host
948+ if test -n "$is_internalize"; then
949+ verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
950+ panic "
951+Can not continue; use '--force' to override this check"
952+
953+ pushd "$vdir" >/dev/null
954+
955+ test ! -L var/lib/rpm || {
956+ $_EXEC_CD /var/lib $_RM rpm &&
957+ $_EXEC_CD /var/lib $_MKDIR -m755 rpm &&
958+ $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
959+ :
960+ } </dev/null 2>/dev/null
961+
962+ for i in var/tmp/poldek-cache etc/rpm etc/poldek; do
963+ test -d "$i" ||
964+ $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
965+ done #2>/dev/null
966+
967+ popd >/dev/null
968+
969+ if test -n "$have_poldek"; then
970+ findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /etc/poldek
971+ fi
972+
973+ findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /etc/rpm /
974+ findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
975+ else
976+ mkdir -m755 -p "$cfgdir"
977+ local need_base=
978+
979+ if test -n "$have_poldek"; then
980+ findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /
981+ findDir POLDEKCACHEDIR "$cfgdir"/poldek-cache "$cfgdir"/base/poldek/cache /
982+
983+ test "$POLDEKETCDIR" != / || POLDEKETCDIR=$cfgdir/base/poldek/etc
984+ test "$POLDEKCACHEDIR" != / || POLDEKCACHEDIR=$cfgdir/base/poldek/cache
985+
986+ test -d "$cfgdir"/poldeketc -a -d "$cfgdir"/poldek-cache || need_base=1
987+ fi
988+
989+ findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /
990+ findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state /
991+
992+ test "$RPMETCDIR" != / || RPMETCDIR=$cfgdir/base/rpm/etc
993+ test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
994+
995+ test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
996+ test ! -e "$cfgdir"/base || need_base=
997+
998+ test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
999+
1000+ mkdir -m755 -p "$PKGCFGDIR"
1001+ _createDirs "$POLDEKETCDIR" "$POLDEKCACHEDIR" \
1002+ "$RPMETCDIR" "$RPMSTATEDIR"
1003+ fi
1004+
1005+ ## Copy the files...
1006+ if test -n "$is_internalize"; then
1007+ if test -n "$have_poldek"; then
1008+ _copySecure "$vdir" "$POLDEKETCDIR" /etc/poldek
1009+ pushd "$vdir" >/dev/null
1010+ _hashAuto /etc/poldek.conf '/'
1011+ popd >/dev/null
1012+ fi
1013+
1014+ _copySecure "$vdir" "$RPMETCDIR" /etc/rpm
1015+ _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
1016+
1017+ pushd "$vdir" >/dev/null
1018+ ## remove %_dbpath settings
1019+ _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
1020+ popd >/dev/null
1021+ else
1022+ if test -n "$have_poldek"; then
1023+ _copySecureRev "$vdir" /etc/poldek "$POLDEKETCDIR"
1024+ _unhashAuto "$POLDEKETCDIR"/poldek.conf '/'
1025+ fi
1026+
1027+ _copySecureRev "$vdir" /etc/rpm "$RPMETCDIR"
1028+ _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
1029+
1030+ echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
1031+ fi
1032+
1033+ ## Cleanups...
1034+ if test -n "$is_internalize"; then
1035+ :
1036+ else
8d5b8ef9 1037+ tmpdir=$($_MKTEMPDIR -p /var/tmp pgmgmt.XXXXXX)
4fadbbef
JR
1038+ trap "$_RM -rf $tmpdir" EXIT
1039+ pushd "$vdir" >/dev/null
1040+ $_EXEC_CD /var/lib $_MV rpm $tmpdir/
1041+ $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
1042+ $_RM -rf $tmpdir
1043+ fi
1044+
1045+ ## Finish it...
1046+ if test -n "$is_internalize"; then
1047+ $_TOUCH "$cfgdir"/internal
1048+ else
1049+ $_RM -f "$cfgdir"/internal
1050+ fi
1051+}
1052+
1053 function processVserver_Debian()
1054 {
1055 local vserver=$1
21e9a651 1056@@ -422,6 +547,7 @@
4fadbbef
JR
1057
1058 case "$style" in
1059 (redhat|mandrake) processVserver_RH "$vserver" "$IS_INTERNALIZE";;
1060+ (pld) processVserver_PLD "$vserver" "$IS_INTERNALIZE";;
1061 (debian) processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
1062 (*)
1063 echo $"Vserver style '$style' is not supported for packagemanagment" >&2
521e98dd
AM
1064--- util-vserver-0.30.214.org/scripts/util-vserver-vars.pathsubst 2007-09-02 22:06:41.000000000 +0200
1065+++ util-vserver-0.30.214/scripts/util-vserver-vars.pathsubst 2007-11-15 23:20:48.221174080 +0100
21e9a651 1066@@ -53,6 +53,7 @@
4fadbbef
JR
1067 _LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
1068 _LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
1069 _LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
1070+_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK="$__PKGLIBDIR/vserver-build.functions.poldek"
1071 _LISTDEVIP="$__LEGACYDIR/listdevip"
1072 _LOCKFILE="$__PKGLIBDIR/lockfile"
1073 _MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
21e9a651 1074@@ -105,6 +106,8 @@
4fadbbef
JR
1075 _VUNIFY="$__PKGLIBDIR/vunify"
1076 _VYUM="$__SBINDIR/vyum"
1077 _VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
1078+_VPOLDEK="$__SBINDIR/vpoldek"
1079+_VPOLDEK_WORKER="$__PKGLIBDIR/vpoldek-worker"
1080
1081 _AWK="@AWK@"
fe9ea50c 1082 _BZIP2="@BZIP2@"
521e98dd
AM
1083--- util-vserver-0.30.214.org/scripts/vpkg 2007-09-02 22:06:41.000000000 +0200
1084+++ util-vserver-0.30.214/scripts/vpkg 2007-11-15 23:20:48.221174080 +0100
909684f7 1085@@ -115,6 +115,44 @@
4e5a2018
JR
1086 fi
1087 fi
1088 ;;
1089+ (pld)
1090+ rpm_param=
1091+ poldek_param=
1092+ case "$tag" in
1093+ ## rpm outputs sometimes '(contains no files)', so return
1094+ ## only the valid output
1095+ (get-conffiles)
1096+ rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
1097+ (install)
1098+ rpm_param=( -Uvh "$@" )
1099+ poldek_param=( --install -v "$@" )
1100+ ;;
1101+ esac
1102+
1103+ if test -n "$is_external"; then
1104+ have_poldek=1
1105+ test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
1106+ else
1107+ have_poldek=
1108+ for i in /bin /usr/bin /usr/local/bin; do
1109+ test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
1110+ done
1111+ fi
1112+
1113+ if test -n "$is_external"; then
1114+ if test "$have_poldek" -a "$poldek_param"; then
1115+ cmd=( "$_VPOLDEK" "$vserver" -- "${poldek_param[@]}" )
1116+ else
1117+ cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
1118+ fi
1119+ else
1120+ if test "$have_poldek" -a "$poldek_param"; then
1121+ cmd=( "$_VSERVER" --silent "$vserver" exec poldek "${poldek_param[@]}" )
1122+ else
1123+ cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
1124+ fi
1125+ fi
1126+ ;;
1127 (debian)
1128 case "$tag" in
1129 (get-conffiles)
521e98dd
AM
1130--- util-vserver-0.30.214.org/scripts/vpoldek 1970-01-01 01:00:00.000000000 +0100
1131+++ util-vserver-0.30.214/scripts/vpoldek 2007-11-15 22:00:24.000000000 +0100
1132@@ -0,0 +1,74 @@
4fadbbef
JR
1133+#! /bin/bash
1134+# $Id$
1135+
521e98dd 1136+# Copyright (C) 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4fadbbef
JR
1137+#
1138+# This program is free software; you can redistribute it and/or modify
1139+# it under the terms of the GNU General Public License as published by
1140+# the Free Software Foundation; version 2 of the License.
1141+#
1142+# This program is distributed in the hope that it will be useful,
1143+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1144+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1145+# GNU General Public License for more details.
1146+#
1147+# You should have received a copy of the GNU General Public License
1148+# along with this program; if not, write to the Free Software
1149+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1150+
1151+: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1152+test -e "$UTIL_VSERVER_VARS" || {
1153+ echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1154+ exit 1
1155+}
1156+. "$UTIL_VSERVER_VARS"
1157+. "$_LIB_FUNCTIONS"
1158+
1159+
1160+function showHelp()
1161+{
1162+ echo \
1163+$"Usage: $0 <vserver-name>* [--all] -- <params>+
1164+
1165+Report bugs to <$PACKAGE_BUGREPORT>."
1166+ exit 0
1167+}
1168+
1169+function showVersion()
1170+{
1171+ echo \
1172+$"vpoldek $PACKAGE_VERSION -- poldek for vservers
1173+This program is part of $PACKAGE_STRING
1174+
521e98dd 1175+Copyright (C) 2007 Enrico Scholz
4fadbbef
JR
1176+This program is free software; you may redistribute it under the terms of
1177+the GNU General Public License. This program has absolutely no warranty."
1178+ exit 0
1179+}
1180+
521e98dd
AM
1181+tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
1182+eval set -- "$tmp"
1183+
1184+declare -a send_through poldek_opts
4fadbbef 1185+
521e98dd 1186+while true; do
4fadbbef 1187+ case "$1" in
521e98dd
AM
1188+ (--help) showHelp $0 ;;
1189+ (--version) showVersion ;;
1190+ (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
1191+ (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
1192+ (--all) poldek_opts=( "${poldek_opts[@]}" "$1" );;
1193+ (--) shift; break;;
1194+ (*) echo $"vpoldek: internal error; arg=='$1'" >&2; exit 1;;
1195+ esac
1196+ shift
4fadbbef
JR
1197+done
1198+
521e98dd
AM
1199+VSOMETHING_TITLE=vpoldek
1200+VSOMETHING_WORKER=$_VPOLDEK_WORKER
1201+VSOMETHING_PKGMGMT=1
4fadbbef 1202+
521e98dd 1203+export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
4fadbbef 1204+
521e98dd
AM
1205+test ${#poldek_opts[@]} -eq 0 || poldek_opts=( "${poldek_opts[@]}" -- )
1206+exec $_VSOMETHING "${send_through[@]}" poldek "${poldek_opts[@]}" "$@"
521e98dd
AM
1207--- util-vserver-0.30.214.org/scripts/vpoldek-worker 1970-01-01 01:00:00.000000000 +0100
1208+++ util-vserver-0.30.214/scripts/vpoldek-worker 2007-11-15 22:58:23.000000000 +0100
4fadbbef
JR
1209@@ -0,0 +1,45 @@
1210+#! /bin/bash
1211+# $Id$
1212+
1213+# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1214+#
1215+# This program is free software; you can redistribute it and/or modify
1216+# it under the terms of the GNU General Public License as published by
1217+# the Free Software Foundation; version 2 of the License.
1218+#
1219+# This program is distributed in the hope that it will be useful,
1220+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1221+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1222+# GNU General Public License for more details.
1223+#
1224+# You should have received a copy of the GNU General Public License
1225+# along with this program; if not, write to the Free Software
1226+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1227+
1228+set -e
1229+
1230+: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1231+test -e "$UTIL_VSERVER_VARS" || {
1232+ echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1233+ exit 1
1234+}
1235+. "$UTIL_VSERVER_VARS"
1236+. "$_LIB_FUNCTIONS"
1237+
1238+
1239+vserver="$1"
1240+shift
1241+
1242+pkgInit "$vserver" rpm poldek
1243+
1244+test -z "$_POLDEK" || {
1245+ warning $"The environment variable \$_POLDEK is not supported anymore; please use \$POLDEK instead of"
1246+ ${POLDEK:=$_POLDEK}
1247+}
1248+
1249+exec ${_POLDEK:-poldek} \
1250+ -v --root=$VDIR \
1251+ --cachedir=$POLDEKCACHEDIR \
1252+ --conf=$POLDEK_CONFIG \
1253+ --pmcmd=$RPM_BINARY \
1254+ "$@"
521e98dd
AM
1255--- util-vserver-0.30.214.org/scripts/vserver-build 2007-09-02 22:06:41.000000000 +0200
1256+++ util-vserver-0.30.214/scripts/vserver-build 2007-11-15 23:20:48.224507577 +0100
909684f7 1257@@ -57,6 +57,9 @@
fe9ea50c 1258 yum ... -- -d <distribution>
4fadbbef
JR
1259 ... installs the base-packages of the given distribution with
1260 help of 'vyum'
fe9ea50c 1261+ poldek ... -- -d <distribution>
4fadbbef
JR
1262+ ... installs the base-packages of the given distribution with
1263+ help of 'vpoldek'
fe9ea50c 1264 rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
4fadbbef 1265 ... installs lists of rpm-packages
fe9ea50c 1266 skeleton ... -- [<cmd> <args>*]
21e9a651 1267@@ -136,7 +139,7 @@
4fadbbef
JR
1268
1269 case x"$method" in
1270 (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
893c90d5 1271- (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone)
1272+ (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xpoldek)
4fadbbef
JR
1273 . $__PKGLIBDIR/vserver-build.$method
1274 ;;
1275 (x) panic $"No build-method specified";;
521e98dd
AM
1276--- util-vserver-0.30.214.org/scripts/vserver-build.functions 2007-09-02 22:06:41.000000000 +0200
1277+++ util-vserver-0.30.214/scripts/vserver-build.functions 2007-11-15 23:20:48.224507577 +0100
909684f7 1278@@ -167,6 +167,12 @@
fe9ea50c 1279 elif test -e /etc/slackware-version; then
1280 set -- $(cat /etc/slackware-version)
4fadbbef
JR
1281 DISTRIBUTION=slackware$2
1282+ elif test -e /etc/pld-release; then
1283+ old_IFS=$IFS
1284+ IFS='()'
1285+ set -- $(cat /etc/pld-release)
1286+ DISTRIBUTION=pld-$(echo $2 | tr A-Z a-z)
1287+ IFS=$old_IFS
1288 elif test -n "$1"; then
1289 DISTRIBUTION=$1
1290 else
b7494608
ER
1291--- util-vserver-0.30.214/scripts/vserver-build.functions.poldek 2007-11-15 23:20:48.224507577 +0100
1292+++ util-vserver-0.30.214/scripts/vserver-build.functions.poldek 2008-03-25 19:20:07.685144000 +0200
1293@@ -0,0 +1,72 @@
4fadbbef
JR
1294+# $Id$ --*- sh -*--
1295+
1296+# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1297+#
1298+# This program is free software; you can redistribute it and/or modify
1299+# it under the terms of the GNU General Public License as published by
1300+# the Free Software Foundation; version 2 of the License.
1301+#
1302+# This program is distributed in the hope that it will be useful,
1303+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1304+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1305+# GNU General Public License for more details.
1306+#
1307+# You should have received a copy of the GNU General Public License
1308+# along with this program; if not, write to the Free Software
1309+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1310+
1311+function poldek.installBasePackages
1312+{
1313+ local name="$1"
1314+ local dir="$2"
1315+
1316+ test "$dir" != / || return 0
1317+ for filelist in "$dir"/*; do
1318+ isRegularFile "$filelist" || continue
1319+ local idx=0
1320+ local can_fail=false
1321+ local flags='--install'
1322+
1323+ set -- $(<$filelist)
1324+ while test "$#" -gt 0; do
1325+ case "$1" in
1326+ --reinstall) flags='--reinstall';;
1327+ --can-fail) can_fail=true;;
1328+ *) break;;
1329+ esac
1330+ shift
1331+ done
1332+ "$_VPOLDEK" "$name" -- $flags $* || $can_fail
1333+ done
1334+}
1335+
1336+function poldek.initVariables
1337+{
1338+ findFile POLDEKCONFDEFAULT \
1339+ "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/poldek.conf" \
1340+ "$__CONFDIR/.defaults/apps/pkgmgmt/poldek/poldek.conf" \
1341+ "$__DISTRIBDIR/$DISTRIBUTION/poldek/poldek.conf" \
1342+ "$__DISTRIBDIR/defaults/poldek/poldek.conf" \
1343+ ''
1344+}
1345+
1346+function poldek.initFilesystem
1347+{
b7494608 1348+ mkdir -p "$PKGCFGDIR"/poldek/etc/repos.d
4fadbbef
JR
1349+ mkdir -p "$PKGCFGBASE"/poldek-cache
1350+
1351+ $_LN_S "$PKGCFGBASE"/poldek-cache "$PKGCFGDIR"/poldek/cache
1352+
1353+ populateDirectory "$PKGCFGDIR/poldek/etc" \
1354+ "$__DISTRIBDIR/defaults/poldek" \
1355+ "$__DISTRIBDIR/$DISTRIBUTION/poldek" \
1356+ "$__CONFDIR/.distributions/$DISTRIBUTION/poldek"
1357+
b7494608
ER
1358+ populateDirectory "$PKGCFGDIR/poldek/etc/repos.d" \
1359+ "$__DISTRIBDIR/defaults/poldek/repos.d" \
1360+ "$__DISTRIBDIR/$DISTRIBUTION/poldek/repos.d" \
1361+ "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/repos.d"
1362+
78219c44
JR
1363+# test -z "$POLDEKCONFDEFAULT" || \
1364+# $_LN_S "$POLDEKCONFDEFAULT" "$PKGCFGDIR"/poldek/etc/
4fadbbef 1365+}
521e98dd
AM
1366--- util-vserver-0.30.214.org/scripts/vserver-build.poldek 1970-01-01 01:00:00.000000000 +0100
1367+++ util-vserver-0.30.214/scripts/vserver-build.poldek 2007-11-15 23:20:48.224507577 +0100
4fadbbef
JR
1368@@ -0,0 +1,64 @@
1369+# $Id$ --*- sh -*--
1370+
1371+# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1372+#
1373+# This program is free software; you can redistribute it and/or modify
1374+# it under the terms of the GNU General Public License as published by
1375+# the Free Software Foundation; version 2 of the License.
1376+#
1377+# This program is distributed in the hope that it will be useful,
1378+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1379+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1380+# GNU General Public License for more details.
1381+#
1382+# You should have received a copy of the GNU General Public License
1383+# along with this program; if not, write to the Free Software
1384+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1385+
1386+tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
1387+eval set -- "$tmp"
1388+
1389+. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
1390+. "$_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK"
1391+. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
1392+
1393+while true; do
1394+ case "$1" in
1395+ (-d) DISTRIBUTION=$2; shift;;
1396+ (--debug) set -x;;
1397+ (--) shift; break ;;
1398+ (*) echo "vserver-build.poldek: internal error: unrecognized option '$1'" >&2
1399+ exit 1
1400+ ;;
1401+ esac
1402+ shift
1403+done
1404+
1405+getDistribution
1406+
1407+base.init
1408+
1409+pkgmgmt.initVariables
1410+rpm.initVariables
1411+poldek.initVariables
1412+
1413+base.initFilesystem "$OPTION_FORCE"
1414+pkgmgmt.initFilesystem "$OPTION_FORCE"
1415+rpm.initFilesystem
1416+poldek.initFilesystem
1417+
1418+setup_writeOption "$VSERVER_NAME"
1419+setup_writeInitialFstab
1420+
1421+test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
1422+rpm.initDB "$SETUP_CONFDIR"
1423+rpm.importGPGPubKeys "$SETUP_CONFDIR" \
1424+ "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
1425+ "$__CONFDIR/.distributions/.common/pubkeys" \
1426+ "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
1427+
1428+$_VPOLDEK "$SETUP_CONFDIR" -- --update-whole
1429+poldek.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
1430+test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
1431+
1432+base.setSuccess
This page took 0.30451 seconds and 4 git commands to generate.