]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver-pld.patch
- remove the "third chunk" mentioned in http://irc.13thfloor.at/LOG/2007-11/LOG_2007...
[packages/util-vserver.git] / util-vserver-pld.patch
1 diff -urN util-vserver-0.30.214.org/distrib/Makefile.am util-vserver-0.30.214/distrib/Makefile.am
2 --- util-vserver-0.30.214.org/distrib/Makefile.am       2007-09-02 22:06:42.000000000 +0200
3 +++ util-vserver-0.30.214/distrib/Makefile.am   2007-11-15 23:20:48.177838628 +0100
4 @@ -73,7 +73,13 @@
5                            breezy/debootstrap.script dapper/debootstrap.script \
6                            edgy/debootstrap.script   feisty/debootstrap.script \
7                            gutsy/debootstrap.script  hoary/debootstrap.script \
8 -                          warty/debootstrap.script
9 +                          warty/debootstrap.script \
10 +                          pld-ac/pkgs/01 pld-ac/rpm/macros \
11 +                          pld-ac/rpmlist.d/00.lst \
12 +                          pld-th/pkgs/01 pld-th/rpm/macros \
13 +                          pld-th/rpmlist.d/00.lst \
14 +                          pld-ti/pkgs/01 pld-ti/rpm/macros \
15 +                          pld-ti/rpmlist.d/00.lst
16  
17  nobase_confdistrib_DATA        =  rh9/apt/sources.list \
18                            fc1/apt/sources.list \
19 @@ -83,7 +89,23 @@
20                            fc5/apt/sources.list \
21                            fc6/apt/sources.list \
22                            f7/apt/sources.list \
23 -                          suse91/apt/sources.list
24 +                          suse91/apt/sources.list \
25 +                          pld-ac/poldek/aliases.conf \
26 +                          pld-ac/poldek/fetch.conf \
27 +                          pld-ac/poldek/pld-source.conf \
28 +                          pld-ac/poldek/poldek.conf \
29 +                          pld-ac/poldek/source.conf \
30 +                          pld-th/poldek/aliases.conf \
31 +                          pld-th/poldek/fetch.conf \
32 +                          pld-th/poldek/pld-source.conf \
33 +                          pld-th/poldek/poldek.conf \
34 +                          pld-th/poldek/source.conf \
35 +                          pld-ti/poldek/aliases.conf \
36 +                          pld-ti/poldek/fetch.conf \
37 +                          pld-ti/poldek/pld-source.conf \
38 +                          pld-ti/poldek/poldek.conf \
39 +                          pld-ti/poldek/source.conf
40 +
41  
42  AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
43                         =  $(nobase_distrib_SCRIPTS)
44 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/pkgs/01 util-vserver-0.30.214/distrib/pld-ac/pkgs/01
45 --- util-vserver-0.30.214.org/distrib/pld-ac/pkgs/01    1970-01-01 01:00:00.000000000 +0100
46 +++ util-vserver-0.30.214/distrib/pld-ac/pkgs/01        2007-11-15 23:20:48.181172125 +0100
47 @@ -0,0 +1,5 @@
48 +basesystem
49 +glibc
50 +issue
51 +rpm-base
52 +vserver-packages
53 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/poldek/aliases.conf util-vserver-0.30.214/distrib/pld-ac/poldek/aliases.conf
54 --- util-vserver-0.30.214.org/distrib/pld-ac/poldek/aliases.conf        1970-01-01 01:00:00.000000000 +0100
55 +++ util-vserver-0.30.214/distrib/pld-ac/poldek/aliases.conf    2007-11-15 23:20:48.181172125 +0100
56 @@ -0,0 +1,30 @@
57 +# System wide aliases
58 +# ls
59 +ll = ls -l
60 +llu = ls -lu
61 +llU = ls -lU
62 +lli = ls -lI
63 +
64 +# install
65 +freshen = install -FN
66 +upgrade = install -F
67 +
68 +# for backward compatybility, greedy is on by default now
69 +greedy-upgrade = install -FG
70 +
71 +just-install = install -IN
72 +
73 +# search
74 +what-requires = search -r
75 +what-provides = search -p
76 +rsearch = search --perlre
77 +
78 +exit = quit
79 +
80 +# for fun
81 +#ls = uninstall kernel
82 +
83 +less = !less
84 +grep = !grep
85 +awk  = !awk
86 +
87 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/poldek/fetch.conf util-vserver-0.30.214/distrib/pld-ac/poldek/fetch.conf
88 --- util-vserver-0.30.214.org/distrib/pld-ac/poldek/fetch.conf  1970-01-01 01:00:00.000000000 +0100
89 +++ util-vserver-0.30.214/distrib/pld-ac/poldek/fetch.conf      2007-11-15 23:20:48.181172125 +0100
90 @@ -0,0 +1,62 @@
91 +# Configuration of poldek external file getters. Each [fetcher] section 
92 +# declares one external downloader. The syntax is:
93 +# [fetcher]
94 +# name  = NAME
95 +# proto = PROTOCOL[ ,PROTOCOL... ]
96 +# cmd   = CMD [OPTION...] DESTINATION-MACRO URL-MACRO
97 +# Possible parameters are:
98 +#
99 +#[fetcher]
100 +# Unique name of the fetcher. This is an optional parameter, if not set then 
101 +# name is taken from the "cmd" parameter value as "$(basename $cmd)". 
102 +#name = foo
103 +
104 +# Protocol or protocols supported by fetcher. Name of the protocol can be 
105 +# completely arbitrary, i.e. if you can handle protocol "foo" by writing
106 +# a script which takes URLs in form 'foo://'. 
107 +#proto = foo,bar
108 +
109 +# Parameter specifies an external command and its invoking syntax.
110 +# The syntax of "cmd" is:
111 +# cmd = COMMAND [ OPTION... ] {%d,%D}  {%p,%P}[n]
112 +# Where COMMAND is the name or full path of command, OPTION is command specific 
113 +# options. Macro '%d' is replaced with cache directory, '%D' is replaced with 
114 +# 'cache directory/file basename', and '%p' with file basename, %P with file full 
115 +# path (URL).  Optional suffix 'n' with %p and %P means that command can be 
116 +# invoked with multiple files at once.
117 +#cmd = foogetter.sh -N %D %Pn
118 +
119 +##Configured fetchers
120 +[fetcher]
121 +proto = cdrom 
122 +cmd   = vfjuggle %d %Pn
123 +
124 +[fetcher]
125 +proto = http,ftp,https
126 +cmd   = wget -N --dot-style=binary -P %d %Pn
127 +
128 +[fetcher]
129 +proto = http,ftp 
130 +cmd   = snarf %P %D
131 +
132 +[fetcher]
133 +proto = https 
134 +cmd   = curl %P -o %D
135 +
136 +[fetcher]
137 +proto = rsync
138 +cmd   = rsync -v %P %d
139 +
140 +[fetcher]
141 +proto = smb
142 +cmd   = vfsmb -v %P %d
143 +
144 +#[fetcher]
145 +#proto = ssh 
146 +#cmd   = vfssh.sh %d %Pn
147 +
148 +#[fetcher]
149 +#proto = foo 
150 +#cmd   = foo.sh %d %Pn
151
152 +  
153 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/poldek/pld-source.conf util-vserver-0.30.214/distrib/pld-ac/poldek/pld-source.conf
154 --- util-vserver-0.30.214.org/distrib/pld-ac/poldek/pld-source.conf     1970-01-01 01:00:00.000000000 +0100
155 +++ util-vserver-0.30.214/distrib/pld-ac/poldek/pld-source.conf 2007-11-15 23:20:48.181172125 +0100
156 @@ -0,0 +1,44 @@
157 +# $Id$
158 +# PLD <http://www.pld-linux.org/>
159 +
160 +_pld_arch   = %ARCH%
161 +_pld_prefix = ftp://ftp.ac.pld-linux.org/dists/ac
162 +## Some mirrors
163 +## You can use them if you have better connection there
164 +# CI TASK:
165 +#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/ac
166 +
167 +
168 +_ac_idxtype = pndir
169 +
170 +# PLD 2.0 (Ac)
171 +[source]
172 +type  = %{_ac_idxtype}
173 +name  = ac
174 +path  = %{_pld_prefix}/PLD/%{_pld_arch}/PLD/RPMS/
175 +#signed = yes
176 +
177 +[source]
178 +type  = %{_ac_idxtype}
179 +name  = ac-updates
180 +path  = %{_pld_prefix}/updates/%{_pld_arch}/
181 +#signed = yes
182 +
183 +[source]
184 +type  = %{_ac_idxtype}
185 +name  = ac-supported
186 +path  = %{_pld_prefix}/supported/%{_pld_arch}/
187 +noauto = yes
188 +#signed = yes
189 +
190 +[source]
191 +type  = %{_ac_idxtype}
192 +name  = ac-ready
193 +path  = %{_pld_prefix}/ready/%{_pld_arch}/
194 +noauto = yes
195 +
196 +[source]
197 +type  = %{_ac_idxtype}
198 +name  = ac-test
199 +path  = %{_pld_prefix}/test/%{_pld_arch}/
200 +noauto = yes
201 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/poldek/poldek.conf util-vserver-0.30.214/distrib/pld-ac/poldek/poldek.conf
202 --- util-vserver-0.30.214.org/distrib/pld-ac/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
203 +++ util-vserver-0.30.214/distrib/pld-ac/poldek/poldek.conf     2007-11-15 23:20:48.181172125 +0100
204 @@ -0,0 +1,182 @@
205 +# poldek main configuration file.
206 +
207 +# Some macros. Macros are local, they are not visible in included files
208 +# and macros declared in them are not visible to includer.
209 +# Macros names starts with underscore '_'.
210 +#
211 +_distro  = pld
212 +
213 +# Both local and remote files may be included. Included files may not contain
214 +# [global] section, it will be ignored anyway. 
215 +%include %{_distro}-source.conf
216 +
217 +# local sources
218 +%include source.conf
219 +
220 +# External downloaders configuration, not necessary in most cases, cause
221 +# to internal HTTP and FTP client.
222 +#%include fetch.conf
223 +
224 +[global]
225 +
226 +
227 +# This parameter allows to configure the default repository index type.
228 +#default index type = pndir
229 +
230 +# Cache directory for downloaded files. NOTE: that parent directory of cachedir 
231 +# must exists.
232 +#cachedir = $HOME/.poldek-cache
233 +
234 +# Switch to ordinary user at startup when executed by root
235 +#runas = poldek
236 +
237 +# Permits using root privileges for installation only. Automatically turned
238 +# on when poldek executed as ordinary user.
239 +#use sudo = no
240 +
241 +# Load /etc/apt/sources.list. 
242 +#load apt sources list = no
243 +
244 +# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
245 +# This option is a workaround for broken zlib linked into librpm; with enabled 
246 +# 'auto zlib in rpm' poldek tries to detect such case and then enables external
247 +# *.gz handling automatically.
248 +#vfile external compress = no
249 +
250 +# Auto detection of zlib linked into librpm. See 'vfile external compress' 
251 +# description.
252 +#auto zlib in rpm = yes
253 +
254 +# Automatically download whole index if incremental update fails.
255 +#autoupa = yes
256 +
257 +# Do not save given paths into created indexes. This option may significantly
258 +# reduce index size. Example (notice missing starting '/'):
259 +# exclude path = usr/share/doc:usr/share/man:usr/src
260 +#exclude path = 
261 +
262 +# Full path name to a PM (rpm for now) binary. 
263 +#pm command = /bin/rpm
264 +
265 +# Full path name to sudo binary. 
266 +#sudo command = /usr/bin/sudo
267 +
268 +
269 +### File downloaders configuration
270 +
271 +# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default 
272 +# 'poldek@znienacka.net' is sent) 
273 +#vfile ftp sysuser as anon passwd = no
274 +
275 +# File getters configuration parameter. By this option URL handlers may be configured.
276 +# To get file from HTTP and FTP servers poldek uses its internal client (what is 
277 +# recommended), although it can be changedby this option. Others protocols handled 
278 +# by external utilities can be configured also. The syntax is:
279 +# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
280 +
281 +# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
282 +# sections (placed in fetch.conf in default configuration).
283 +# Examples:
284 +# default fetcher = ftp,http:internal
285 +# default fetcher = https:wget
286 +# default fetcher = cdrom:vfjuggle
287 +# vfjuggle is a cdrom getter supplied with poldek.
288 +#default fetcher = http,ftp: internal
289 +
290 +# Proxies for internal FTP and HTTP client may be configured in usual
291 +# way, by environment variables ftp_proxy and http_proxy, or by this option.
292 +# Its syntax is similar to "default fetcher" one:
293 +# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
294 +# Example:
295 +# proxy = http: http://w3cache.foo.org:8080
296 +#proxy = 
297 +
298 +# Comma separated list of hosts or domains which will not be accessed via proxy.
299 +# Option overrides no_proxy environment variable.
300 +# Example:
301 +# noproxy = localhost, .pl, ftp.foo.bar.org
302 +#noproxy = 
303 +
304 +# Internal HTTP and FTP client is stubborn, it retries to retrive 
305 +# file if connection breaks. This option tells it how many times
306 +# it should try.
307 +#vfile retries = 128
308 +
309 +
310 +### Installation options
311 +
312 +# Install packages in small groups instead of doing all-or-nothing 
313 +# installations.
314 +particle install = no
315 +
316 +# Do not remove downloaded packages after its successful installation.
317 +#keep downloads = no
318 +
319 +# Controls visibility of multiple package instances with different EVR.
320 +# If on, only one, highest version will be visible.
321 +#unique package names = no
322 +
323 +# Epoch autopromotion during dependency comparision. RPM specific.
324 +# Set it up if you are using system with rpm prior to 4.2.1 version.
325 +#promoteepoch = no
326 +
327 +# Confirm packages installation.
328 +#confirm installation = no
329 +
330 +# Confirm packages removal.
331 +#confirm removal = yes
332 +
333 +# Let the user select package among equivalents.
334 +choose equivalents manually = yes
335 +
336 +# Prevent package listed from being upgraded if they are already installed.
337 +# hold = kernel* dev
338 +#hold = 
339 +
340 +# Ignore package list - packages fits given mask will be invisible.
341 +# ignore   = *-smp-* foo*
342 +ignore = kernel* udev devfs
343 +
344 +# Conflicts with already installed packages are treated as resolved 
345 +# if at least one of multiple-installed package satisfies conflict. 
346 +# rpm doesn't support such cases, so --pm-nodeps is needed (use with
347 +# care).
348 +#allow duplicates = yes
349 +
350 +
351 +### RPM specific options
352 +
353 +# rpm macros can be set by this option. Examples:
354 +# rpmdef   = _install_langs pl:pl_PL:lt:lt_LT
355 +# Do not install any documentation:
356 +# rpmdef  = _netsharedpath /usr/share/info:/usr/share/man
357 +# rpmdef  = _excludedocs 1
358 +#rpmdef = 
359 +
360 +
361 +### Dependency processing settings
362 +# Subtle dependency processing options, they should not be changed 
363 +# unless you know what you are doing
364 +
365 +# Automatically install packages required by installed ones.
366 +#follow = yes
367 +
368 +# Greedy upgrades, i.e. upgrade packages which dependencies are broken
369 +# by being uninstalled ones.
370 +#greedy = yes
371 +
372 +# Be yet more greedy; if successor of orphaned package found, and this 
373 +# successor drags no packages then upgrade the package instead of process
374 +# its dependencies. Option value is implied by 'greedy' one by defalut.
375 +#aggressive greedy = yes
376 +
377 +# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
378 +# package A requires capability foo &gt;= 1.0 while package B provides "foo"
379 +# without any version. Use with care, it may cause weird dependency errors.
380 +#mercy = no
381 +
382 +# Taking into account package Obsoletes.
383 +#obsoletes = yes
384 +
385 +# Taking into account package Conflicts.
386 +#conflicts = yes
387 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/poldek/source.conf util-vserver-0.30.214/distrib/pld-ac/poldek/source.conf
388 --- util-vserver-0.30.214.org/distrib/pld-ac/poldek/source.conf 1970-01-01 01:00:00.000000000 +0100
389 +++ util-vserver-0.30.214/distrib/pld-ac/poldek/source.conf     2007-11-15 23:20:48.181172125 +0100
390 @@ -0,0 +1,85 @@
391 +# Sample poldek sources configuration
392 +# Every source is configured in his own [source] section.
393 +# Possible parameters are:
394 +# 
395 +#[source]
396 +# Unique name of the repository. 
397 +#name = foo
398 +
399 +# Type of repository index. Permitted values are 'pndir', 'pdir', 'apt', 'yum' 
400 +# and 'dir' as listed by --stl switch.
401 +#type = pndir
402 +
403 +# This parameter sets index original type i.e type of repository
404 +# from what this repository is created. Default is 'dir' - means
405 +# that directory of packages is scanned. 
406 +#original type = dir
407 +
408 +# Unique name of the repository. May be either path or URL.
409 +#path = /some/url/or/dir
410 +
411 +# If package index and packages are stored in different locations then 
412 +# prefix stands for packages path.
413 +#prefix = /some/url/or/dir
414 +
415 +# Controls visibility of multiple package instances with different EVR.
416 +# If on, only one, highest version will be visible.
417 +#douniq = no
418 +
419 +# Repository priority. If the same packages (equal names and EVR)
420 +# are available in more than one source then package from highest 
421 +# prioritized source are taken. Priority is numeric value. Lower number
422 +# means higher priority, and negative priorities are allowed. 
423 +# Priority is numeric value.
424 +#pri = 0
425 +
426 +# Controling if repository index will be implicit loaded. Set it off if 
427 +# the index should be loaded on demand only, i.e. if specified directly 
428 +# by --sn option.
429 +#auto = yes
430 +
431 +# Controls if repository index will be implicit updated. Set it off if 
432 +# the index should be updated on demand only, i.e. if specified directly 
433 +# by --sn option.
434 +#autoup = yes
435 +
436 +# Packages PGP/GPG signatures (if any) will be verified before their 
437 +# installation.
438 +#signed = no
439 +
440 +# Have the same meaning as [global] parameter. Example:
441 +# hold = kernel* dev
442 +#hold = 
443 +
444 +# Have the same meaning as [global] parameter. Example:
445 +# ignore = kernel*smp* dev
446 +#ignore = 
447 +
448 +# Parameter have the same meaning as [global] parameter.
449 +# exclude path = usr/share/doc:usr/share/man:usr/src
450 +#exclude path = 
451 +
452 +# Preferred language of package descriptions. If not set, taken from locale 
453 +# settings. Example:
454 +# lang = pl_PL:lt_LT
455 +#lang = 
456 +
457 +[source]
458 +name   = home
459 +type   = dir
460 +path   = $HOME/rpm/RPMS
461 +auto   = no 
462 +autoup = no
463 +
464 +#[source]
465 +#type   = pndir
466 +#name   = foo
467 +#path   = ftp://ftp.foo.bar.org/RPMS/
468 +#pri    =  -10  
469 +#auto   = no 
470 +#autoup = no
471 +#signed = yes
472 +#hold   = kernel*
473 +#ignore = kernel*-smp-*
474 +#dscr   = pl_PL
475 +  
476 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/rpm/macros util-vserver-0.30.214/distrib/pld-ac/rpm/macros
477 --- util-vserver-0.30.214.org/distrib/pld-ac/rpm/macros 1970-01-01 01:00:00.000000000 +0100
478 +++ util-vserver-0.30.214/distrib/pld-ac/rpm/macros     2007-11-15 23:20:48.181172125 +0100
479 @@ -0,0 +1,4 @@
480 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
481 +# you have to use at least one language beside 'C'
482 +%_install_langs                C:en:pl
483 +%_netsharedpath                /dev
484 diff -urN util-vserver-0.30.214.org/distrib/pld-ac/rpmlist.d/00.lst util-vserver-0.30.214/distrib/pld-ac/rpmlist.d/00.lst
485 --- util-vserver-0.30.214.org/distrib/pld-ac/rpmlist.d/00.lst   1970-01-01 01:00:00.000000000 +0100
486 +++ util-vserver-0.30.214/distrib/pld-ac/rpmlist.d/00.lst       2007-11-15 23:20:48.181172125 +0100
487 @@ -0,0 +1,10 @@
488 +basesystem-*.rpm
489 +dev-*.rpm
490 +FHS-*.rpm
491 +glibc-misc-*.rpm
492 +glibc-[0-9]*.rpm
493 +libgcc-[0-9]*.rpm
494 +setup-*.rpm
495 +issue-[0-9]*.rpm
496 +rpm-base-*.rpm
497 +vserver-packages-*.rpm
498 diff -urN util-vserver-0.30.214.org/distrib/pld-th/pkgs/01 util-vserver-0.30.214/distrib/pld-th/pkgs/01
499 --- util-vserver-0.30.214.org/distrib/pld-th/pkgs/01    1970-01-01 01:00:00.000000000 +0100
500 +++ util-vserver-0.30.214/distrib/pld-th/pkgs/01        2007-11-15 23:20:48.181172125 +0100
501 @@ -0,0 +1,5 @@
502 +basesystem
503 +glibc
504 +issue
505 +rpm-base
506 +vserver-packages
507 diff -urN util-vserver-0.30.214.org/distrib/pld-th/poldek/aliases.conf util-vserver-0.30.214/distrib/pld-th/poldek/aliases.conf
508 --- util-vserver-0.30.214.org/distrib/pld-th/poldek/aliases.conf        1970-01-01 01:00:00.000000000 +0100
509 +++ util-vserver-0.30.214/distrib/pld-th/poldek/aliases.conf    2007-11-15 23:20:48.181172125 +0100
510 @@ -0,0 +1,30 @@
511 +# System wide aliases
512 +# ls
513 +ll = ls -l
514 +llu = ls -lu
515 +llU = ls -lU
516 +lli = ls -lI
517 +
518 +# install
519 +freshen = install -FN
520 +upgrade = install -F
521 +
522 +# for backward compatybility, greedy is on by default now
523 +greedy-upgrade = install -FG
524 +
525 +just-install = install -IN
526 +
527 +# search
528 +what-requires = search -r
529 +what-provides = search -p
530 +rsearch = search --perlre
531 +
532 +exit = quit
533 +
534 +# for fun
535 +#ls = uninstall kernel
536 +
537 +less = !less
538 +grep = !grep
539 +awk  = !awk
540 +
541 diff -urN util-vserver-0.30.214.org/distrib/pld-th/poldek/fetch.conf util-vserver-0.30.214/distrib/pld-th/poldek/fetch.conf
542 --- util-vserver-0.30.214.org/distrib/pld-th/poldek/fetch.conf  1970-01-01 01:00:00.000000000 +0100
543 +++ util-vserver-0.30.214/distrib/pld-th/poldek/fetch.conf      2007-11-15 23:20:48.181172125 +0100
544 @@ -0,0 +1,62 @@
545 +# Configuration of poldek external file getters. Each [fetcher] section 
546 +# declares one external downloader. The syntax is:
547 +# [fetcher]
548 +# name  = NAME
549 +# proto = PROTOCOL[ ,PROTOCOL... ]
550 +# cmd   = CMD [OPTION...] DESTINATION-MACRO URL-MACRO
551 +# Possible parameters are:
552 +#
553 +#[fetcher]
554 +# Unique name of the fetcher. This is an optional parameter, if not set then 
555 +# name is taken from the "cmd" parameter value as "$(basename $cmd)". 
556 +#name = foo
557 +
558 +# Protocol or protocols supported by fetcher. Name of the protocol can be 
559 +# completely arbitrary, i.e. if you can handle protocol "foo" by writing
560 +# a script which takes URLs in form 'foo://'. 
561 +#proto = foo,bar
562 +
563 +# Parameter specifies an external command and its invoking syntax.
564 +# The syntax of "cmd" is:
565 +# cmd = COMMAND [ OPTION... ] {%d,%D}  {%p,%P}[n]
566 +# Where COMMAND is the name or full path of command, OPTION is command specific 
567 +# options. Macro '%d' is replaced with cache directory, '%D' is replaced with 
568 +# 'cache directory/file basename', and '%p' with file basename, %P with file full 
569 +# path (URL).  Optional suffix 'n' with %p and %P means that command can be 
570 +# invoked with multiple files at once.
571 +#cmd = foogetter.sh -N %D %Pn
572 +
573 +##Configured fetchers
574 +[fetcher]
575 +proto = cdrom 
576 +cmd   = vfjuggle %d %Pn
577 +
578 +[fetcher]
579 +proto = http,ftp,https
580 +cmd   = wget -N --dot-style=binary -P %d %Pn
581 +
582 +[fetcher]
583 +proto = http,ftp 
584 +cmd   = snarf %P %D
585 +
586 +[fetcher]
587 +proto = https 
588 +cmd   = curl %P -o %D
589 +
590 +[fetcher]
591 +proto = rsync
592 +cmd   = rsync -v %P %d
593 +
594 +[fetcher]
595 +proto = smb
596 +cmd   = vfsmb -v %P %d
597 +
598 +#[fetcher]
599 +#proto = ssh 
600 +#cmd   = vfssh.sh %d %Pn
601 +
602 +#[fetcher]
603 +#proto = foo 
604 +#cmd   = foo.sh %d %Pn
605
606 +  
607 diff -urN util-vserver-0.30.214.org/distrib/pld-th/poldek/pld-source.conf util-vserver-0.30.214/distrib/pld-th/poldek/pld-source.conf
608 --- util-vserver-0.30.214.org/distrib/pld-th/poldek/pld-source.conf     1970-01-01 01:00:00.000000000 +0100
609 +++ util-vserver-0.30.214/distrib/pld-th/poldek/pld-source.conf 2007-11-15 23:20:48.181172125 +0100
610 @@ -0,0 +1,51 @@
611 +# PLD <http://www.pld-linux.org/>
612 +
613 +_pld_arch   = %ARCH%
614 +_pld_prefix = ftp://ftp.th.pld-linux.org/dists/th
615 +## Some mirrors
616 +## You can use them if you have better connection there
617 +# CI TASK:
618 +#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/th
619 +
620 +
621 +_th_idxtype = pndir
622 +
623 +# PLD 3.0 (Th)
624 +[source]
625 +type  = %{_th_idxtype}
626 +name  = th
627 +path  = %{_pld_prefix}/PLD/%{_pld_arch}/RPMS/
628 +
629 +[source]
630 +type  = %{_th_idxtype}
631 +name  = th
632 +path  = %{_pld_prefix}/PLD/noarch/RPMS/
633 +
634 +[source]
635 +type  = %{_th_idxtype}
636 +name  = th-updates-security
637 +path  = %{_pld_prefix}/updates-security/%{_pld_arch}/RPMS/
638 +
639 +[source]
640 +type  = %{_th_idxtype}
641 +name  = th-updates-general
642 +path  = %{_pld_prefix}/updates-general/%{_pld_arch}/RPMS/
643 +noauto = yes
644 +
645 +#[source]
646 +#type  = %{_th_idxtype}
647 +#name  = th-supported
648 +#path  = %{_pld_prefix}/supported/%{_pld_arch}/RPMS/
649 +#noauto        = yes
650 +
651 +[source]
652 +type  = %{_th_idxtype}
653 +name  = th-ready
654 +path  = %{_pld_prefix}/ready/%{_pld_arch}/RPMS/
655 +noauto = yes
656 +
657 +[source]
658 +type  = %{_th_idxtype}
659 +name  = th-test
660 +path  = %{_pld_prefix}/test/%{_pld_arch}/RPMS/
661 +noauto = yes
662 diff -urN util-vserver-0.30.214.org/distrib/pld-th/poldek/poldek.conf util-vserver-0.30.214/distrib/pld-th/poldek/poldek.conf
663 --- util-vserver-0.30.214.org/distrib/pld-th/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
664 +++ util-vserver-0.30.214/distrib/pld-th/poldek/poldek.conf     2007-11-15 23:20:48.184505622 +0100
665 @@ -0,0 +1,182 @@
666 +# poldek main configuration file.
667 +
668 +# Some macros. Macros are local, they are not visible in included files
669 +# and macros declared in them are not visible to includer.
670 +# Macros names starts with underscore '_'.
671 +#
672 +_distro  = pld
673 +
674 +# Both local and remote files may be included. Included files may not contain
675 +# [global] section, it will be ignored anyway. 
676 +%include %{_distro}-source.conf
677 +
678 +# local sources
679 +%include source.conf
680 +
681 +# External downloaders configuration, not necessary in most cases, cause
682 +# to internal HTTP and FTP client.
683 +#%include fetch.conf
684 +
685 +[global]
686 +
687 +
688 +# This parameter allows to configure the default repository index type.
689 +#default index type = pndir
690 +
691 +# Cache directory for downloaded files. NOTE: that parent directory of cachedir 
692 +# must exists.
693 +#cachedir = $HOME/.poldek-cache
694 +
695 +# Switch to ordinary user at startup when executed by root
696 +#runas = poldek
697 +
698 +# Permits using root privileges for installation only. Automatically turned
699 +# on when poldek executed as ordinary user.
700 +#use sudo = no
701 +
702 +# Load /etc/apt/sources.list. 
703 +#load apt sources list = no
704 +
705 +# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
706 +# This option is a workaround for broken zlib linked into librpm; with enabled 
707 +# 'auto zlib in rpm' poldek tries to detect such case and then enables external
708 +# *.gz handling automatically.
709 +#vfile external compress = no
710 +
711 +# Auto detection of zlib linked into librpm. See 'vfile external compress' 
712 +# description.
713 +#auto zlib in rpm = yes
714 +
715 +# Automatically download whole index if incremental update fails.
716 +#autoupa = yes
717 +
718 +# Do not save given paths into created indexes. This option may significantly
719 +# reduce index size. Example (notice missing starting '/'):
720 +# exclude path = usr/share/doc:usr/share/man:usr/src
721 +#exclude path = 
722 +
723 +# Full path name to a PM (rpm for now) binary. 
724 +#pm command = /bin/rpm
725 +
726 +# Full path name to sudo binary. 
727 +#sudo command = /usr/bin/sudo
728 +
729 +
730 +### File downloaders configuration
731 +
732 +# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default 
733 +# 'poldek@znienacka.net' is sent) 
734 +#vfile ftp sysuser as anon passwd = no
735 +
736 +# File getters configuration parameter. By this option URL handlers may be configured.
737 +# To get file from HTTP and FTP servers poldek uses its internal client (what is 
738 +# recommended), although it can be changedby this option. Others protocols handled 
739 +# by external utilities can be configured also. The syntax is:
740 +# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
741 +
742 +# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
743 +# sections (placed in fetch.conf in default configuration).
744 +# Examples:
745 +# default fetcher = ftp,http:internal
746 +# default fetcher = https:wget
747 +# default fetcher = cdrom:vfjuggle
748 +# vfjuggle is a cdrom getter supplied with poldek.
749 +#default fetcher = http,ftp: internal
750 +
751 +# Proxies for internal FTP and HTTP client may be configured in usual
752 +# way, by environment variables ftp_proxy and http_proxy, or by this option.
753 +# Its syntax is similar to "default fetcher" one:
754 +# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
755 +# Example:
756 +# proxy = http: http://w3cache.foo.org:8080
757 +#proxy = 
758 +
759 +# Comma separated list of hosts or domains which will not be accessed via proxy.
760 +# Option overrides no_proxy environment variable.
761 +# Example:
762 +# noproxy = localhost, .pl, ftp.foo.bar.org
763 +#noproxy = 
764 +
765 +# Internal HTTP and FTP client is stubborn, it retries to retrive 
766 +# file if connection breaks. This option tells it how many times
767 +# it should try.
768 +#vfile retries = 128
769 +
770 +
771 +### Installation options
772 +
773 +# Install packages in small groups instead of doing all-or-nothing 
774 +# installations.
775 +particle install = no
776 +
777 +# Do not remove downloaded packages after its successful installation.
778 +#keep downloads = no
779 +
780 +# Controls visibility of multiple package instances with different EVR.
781 +# If on, only one, highest version will be visible.
782 +#unique package names = no
783 +
784 +# Epoch autopromotion during dependency comparision. RPM specific.
785 +# Set it up if you are using system with rpm prior to 4.2.1 version.
786 +#promoteepoch = no
787 +
788 +# Confirm packages installation.
789 +#confirm installation = no
790 +
791 +# Confirm packages removal.
792 +#confirm removal = yes
793 +
794 +# Let the user select package among equivalents.
795 +choose equivalents manually = yes
796 +
797 +# Prevent package listed from being upgraded if they are already installed.
798 +# hold = kernel* dev
799 +#hold = 
800 +
801 +# Ignore package list - packages fits given mask will be invisible.
802 +# ignore   = *-smp-* foo*
803 +ignore = kernel* udev devfs
804 +
805 +# Conflicts with already installed packages are treated as resolved 
806 +# if at least one of multiple-installed package satisfies conflict. 
807 +# rpm doesn't support such cases, so --pm-nodeps is needed (use with
808 +# care).
809 +#allow duplicates = yes
810 +
811 +
812 +### RPM specific options
813 +
814 +# rpm macros can be set by this option. Examples:
815 +# rpmdef   = _install_langs pl:pl_PL:lt:lt_LT
816 +# Do not install any documentation:
817 +# rpmdef  = _netsharedpath /usr/share/info:/usr/share/man
818 +# rpmdef  = _excludedocs 1
819 +#rpmdef = 
820 +
821 +
822 +### Dependency processing settings
823 +# Subtle dependency processing options, they should not be changed 
824 +# unless you know what you are doing
825 +
826 +# Automatically install packages required by installed ones.
827 +#follow = yes
828 +
829 +# Greedy upgrades, i.e. upgrade packages which dependencies are broken
830 +# by being uninstalled ones.
831 +#greedy = yes
832 +
833 +# Be yet more greedy; if successor of orphaned package found, and this 
834 +# successor drags no packages then upgrade the package instead of process
835 +# its dependencies. Option value is implied by 'greedy' one by defalut.
836 +#aggressive greedy = yes
837 +
838 +# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
839 +# package A requires capability foo &gt;= 1.0 while package B provides "foo"
840 +# without any version. Use with care, it may cause weird dependency errors.
841 +#mercy = no
842 +
843 +# Taking into account package Obsoletes.
844 +#obsoletes = yes
845 +
846 +# Taking into account package Conflicts.
847 +#conflicts = yes
848 diff -urN util-vserver-0.30.214.org/distrib/pld-th/poldek/source.conf util-vserver-0.30.214/distrib/pld-th/poldek/source.conf
849 --- util-vserver-0.30.214.org/distrib/pld-th/poldek/source.conf 1970-01-01 01:00:00.000000000 +0100
850 +++ util-vserver-0.30.214/distrib/pld-th/poldek/source.conf     2007-11-15 23:20:48.184505622 +0100
851 @@ -0,0 +1,85 @@
852 +# Sample poldek sources configuration
853 +# Every source is configured in his own [source] section.
854 +# Possible parameters are:
855 +# 
856 +#[source]
857 +# Unique name of the repository. 
858 +#name = foo
859 +
860 +# Type of repository index. Permitted values are 'pndir', 'pdir', 'apt', 'yum' 
861 +# and 'dir' as listed by --stl switch.
862 +#type = pndir
863 +
864 +# This parameter sets index original type i.e type of repository
865 +# from what this repository is created. Default is 'dir' - means
866 +# that directory of packages is scanned. 
867 +#original type = dir
868 +
869 +# Unique name of the repository. May be either path or URL.
870 +#path = /some/url/or/dir
871 +
872 +# If package index and packages are stored in different locations then 
873 +# prefix stands for packages path.
874 +#prefix = /some/url/or/dir
875 +
876 +# Controls visibility of multiple package instances with different EVR.
877 +# If on, only one, highest version will be visible.
878 +#douniq = no
879 +
880 +# Repository priority. If the same packages (equal names and EVR)
881 +# are available in more than one source then package from highest 
882 +# prioritized source are taken. Priority is numeric value. Lower number
883 +# means higher priority, and negative priorities are allowed. 
884 +# Priority is numeric value.
885 +#pri = 0
886 +
887 +# Controling if repository index will be implicit loaded. Set it off if 
888 +# the index should be loaded on demand only, i.e. if specified directly 
889 +# by --sn option.
890 +#auto = yes
891 +
892 +# Controls if repository index will be implicit updated. Set it off if 
893 +# the index should be updated on demand only, i.e. if specified directly 
894 +# by --sn option.
895 +#autoup = yes
896 +
897 +# Packages PGP/GPG signatures (if any) will be verified before their 
898 +# installation.
899 +#signed = no
900 +
901 +# Have the same meaning as [global] parameter. Example:
902 +# hold = kernel* dev
903 +#hold = 
904 +
905 +# Have the same meaning as [global] parameter. Example:
906 +# ignore = kernel*smp* dev
907 +#ignore = 
908 +
909 +# Parameter have the same meaning as [global] parameter.
910 +# exclude path = usr/share/doc:usr/share/man:usr/src
911 +#exclude path = 
912 +
913 +# Preferred language of package descriptions. If not set, taken from locale 
914 +# settings. Example:
915 +# lang = pl_PL:lt_LT
916 +#lang = 
917 +
918 +[source]
919 +name   = home
920 +type   = dir
921 +path   = $HOME/rpm/RPMS
922 +auto   = no 
923 +autoup = no
924 +
925 +#[source]
926 +#type   = pndir
927 +#name   = foo
928 +#path   = ftp://ftp.foo.bar.org/RPMS/
929 +#pri    =  -10  
930 +#auto   = no 
931 +#autoup = no
932 +#signed = yes
933 +#hold   = kernel*
934 +#ignore = kernel*-smp-*
935 +#dscr   = pl_PL
936 +  
937 diff -urN util-vserver-0.30.214.org/distrib/pld-th/rpm/macros util-vserver-0.30.214/distrib/pld-th/rpm/macros
938 --- util-vserver-0.30.214.org/distrib/pld-th/rpm/macros 1970-01-01 01:00:00.000000000 +0100
939 +++ util-vserver-0.30.214/distrib/pld-th/rpm/macros     2007-11-15 23:20:48.184505622 +0100
940 @@ -0,0 +1,4 @@
941 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
942 +# you have to use at least one language beside 'C'
943 +%_install_langs                C:en:pl
944 +%_netsharedpath                /dev
945 diff -urN util-vserver-0.30.214.org/distrib/pld-th/rpmlist.d/00.lst util-vserver-0.30.214/distrib/pld-th/rpmlist.d/00.lst
946 --- util-vserver-0.30.214.org/distrib/pld-th/rpmlist.d/00.lst   1970-01-01 01:00:00.000000000 +0100
947 +++ util-vserver-0.30.214/distrib/pld-th/rpmlist.d/00.lst       2007-11-15 23:20:48.184505622 +0100
948 @@ -0,0 +1,10 @@
949 +basesystem-*.rpm
950 +dev-*.rpm
951 +FHS-*.rpm
952 +glibc-misc-*.rpm
953 +glibc-[0-9]*.rpm
954 +libgcc-[0-9]*.rpm
955 +setup-*.rpm
956 +issue-[0-9]*.rpm
957 +rpm-base-*.rpm
958 +vserver-packages-*.rpm
959 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/pkgs/01 util-vserver-0.30.214/distrib/pld-ti/pkgs/01
960 --- util-vserver-0.30.214.org/distrib/pld-ti/pkgs/01    1970-01-01 01:00:00.000000000 +0100
961 +++ util-vserver-0.30.214/distrib/pld-ti/pkgs/01        2007-11-15 23:20:48.217840583 +0100
962 @@ -0,0 +1,5 @@
963 +basesystem
964 +glibc
965 +issue
966 +rpm-base
967 +vserver-packages
968 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/poldek/aliases.conf util-vserver-0.30.214/distrib/pld-ti/poldek/aliases.conf
969 --- util-vserver-0.30.214.org/distrib/pld-ti/poldek/aliases.conf        1970-01-01 01:00:00.000000000 +0100
970 +++ util-vserver-0.30.214/distrib/pld-ti/poldek/aliases.conf    2007-11-15 23:20:48.217840583 +0100
971 @@ -0,0 +1,30 @@
972 +# System wide aliases
973 +# ls
974 +ll = ls -l
975 +llu = ls -lu
976 +llU = ls -lU
977 +lli = ls -lI
978 +
979 +# install
980 +freshen = install -FN
981 +upgrade = install -F
982 +
983 +# for backward compatybility, greedy is on by default now
984 +greedy-upgrade = install -FG
985 +
986 +just-install = install -IN
987 +
988 +# search
989 +what-requires = search -r
990 +what-provides = search -p
991 +rsearch = search --perlre
992 +
993 +exit = quit
994 +
995 +# for fun
996 +#ls = uninstall kernel
997 +
998 +less = !less
999 +grep = !grep
1000 +awk  = !awk
1001 +
1002 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/poldek/fetch.conf util-vserver-0.30.214/distrib/pld-ti/poldek/fetch.conf
1003 --- util-vserver-0.30.214.org/distrib/pld-ti/poldek/fetch.conf  1970-01-01 01:00:00.000000000 +0100
1004 +++ util-vserver-0.30.214/distrib/pld-ti/poldek/fetch.conf      2007-11-15 23:20:48.217840583 +0100
1005 @@ -0,0 +1,62 @@
1006 +# Configuration of poldek external file getters. Each [fetcher] section 
1007 +# declares one external downloader. The syntax is:
1008 +# [fetcher]
1009 +# name  = NAME
1010 +# proto = PROTOCOL[ ,PROTOCOL... ]
1011 +# cmd   = CMD [OPTION...] DESTINATION-MACRO URL-MACRO
1012 +# Possible parameters are:
1013 +#
1014 +#[fetcher]
1015 +# Unique name of the fetcher. This is an optional parameter, if not set then 
1016 +# name is taken from the "cmd" parameter value as "$(basename $cmd)". 
1017 +#name = foo
1018 +
1019 +# Protocol or protocols supported by fetcher. Name of the protocol can be 
1020 +# completely arbitrary, i.e. if you can handle protocol "foo" by writing
1021 +# a script which takes URLs in form 'foo://'. 
1022 +#proto = foo,bar
1023 +
1024 +# Parameter specifies an external command and its invoking syntax.
1025 +# The syntax of "cmd" is:
1026 +# cmd = COMMAND [ OPTION... ] {%d,%D}  {%p,%P}[n]
1027 +# Where COMMAND is the name or full path of command, OPTION is command specific 
1028 +# options. Macro '%d' is replaced with cache directory, '%D' is replaced with 
1029 +# 'cache directory/file basename', and '%p' with file basename, %P with file full 
1030 +# path (URL).  Optional suffix 'n' with %p and %P means that command can be 
1031 +# invoked with multiple files at once.
1032 +#cmd = foogetter.sh -N %D %Pn
1033 +
1034 +##Configured fetchers
1035 +[fetcher]
1036 +proto = cdrom 
1037 +cmd   = vfjuggle %d %Pn
1038 +
1039 +[fetcher]
1040 +proto = http,ftp,https
1041 +cmd   = wget -N --dot-style=binary -P %d %Pn
1042 +
1043 +[fetcher]
1044 +proto = http,ftp 
1045 +cmd   = snarf %P %D
1046 +
1047 +[fetcher]
1048 +proto = https 
1049 +cmd   = curl %P -o %D
1050 +
1051 +[fetcher]
1052 +proto = rsync
1053 +cmd   = rsync -v %P %d
1054 +
1055 +[fetcher]
1056 +proto = smb
1057 +cmd   = vfsmb -v %P %d
1058 +
1059 +#[fetcher]
1060 +#proto = ssh 
1061 +#cmd   = vfssh.sh %d %Pn
1062 +
1063 +#[fetcher]
1064 +#proto = foo 
1065 +#cmd   = foo.sh %d %Pn
1066
1067 +  
1068 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/poldek/pld-source.conf util-vserver-0.30.214/distrib/pld-ti/poldek/pld-source.conf
1069 --- util-vserver-0.30.214.org/distrib/pld-ti/poldek/pld-source.conf     1970-01-01 01:00:00.000000000 +0100
1070 +++ util-vserver-0.30.214/distrib/pld-ti/poldek/pld-source.conf 2007-11-15 23:20:48.217840583 +0100
1071 @@ -0,0 +1,46 @@
1072 +# PLD Titanium
1073 +# Unofficial version of PLD Linux Distribution
1074 +# http://www.pld-linux.org/Titanium
1075 +
1076 +_arch   = %ARCH%
1077 +_prefix = ftp://ftp.titanium.pld-linux.org/branches/titanium
1078 +
1079 +_type = pndir
1080 +
1081 +[source]
1082 +type   = %{_type}
1083 +name   = titanium
1084 +path   = %{_prefix}/PLD/%{_arch}/RPMS/
1085 +
1086 +[source]
1087 +type   = %{_type}
1088 +name   = titanium
1089 +path   = %{_prefix}/PLD/noarch/RPMS/
1090 +
1091 +[source]
1092 +type   = %{_type}
1093 +name   = titanium-ready
1094 +path   = %{_prefix}/ready/%{_arch}/RPMS/
1095 +auto   = no
1096 +autoup = no
1097 +
1098 +[source]
1099 +type   = %{_type}
1100 +name   = titanium-ready
1101 +path   = %{_prefix}/ready/noarch/RPMS/
1102 +auto   = no
1103 +autoup = no
1104 +
1105 +[source]
1106 +type   = %{_type}
1107 +name   = titanium-test
1108 +path   = %{_prefix}/test/%{_arch}/RPMS/
1109 +auto   = no
1110 +autoup = no
1111 +
1112 +[source]
1113 +type   = %{_type}
1114 +name   = titanium-test
1115 +path   = %{_prefix}/test/noarch/RPMS/
1116 +auto   = no
1117 +autoup = no
1118 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/poldek/poldek.conf util-vserver-0.30.214/distrib/pld-ti/poldek/poldek.conf
1119 --- util-vserver-0.30.214.org/distrib/pld-ti/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
1120 +++ util-vserver-0.30.214/distrib/pld-ti/poldek/poldek.conf     2007-11-15 23:20:48.217840583 +0100
1121 @@ -0,0 +1,182 @@
1122 +# poldek main configuration file.
1123 +
1124 +# Some macros. Macros are local, they are not visible in included files
1125 +# and macros declared in them are not visible to includer.
1126 +# Macros names starts with underscore '_'.
1127 +#
1128 +_distro  = pld
1129 +
1130 +# Both local and remote files may be included. Included files may not contain
1131 +# [global] section, it will be ignored anyway. 
1132 +%include %{_distro}-source.conf
1133 +
1134 +# local sources
1135 +%include source.conf
1136 +
1137 +# External downloaders configuration, not necessary in most cases, cause
1138 +# to internal HTTP and FTP client.
1139 +#%include fetch.conf
1140 +
1141 +[global]
1142 +
1143 +
1144 +# This parameter allows to configure the default repository index type.
1145 +#default index type = pndir
1146 +
1147 +# Cache directory for downloaded files. NOTE: that parent directory of cachedir 
1148 +# must exists.
1149 +#cachedir = $HOME/.poldek-cache
1150 +
1151 +# Switch to ordinary user at startup when executed by root
1152 +#runas = poldek
1153 +
1154 +# Permits using root privileges for installation only. Automatically turned
1155 +# on when poldek executed as ordinary user.
1156 +#use sudo = no
1157 +
1158 +# Load /etc/apt/sources.list. 
1159 +#load apt sources list = no
1160 +
1161 +# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
1162 +# This option is a workaround for broken zlib linked into librpm; with enabled 
1163 +# 'auto zlib in rpm' poldek tries to detect such case and then enables external
1164 +# *.gz handling automatically.
1165 +#vfile external compress = no
1166 +
1167 +# Auto detection of zlib linked into librpm. See 'vfile external compress' 
1168 +# description.
1169 +#auto zlib in rpm = yes
1170 +
1171 +# Automatically download whole index if incremental update fails.
1172 +#autoupa = yes
1173 +
1174 +# Do not save given paths into created indexes. This option may significantly
1175 +# reduce index size. Example (notice missing starting '/'):
1176 +# exclude path = usr/share/doc:usr/share/man:usr/src
1177 +#exclude path = 
1178 +
1179 +# Full path name to a PM (rpm for now) binary. 
1180 +#pm command = /bin/rpm
1181 +
1182 +# Full path name to sudo binary. 
1183 +#sudo command = /usr/bin/sudo
1184 +
1185 +
1186 +### File downloaders configuration
1187 +
1188 +# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default 
1189 +# 'poldek@znienacka.net' is sent) 
1190 +#vfile ftp sysuser as anon passwd = no
1191 +
1192 +# File getters configuration parameter. By this option URL handlers may be configured.
1193 +# To get file from HTTP and FTP servers poldek uses its internal client (what is 
1194 +# recommended), although it can be changedby this option. Others protocols handled 
1195 +# by external utilities can be configured also. The syntax is:
1196 +# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
1197 +
1198 +# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
1199 +# sections (placed in fetch.conf in default configuration).
1200 +# Examples:
1201 +# default fetcher = ftp,http:internal
1202 +# default fetcher = https:wget
1203 +# default fetcher = cdrom:vfjuggle
1204 +# vfjuggle is a cdrom getter supplied with poldek.
1205 +#default fetcher = http,ftp: internal
1206 +
1207 +# Proxies for internal FTP and HTTP client may be configured in usual
1208 +# way, by environment variables ftp_proxy and http_proxy, or by this option.
1209 +# Its syntax is similar to "default fetcher" one:
1210 +# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
1211 +# Example:
1212 +# proxy = http: http://w3cache.foo.org:8080
1213 +#proxy = 
1214 +
1215 +# Comma separated list of hosts or domains which will not be accessed via proxy.
1216 +# Option overrides no_proxy environment variable.
1217 +# Example:
1218 +# noproxy = localhost, .pl, ftp.foo.bar.org
1219 +#noproxy = 
1220 +
1221 +# Internal HTTP and FTP client is stubborn, it retries to retrive 
1222 +# file if connection breaks. This option tells it how many times
1223 +# it should try.
1224 +#vfile retries = 128
1225 +
1226 +
1227 +### Installation options
1228 +
1229 +# Install packages in small groups instead of doing all-or-nothing 
1230 +# installations.
1231 +particle install = no
1232 +
1233 +# Do not remove downloaded packages after its successful installation.
1234 +#keep downloads = no
1235 +
1236 +# Controls visibility of multiple package instances with different EVR.
1237 +# If on, only one, highest version will be visible.
1238 +#unique package names = no
1239 +
1240 +# Epoch autopromotion during dependency comparision. RPM specific.
1241 +# Set it up if you are using system with rpm prior to 4.2.1 version.
1242 +#promoteepoch = no
1243 +
1244 +# Confirm packages installation.
1245 +#confirm installation = no
1246 +
1247 +# Confirm packages removal.
1248 +#confirm removal = yes
1249 +
1250 +# Let the user select package among equivalents.
1251 +choose equivalents manually = yes
1252 +
1253 +# Prevent package listed from being upgraded if they are already installed.
1254 +# hold = kernel* dev
1255 +#hold = 
1256 +
1257 +# Ignore package list - packages fits given mask will be invisible.
1258 +# ignore   = *-smp-* foo*
1259 +ignore = kernel* udev devfs
1260 +
1261 +# Conflicts with already installed packages are treated as resolved 
1262 +# if at least one of multiple-installed package satisfies conflict. 
1263 +# rpm doesn't support such cases, so --pm-nodeps is needed (use with
1264 +# care).
1265 +#allow duplicates = yes
1266 +
1267 +
1268 +### RPM specific options
1269 +
1270 +# rpm macros can be set by this option. Examples:
1271 +# rpmdef   = _install_langs pl:pl_PL:lt:lt_LT
1272 +# Do not install any documentation:
1273 +# rpmdef  = _netsharedpath /usr/share/info:/usr/share/man
1274 +# rpmdef  = _excludedocs 1
1275 +#rpmdef = 
1276 +
1277 +
1278 +### Dependency processing settings
1279 +# Subtle dependency processing options, they should not be changed 
1280 +# unless you know what you are doing
1281 +
1282 +# Automatically install packages required by installed ones.
1283 +#follow = yes
1284 +
1285 +# Greedy upgrades, i.e. upgrade packages which dependencies are broken
1286 +# by being uninstalled ones.
1287 +#greedy = yes
1288 +
1289 +# Be yet more greedy; if successor of orphaned package found, and this 
1290 +# successor drags no packages then upgrade the package instead of process
1291 +# its dependencies. Option value is implied by 'greedy' one by defalut.
1292 +#aggressive greedy = yes
1293 +
1294 +# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
1295 +# package A requires capability foo &gt;= 1.0 while package B provides "foo"
1296 +# without any version. Use with care, it may cause weird dependency errors.
1297 +#mercy = no
1298 +
1299 +# Taking into account package Obsoletes.
1300 +#obsoletes = yes
1301 +
1302 +# Taking into account package Conflicts.
1303 +#conflicts = yes
1304 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/poldek/source.conf util-vserver-0.30.214/distrib/pld-ti/poldek/source.conf
1305 --- util-vserver-0.30.214.org/distrib/pld-ti/poldek/source.conf 1970-01-01 01:00:00.000000000 +0100
1306 +++ util-vserver-0.30.214/distrib/pld-ti/poldek/source.conf     2007-11-15 23:20:48.217840583 +0100
1307 @@ -0,0 +1,85 @@
1308 +# Sample poldek sources configuration
1309 +# Every source is configured in his own [source] section.
1310 +# Possible parameters are:
1311 +# 
1312 +#[source]
1313 +# Unique name of the repository. 
1314 +#name = foo
1315 +
1316 +# Type of repository index. Permitted values are 'pndir', 'pdir', 'apt', 'yum' 
1317 +# and 'dir' as listed by --stl switch.
1318 +#type = pndir
1319 +
1320 +# This parameter sets index original type i.e type of repository
1321 +# from what this repository is created. Default is 'dir' - means
1322 +# that directory of packages is scanned. 
1323 +#original type = dir
1324 +
1325 +# Unique name of the repository. May be either path or URL.
1326 +#path = /some/url/or/dir
1327 +
1328 +# If package index and packages are stored in different locations then 
1329 +# prefix stands for packages path.
1330 +#prefix = /some/url/or/dir
1331 +
1332 +# Controls visibility of multiple package instances with different EVR.
1333 +# If on, only one, highest version will be visible.
1334 +#douniq = no
1335 +
1336 +# Repository priority. If the same packages (equal names and EVR)
1337 +# are available in more than one source then package from highest 
1338 +# prioritized source are taken. Priority is numeric value. Lower number
1339 +# means higher priority, and negative priorities are allowed. 
1340 +# Priority is numeric value.
1341 +#pri = 0
1342 +
1343 +# Controling if repository index will be implicit loaded. Set it off if 
1344 +# the index should be loaded on demand only, i.e. if specified directly 
1345 +# by --sn option.
1346 +#auto = yes
1347 +
1348 +# Controls if repository index will be implicit updated. Set it off if 
1349 +# the index should be updated on demand only, i.e. if specified directly 
1350 +# by --sn option.
1351 +#autoup = yes
1352 +
1353 +# Packages PGP/GPG signatures (if any) will be verified before their 
1354 +# installation.
1355 +#signed = no
1356 +
1357 +# Have the same meaning as [global] parameter. Example:
1358 +# hold = kernel* dev
1359 +#hold = 
1360 +
1361 +# Have the same meaning as [global] parameter. Example:
1362 +# ignore = kernel*smp* dev
1363 +#ignore = 
1364 +
1365 +# Parameter have the same meaning as [global] parameter.
1366 +# exclude path = usr/share/doc:usr/share/man:usr/src
1367 +#exclude path = 
1368 +
1369 +# Preferred language of package descriptions. If not set, taken from locale 
1370 +# settings. Example:
1371 +# lang = pl_PL:lt_LT
1372 +#lang = 
1373 +
1374 +[source]
1375 +name   = home
1376 +type   = dir
1377 +path   = $HOME/rpm/RPMS
1378 +auto   = no 
1379 +autoup = no
1380 +
1381 +#[source]
1382 +#type   = pndir
1383 +#name   = foo
1384 +#path   = ftp://ftp.foo.bar.org/RPMS/
1385 +#pri    =  -10  
1386 +#auto   = no 
1387 +#autoup = no
1388 +#signed = yes
1389 +#hold   = kernel*
1390 +#ignore = kernel*-smp-*
1391 +#dscr   = pl_PL
1392 +  
1393 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/rpm/macros util-vserver-0.30.214/distrib/pld-ti/rpm/macros
1394 --- util-vserver-0.30.214.org/distrib/pld-ti/rpm/macros 1970-01-01 01:00:00.000000000 +0100
1395 +++ util-vserver-0.30.214/distrib/pld-ti/rpm/macros     2007-11-15 23:20:48.221174080 +0100
1396 @@ -0,0 +1,4 @@
1397 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
1398 +# you have to use at least one language beside 'C'
1399 +%_install_langs                C:en:pl
1400 +%_netsharedpath                /dev
1401 diff -urN util-vserver-0.30.214.org/distrib/pld-ti/rpmlist.d/00.lst util-vserver-0.30.214/distrib/pld-ti/rpmlist.d/00.lst
1402 --- util-vserver-0.30.214.org/distrib/pld-ti/rpmlist.d/00.lst   1970-01-01 01:00:00.000000000 +0100
1403 +++ util-vserver-0.30.214/distrib/pld-ti/rpmlist.d/00.lst       2007-11-15 23:20:48.221174080 +0100
1404 @@ -0,0 +1,10 @@
1405 +basesystem-*.rpm
1406 +dev-*.rpm
1407 +FHS-*.rpm
1408 +glibc-misc-*.rpm
1409 +glibc-[0-9]*.rpm
1410 +libgcc-[0-9]*.rpm
1411 +setup-*.rpm
1412 +issue-[0-9]*.rpm
1413 +rpm-base-*.rpm
1414 +vserver-packages-*.rpm
1415 diff -urN util-vserver-0.30.214.org/scripts/functions util-vserver-0.30.214/scripts/functions
1416 --- util-vserver-0.30.214.org/scripts/functions 2007-09-02 22:06:41.000000000 +0200
1417 +++ util-vserver-0.30.214/scripts/functions     2007-11-15 23:20:48.221174080 +0100
1418 @@ -403,6 +403,20 @@
1419      fi
1420  }
1421  
1422 +function _pkgSetVarsPoldek
1423 +{
1424 +    if test -n "$PKGDIR"; then
1425 +       findDir POLDEKETCDIR    $PKGDIR/poldeketc      $PKGDIR/base/poldek/etc       /etc/poldek
1426 +       findDir POLDEKCACHEDIR  $PKGDIR/poldek-cache   $PKGDIR/base/poldek/cache
1427 +    else
1428 +       findDir POLDEKETCDIR    "$VDIR"/etc/poldek      /etc/poldek
1429 +       findDir POLDEKCACHEDIR  "$VDIR"/var/tmp/poldek-cache
1430 +    fi
1431 +
1432 +    findFile POLDEK_CONFIG "$POLDEKETCDIR"/poldek.conf ""
1433 +    test -z "$POLDEK_CONFIG" || export POLDEK_CONFIG
1434 +}
1435 +
1436  
1437  function _pkgMountBase
1438  {
1439 @@ -476,6 +490,7 @@
1440             rpm)        _pkgSetVarsRPM;;
1441             apt)        _pkgSetVarsApt;;
1442             yum)        _pkgSetVarsYum;;
1443 +           poldek)     _pkgSetVarsPoldek;;
1444             *)          echo "Unknown packaging flavor" >&2; exit 1;;
1445         esac
1446      done
1447 @@ -764,6 +779,8 @@
1448         style=redhat
1449      elif test -e "$_pgs_vdir"/etc/mandrake-release; then
1450         style=mandrake
1451 +    elif test -e "$_pgs_vdir"/etc/pld-release; then
1452 +       style=pld
1453      elif test -e "$_pgs_vdir"/etc/debian_version; then
1454         style=debian
1455      elif test -e "$_pgs_vdir"/etc/SuSE-release; then
1456 @@ -831,6 +848,27 @@
1457      test -n "$have_yum" && return 0 || return 1
1458  }
1459  
1460 +## Usage: pkgmgmt.isPoldekAvailable <cfgdir> <vdir> [<is-internal>]
1461 +function pkgmgmt.isPoldekAvailable
1462 +{
1463 +    local cfgdir="$1"
1464 +    local vdir="$2"
1465 +    local is_internal="$3"
1466 +    
1467 +    local have_poldek i
1468 +    if test -n "$is_internal"; then
1469 +       have_poldek=1
1470 +       test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
1471 +    else
1472 +       have_poldek=
1473 +       for i in /bin /usr/bin /usr/local/bin; do
1474 +           test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
1475 +       done
1476 +    fi
1477 +
1478 +    test -n "$have_poldek" && return 0 || return 1
1479 +}
1480 +
1481  
1482  function vshelper.doSanityCheck
1483  {
1484 diff -urN util-vserver-0.30.214.org/scripts/Makefile-files util-vserver-0.30.214/scripts/Makefile-files
1485 --- util-vserver-0.30.214.org/scripts/Makefile-files    2007-09-02 22:06:41.000000000 +0200
1486 +++ util-vserver-0.30.214/scripts/Makefile-files        2007-11-15 23:20:48.221174080 +0100
1487 @@ -21,6 +21,7 @@
1488                                 scripts/vapt-get-worker \
1489                                 scripts/vrpm-worker \
1490                                 scripts/vyum-worker \
1491 +                               scripts/vpoldek-worker \
1492                                 scripts/vrpm-preload \
1493                                 scripts/save_s_context \
1494                                 scripts/vservers.grabinfo.sh \
1495 @@ -47,11 +48,13 @@
1496                                 scripts/vserver-build.template \
1497                                 scripts/vserver-build.rsync \
1498                                 scripts/vserver-build.clone \
1499 +                               scripts/vserver-build.poldek \
1500                                 scripts/vserver-build.functions \
1501                                 scripts/vserver-build.functions.apt \
1502                                 scripts/vserver-build.functions.rpm \
1503                                 scripts/vserver-build.functions.pkgmgmt \
1504                                 scripts/vserver-build.functions.yum \
1505 +                               scripts/vserver-build.functions.poldek \
1506                                 scripts/vserver-setup.functions \
1507                                 scripts/vserver.functions \
1508                                 scripts/vserver.start \
1509 @@ -65,6 +68,7 @@
1510  scripts_pkglib_src_SCRPTS =    scripts/pkgmgmt \
1511                                 scripts/vapt-get-worker \
1512                                 scripts/vpkg \
1513 +                               scripts/vpoldek-worker \
1514                                 scripts/vrpm-worker \
1515                                 scripts/vrpm-preload \
1516                                 scripts/start-vservers \
1517 @@ -88,6 +92,7 @@
1518  scripts_sbin_src_PRGS =                scripts/chbind \
1519                                 scripts/chcontext \
1520                                 scripts/vapt-get \
1521 +                               scripts/vpoldek \
1522                                 scripts/vdispatch-conf \
1523                                 scripts/vemerge \
1524                                 scripts/vesync \
1525 diff -urN util-vserver-0.30.214.org/scripts/pkgmgmt util-vserver-0.30.214/scripts/pkgmgmt
1526 --- util-vserver-0.30.214.org/scripts/pkgmgmt   2007-09-02 22:06:41.000000000 +0200
1527 +++ util-vserver-0.30.214/scripts/pkgmgmt       2007-11-15 23:20:48.221174080 +0100
1528 @@ -195,7 +195,7 @@
1529  "
1530      
1531      case $2 in
1532 -       (RH)    pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum "${YUM_RELEASEPKGS[@]}")
1533 +       (RH)    pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum poldek "${YUM_RELEASEPKGS[@]}")
1534                 hasSubstring "$pkgs" ---rpm--- || {
1535                     warning "$ERR
1536  * The vserver does not seem to have the 'rpm' package which is required
1537 @@ -205,9 +205,9 @@
1538                     ERR=
1539                 }
1540                 
1541 -               hasSubstring "$pkgs"  ---apt--- ---yum--- || {
1542 +               hasSubstring "$pkgs"  ---apt--- ---yum--- ---poldek--- || {
1543                     warning "$ERR
1544 -* The vserver does not seem to have a depsolver like 'apt' or 'yum'
1545 +* The vserver does not seem to have a depsolver like 'apt', 'yum' or 'poldek'
1546    installed. It is suggested to install such a program before setting
1547    up internal package management."
1548                     res=1
1549 @@ -368,6 +368,131 @@
1550      fi
1551  }
1552  
1553 +function processVserver_PLD()
1554 +{
1555 +    local vserver=$1
1556 +    local is_internalize=$2
1557 +    local cfgdir
1558 +    local i
1559 +
1560 +    cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
1561 +    cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
1562 +
1563 +    ## Figure out the environment....
1564 +    pkgmgmt.isPoldekAvailable "$cfgdir" "$vdir" "$is_internalize" || have_poldek=
1565 +
1566 +    local POLDEKETCDIR=
1567 +    local POLDEKCACHEDIR=
1568 +    local RPMETCDIR=
1569 +    local RPMSTATEDIR=
1570 +
1571 +    ## Create directories and assign variables where configuration
1572 +    ## can/will be found on the host
1573 +    if test -n "$is_internalize"; then
1574 +       verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
1575 +           panic "
1576 +Can not continue; use '--force' to override this check"
1577 +    
1578 +       pushd "$vdir" >/dev/null
1579 +
1580 +       test ! -L var/lib/rpm || {
1581 +           $_EXEC_CD /var/lib $_RM            rpm &&
1582 +           $_EXEC_CD /var/lib $_MKDIR -m755   rpm &&
1583 +           $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
1584 +           :
1585 +       } </dev/null 2>/dev/null
1586 +
1587 +       for i in var/tmp/poldek-cache etc/rpm etc/poldek; do
1588 +           test -d "$i" ||
1589 +               $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
1590 +       done #2>/dev/null
1591 +       
1592 +       popd >/dev/null
1593 +       
1594 +       if test -n "$have_poldek"; then
1595 +           findDir POLDEKETCDIR    "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /etc/poldek
1596 +       fi
1597 +
1598 +       findDir RPMETCDIR   "$cfgdir"/rpmetc   "$cfgdir"/base/rpm/etc    /etc/rpm /
1599 +       findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
1600 +    else
1601 +       mkdir -m755 -p "$cfgdir"
1602 +       local need_base=
1603 +
1604 +       if test -n "$have_poldek"; then
1605 +           findDir POLDEKETCDIR   "$cfgdir"/poldeketc    "$cfgdir"/base/poldek/etc     /
1606 +           findDir POLDEKCACHEDIR "$cfgdir"/poldek-cache "$cfgdir"/base/poldek/cache   /
1607 +           
1608 +           test "$POLDEKETCDIR"    != / || POLDEKETCDIR=$cfgdir/base/poldek/etc
1609 +           test "$POLDEKCACHEDIR"  != / || POLDEKCACHEDIR=$cfgdir/base/poldek/cache
1610 +
1611 +           test -d "$cfgdir"/poldeketc -a -d "$cfgdir"/poldek-cache || need_base=1
1612 +       fi
1613 +
1614 +       findDir RPMETCDIR     "$cfgdir"/rpmetc   "$cfgdir"/base/rpm/etc    /
1615 +       findDir RPMSTATEDIR   "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state  /
1616 +
1617 +       test "$RPMETCDIR"   != / || RPMETCDIR=$cfgdir/base/rpm/etc
1618 +       test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
1619 +
1620 +       test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
1621 +       test ! -e "$cfgdir"/base || need_base=
1622 +
1623 +       test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
1624 +
1625 +       mkdir -m755 -p "$PKGCFGDIR"
1626 +       _createDirs "$POLDEKETCDIR" "$POLDEKCACHEDIR" \
1627 +                   "$RPMETCDIR" "$RPMSTATEDIR"
1628 +    fi
1629 +
1630 +    ## Copy the files...
1631 +    if test -n "$is_internalize"; then
1632 +       if test -n "$have_poldek"; then
1633 +           _copySecure "$vdir" "$POLDEKETCDIR" /etc/poldek
1634 +           pushd "$vdir" >/dev/null
1635 +               _hashAuto /etc/poldek.conf '/'
1636 +           popd >/dev/null
1637 +       fi
1638 +
1639 +       _copySecure "$vdir" "$RPMETCDIR"   /etc/rpm
1640 +       _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
1641 +
1642 +       pushd "$vdir" >/dev/null
1643 +           ## remove %_dbpath settings
1644 +           _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
1645 +       popd >/dev/null
1646 +    else
1647 +       if test -n "$have_poldek"; then
1648 +           _copySecureRev "$vdir" /etc/poldek "$POLDEKETCDIR"
1649 +           _unhashAuto "$POLDEKETCDIR"/poldek.conf '/'
1650 +       fi
1651 +
1652 +       _copySecureRev "$vdir" /etc/rpm     "$RPMETCDIR"
1653 +       _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
1654 +
1655 +       echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
1656 +    fi
1657 +
1658 +    ## Cleanups...
1659 +    if test -n "$is_internalize"; then
1660 +       :
1661 +    else
1662 +       tmpdir=$($_MKTEMPDIR -p /var/tmp pgmgmt.XXXXXX)
1663 +       trap "$_RM -rf $tmpdir" EXIT
1664 +       pushd "$vdir" >/dev/null
1665 +       $_EXEC_CD /var/lib $_MV rpm $tmpdir/
1666 +       $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
1667 +       $_RM -rf $tmpdir
1668 +    fi
1669 +
1670 +    ## Finish it...
1671 +    if test -n "$is_internalize"; then
1672 +       $_TOUCH "$cfgdir"/internal
1673 +    else
1674 +       $_RM -f "$cfgdir"/internal
1675 +    fi
1676 +}
1677 +
1678  function processVserver_Debian()
1679  {
1680      local vserver=$1
1681 @@ -422,6 +547,7 @@
1682  
1683      case "$style" in
1684         (redhat|mandrake)       processVserver_RH     "$vserver" "$IS_INTERNALIZE";;
1685 +       (pld)                   processVserver_PLD    "$vserver" "$IS_INTERNALIZE";;
1686         (debian)                processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
1687         (*)
1688             echo $"Vserver style '$style' is not supported for packagemanagment" >&2
1689 diff -urN util-vserver-0.30.214.org/scripts/util-vserver-vars.pathsubst util-vserver-0.30.214/scripts/util-vserver-vars.pathsubst
1690 --- util-vserver-0.30.214.org/scripts/util-vserver-vars.pathsubst       2007-09-02 22:06:41.000000000 +0200
1691 +++ util-vserver-0.30.214/scripts/util-vserver-vars.pathsubst   2007-11-15 23:20:48.221174080 +0100
1692 @@ -53,6 +53,7 @@
1693  _LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
1694  _LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
1695  _LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
1696 +_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK="$__PKGLIBDIR/vserver-build.functions.poldek"
1697  _LISTDEVIP="$__LEGACYDIR/listdevip"
1698  _LOCKFILE="$__PKGLIBDIR/lockfile"
1699  _MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
1700 @@ -105,6 +106,8 @@
1701  _VUNIFY="$__PKGLIBDIR/vunify"
1702  _VYUM="$__SBINDIR/vyum"
1703  _VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
1704 +_VPOLDEK="$__SBINDIR/vpoldek"
1705 +_VPOLDEK_WORKER="$__PKGLIBDIR/vpoldek-worker"
1706  
1707  _AWK="@AWK@"
1708  _BZIP2="@BZIP2@"
1709 diff -urN util-vserver-0.30.214.org/scripts/vpkg util-vserver-0.30.214/scripts/vpkg
1710 --- util-vserver-0.30.214.org/scripts/vpkg      2007-09-02 22:06:41.000000000 +0200
1711 +++ util-vserver-0.30.214/scripts/vpkg  2007-11-15 23:20:48.221174080 +0100
1712 @@ -115,6 +115,44 @@
1713             fi
1714         fi
1715         ;;
1716 +    (pld)
1717 +       rpm_param=
1718 +       poldek_param=
1719 +       case "$tag" in
1720 +           ## rpm outputs sometimes '(contains no files)', so return
1721 +           ## only the valid output
1722 +           (get-conffiles)
1723 +               rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
1724 +           (install)
1725 +               rpm_param=( -Uvh "$@" )
1726 +               poldek_param=( --install -v "$@" )
1727 +               ;;
1728 +       esac
1729 +       
1730 +       if test -n "$is_external"; then
1731 +           have_poldek=1
1732 +           test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
1733 +       else
1734 +           have_poldek=
1735 +           for i in /bin /usr/bin /usr/local/bin; do
1736 +               test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
1737 +           done
1738 +       fi
1739 +       
1740 +       if test -n "$is_external"; then
1741 +           if test "$have_poldek" -a "$poldek_param"; then
1742 +               cmd=( "$_VPOLDEK" "$vserver" -- "${poldek_param[@]}" )
1743 +           else
1744 +               cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
1745 +           fi
1746 +       else
1747 +           if test "$have_poldek" -a "$poldek_param"; then
1748 +               cmd=( "$_VSERVER" --silent "$vserver" exec poldek "${poldek_param[@]}" )
1749 +           else
1750 +               cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
1751 +           fi
1752 +       fi
1753 +       ;;
1754      (debian)
1755         case "$tag" in
1756             (get-conffiles)
1757 diff -urN util-vserver-0.30.214.org/scripts/vpoldek util-vserver-0.30.214/scripts/vpoldek
1758 --- util-vserver-0.30.214.org/scripts/vpoldek   1970-01-01 01:00:00.000000000 +0100
1759 +++ util-vserver-0.30.214/scripts/vpoldek       2007-11-15 22:00:24.000000000 +0100
1760 @@ -0,0 +1,74 @@
1761 +#! /bin/bash
1762 +# $Id$
1763 +
1764 +# Copyright (C) 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1765 +#  
1766 +# This program is free software; you can redistribute it and/or modify
1767 +# it under the terms of the GNU General Public License as published by
1768 +# the Free Software Foundation; version 2 of the License.
1769 +#  
1770 +# This program is distributed in the hope that it will be useful,
1771 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1772 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1773 +# GNU General Public License for more details.
1774 +#  
1775 +# You should have received a copy of the GNU General Public License
1776 +# along with this program; if not, write to the Free Software
1777 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1778 +
1779 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1780 +test -e "$UTIL_VSERVER_VARS" || {
1781 +    echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1782 +    exit 1
1783 +}
1784 +. "$UTIL_VSERVER_VARS"
1785 +. "$_LIB_FUNCTIONS"
1786 +
1787 +
1788 +function showHelp()
1789 +{
1790 +    echo \
1791 +$"Usage: $0 <vserver-name>* [--all] -- <params>+
1792 +
1793 +Report bugs to <$PACKAGE_BUGREPORT>."
1794 +    exit 0
1795 +}
1796 +
1797 +function showVersion()
1798 +{
1799 +    echo \
1800 +$"vpoldek $PACKAGE_VERSION -- poldek for vservers
1801 +This program is part of $PACKAGE_STRING
1802 +
1803 +Copyright (C) 2007 Enrico Scholz
1804 +This program is free software; you may redistribute it under the terms of
1805 +the GNU General Public License.  This program has absolutely no warranty."
1806 +    exit 0
1807 +}
1808 +
1809 +tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
1810 +eval set -- "$tmp"
1811 +
1812 +declare -a send_through poldek_opts
1813 +
1814 +while true; do
1815 +    case "$1" in
1816 +        (--help)        showHelp $0 ;;
1817 +        (--version)     showVersion ;;
1818 +        (--debug)       send_through=( "${send_through[@]}" "$1" ); set -x;;
1819 +        (--quiet|-q)    send_through=( "${send_through[@]}" "$1" );;
1820 +        (--all)         poldek_opts=( "${poldek_opts[@]}" "$1" );;
1821 +        (--)            shift; break;;
1822 +        (*)             echo $"vpoldek: internal error; arg=='$1'" >&2; exit 1;;
1823 +    esac
1824 +    shift
1825 +done
1826 +
1827 +VSOMETHING_TITLE=vpoldek
1828 +VSOMETHING_WORKER=$_VPOLDEK_WORKER
1829 +VSOMETHING_PKGMGMT=1
1830 +
1831 +export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
1832 +
1833 +test ${#poldek_opts[@]} -eq 0 || poldek_opts=( "${poldek_opts[@]}" -- )
1834 +exec $_VSOMETHING "${send_through[@]}" poldek "${poldek_opts[@]}" "$@"
1835 diff -urN util-vserver-0.30.214.org/scripts/vpoldek-worker util-vserver-0.30.214/scripts/vpoldek-worker
1836 --- util-vserver-0.30.214.org/scripts/vpoldek-worker    1970-01-01 01:00:00.000000000 +0100
1837 +++ util-vserver-0.30.214/scripts/vpoldek-worker        2007-11-15 22:58:23.000000000 +0100
1838 @@ -0,0 +1,45 @@
1839 +#! /bin/bash
1840 +# $Id$
1841 +
1842 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1843 +#  
1844 +# This program is free software; you can redistribute it and/or modify
1845 +# it under the terms of the GNU General Public License as published by
1846 +# the Free Software Foundation; version 2 of the License.
1847 +#  
1848 +# This program is distributed in the hope that it will be useful,
1849 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1850 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1851 +# GNU General Public License for more details.
1852 +#  
1853 +# You should have received a copy of the GNU General Public License
1854 +# along with this program; if not, write to the Free Software
1855 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1856 +
1857 +set -e
1858 +
1859 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1860 +test -e "$UTIL_VSERVER_VARS" || {
1861 +    echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1862 +    exit 1
1863 +}
1864 +. "$UTIL_VSERVER_VARS"
1865 +. "$_LIB_FUNCTIONS"
1866 +
1867 +
1868 +vserver="$1"
1869 +shift
1870 +
1871 +pkgInit "$vserver" rpm poldek
1872 +
1873 +test -z "$_POLDEK" || {
1874 +    warning $"The environment variable \$_POLDEK is not supported anymore; please use \$POLDEK instead of"
1875 +    ${POLDEK:=$_POLDEK}
1876 +}
1877 +
1878 +exec ${_POLDEK:-poldek} \
1879 +       -v --root=$VDIR \
1880 +       --cachedir=$POLDEKCACHEDIR \
1881 +       --conf=$POLDEK_CONFIG \
1882 +       --pmcmd=$RPM_BINARY \
1883 +       "$@"
1884 diff -urN util-vserver-0.30.214.org/scripts/vserver-build util-vserver-0.30.214/scripts/vserver-build
1885 --- util-vserver-0.30.214.org/scripts/vserver-build     2007-09-02 22:06:41.000000000 +0200
1886 +++ util-vserver-0.30.214/scripts/vserver-build 2007-11-15 23:20:48.224507577 +0100
1887 @@ -57,6 +57,9 @@
1888      yum         ... -- -d <distribution>
1889                  ...  installs the base-packages of the given distribution with
1890                      help of 'vyum'
1891 +    poldek      ... -- -d <distribution>
1892 +                ...  installs the base-packages of the given distribution with
1893 +                    help of 'vpoldek'
1894      rpm         ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
1895                  ...  installs lists of rpm-packages
1896      skeleton    ... -- [<cmd> <args>*]
1897 @@ -136,7 +139,7 @@
1898  
1899  case x"$method" in
1900      (xlegacy)  exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
1901 -    (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone)
1902 +    (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xpoldek)
1903                 . $__PKGLIBDIR/vserver-build.$method
1904                 ;;
1905      (x)                panic $"No build-method specified";;
1906 diff -urN util-vserver-0.30.214.org/scripts/vserver-build.functions util-vserver-0.30.214/scripts/vserver-build.functions
1907 --- util-vserver-0.30.214.org/scripts/vserver-build.functions   2007-09-02 22:06:41.000000000 +0200
1908 +++ util-vserver-0.30.214/scripts/vserver-build.functions       2007-11-15 23:20:48.224507577 +0100
1909 @@ -167,6 +167,12 @@
1910         elif test -e /etc/slackware-version; then
1911             set -- $(cat /etc/slackware-version)
1912             DISTRIBUTION=slackware$2
1913 +       elif test -e /etc/pld-release; then
1914 +           old_IFS=$IFS
1915 +           IFS='()'
1916 +           set -- $(cat /etc/pld-release)
1917 +           DISTRIBUTION=pld-$(echo $2 | tr A-Z a-z)
1918 +           IFS=$old_IFS
1919         elif test -n "$1"; then
1920             DISTRIBUTION=$1
1921         else
1922 diff -urN util-vserver-0.30.214.org/scripts/vserver-build.functions.poldek util-vserver-0.30.214/scripts/vserver-build.functions.poldek
1923 --- util-vserver-0.30.214.org/scripts/vserver-build.functions.poldek    1970-01-01 01:00:00.000000000 +0100
1924 +++ util-vserver-0.30.214/scripts/vserver-build.functions.poldek        2007-11-15 23:20:48.224507577 +0100
1925 @@ -0,0 +1,67 @@
1926 +# $Id$ --*- sh -*--
1927 +
1928 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1929 +#  
1930 +# This program is free software; you can redistribute it and/or modify
1931 +# it under the terms of the GNU General Public License as published by
1932 +# the Free Software Foundation; version 2 of the License.
1933 +#  
1934 +# This program is distributed in the hope that it will be useful,
1935 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1936 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1937 +# GNU General Public License for more details.
1938 +#  
1939 +# You should have received a copy of the GNU General Public License
1940 +# along with this program; if not, write to the Free Software
1941 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1942 +
1943 +function poldek.installBasePackages
1944 +{
1945 +    local name="$1"
1946 +    local dir="$2"
1947 +
1948 +    test "$dir" != / || return 0
1949 +    for filelist in "$dir"/*; do
1950 +       isRegularFile "$filelist" || continue
1951 +       local idx=0
1952 +       local can_fail=false
1953 +       local flags='--install'
1954 +
1955 +       set -- $(<$filelist)
1956 +       while test "$#" -gt 0; do
1957 +           case "$1" in
1958 +               --reinstall) flags='--reinstall';;
1959 +               --can-fail)  can_fail=true;;
1960 +               *)           break;;
1961 +           esac
1962 +           shift
1963 +       done
1964 +       "$_VPOLDEK" "$name" -- $flags $* || $can_fail
1965 +    done
1966 +}
1967 +
1968 +function poldek.initVariables
1969 +{
1970 +    findFile POLDEKCONFDEFAULT \
1971 +       "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/poldek.conf" \
1972 +       "$__CONFDIR/.defaults/apps/pkgmgmt/poldek/poldek.conf" \
1973 +       "$__DISTRIBDIR/$DISTRIBUTION/poldek/poldek.conf" \
1974 +       "$__DISTRIBDIR/defaults/poldek/poldek.conf" \
1975 +       ''
1976 +}
1977 +
1978 +function poldek.initFilesystem
1979 +{
1980 +    mkdir -p "$PKGCFGDIR"/poldek/etc
1981 +    mkdir -p "$PKGCFGBASE"/poldek-cache
1982 +
1983 +    $_LN_S "$PKGCFGBASE"/poldek-cache "$PKGCFGDIR"/poldek/cache
1984 +
1985 +    populateDirectory "$PKGCFGDIR/poldek/etc" \
1986 +       "$__DISTRIBDIR/defaults/poldek" \
1987 +       "$__DISTRIBDIR/$DISTRIBUTION/poldek" \
1988 +       "$__CONFDIR/.distributions/$DISTRIBUTION/poldek"
1989 +
1990 +#    test -z "$POLDEKCONFDEFAULT" || \
1991 +#      $_LN_S "$POLDEKCONFDEFAULT" "$PKGCFGDIR"/poldek/etc/
1992 +}
1993 diff -urN util-vserver-0.30.214.org/scripts/vserver-build.poldek util-vserver-0.30.214/scripts/vserver-build.poldek
1994 --- util-vserver-0.30.214.org/scripts/vserver-build.poldek      1970-01-01 01:00:00.000000000 +0100
1995 +++ util-vserver-0.30.214/scripts/vserver-build.poldek  2007-11-15 23:20:48.224507577 +0100
1996 @@ -0,0 +1,64 @@
1997 +# $Id$ --*- sh -*--
1998 +
1999 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
2000 +#  
2001 +# This program is free software; you can redistribute it and/or modify
2002 +# it under the terms of the GNU General Public License as published by
2003 +# the Free Software Foundation; version 2 of the License.
2004 +#  
2005 +# This program is distributed in the hope that it will be useful,
2006 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2007 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2008 +# GNU General Public License for more details.
2009 +#  
2010 +# You should have received a copy of the GNU General Public License
2011 +# along with this program; if not, write to the Free Software
2012 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2013 +
2014 +tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
2015 +eval set -- "$tmp"
2016 +
2017 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
2018 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK"
2019 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
2020 +
2021 +while true; do
2022 +    case "$1" in
2023 +       (-d)            DISTRIBUTION=$2; shift;;
2024 +       (--debug)       set -x;;
2025 +       (--)            shift; break ;;
2026 +       (*)             echo "vserver-build.poldek: internal error: unrecognized option '$1'" >&2
2027 +                       exit 1
2028 +                       ;;
2029 +    esac
2030 +    shift
2031 +done
2032 +
2033 +getDistribution
2034 +
2035 +base.init
2036 +
2037 +pkgmgmt.initVariables
2038 +rpm.initVariables
2039 +poldek.initVariables
2040 +
2041 +base.initFilesystem    "$OPTION_FORCE"
2042 +pkgmgmt.initFilesystem "$OPTION_FORCE"
2043 +rpm.initFilesystem
2044 +poldek.initFilesystem
2045 +
2046 +setup_writeOption "$VSERVER_NAME"
2047 +setup_writeInitialFstab
2048 +
2049 +test -z "$BUILD_INITPRE"  || "$BUILD_INITPRE" "$SETUP_CONFDIR"  "$UTIL_VSERVER_VARS"
2050 +rpm.initDB           "$SETUP_CONFDIR"
2051 +rpm.importGPGPubKeys "$SETUP_CONFDIR" \
2052 +       "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
2053 +       "$__CONFDIR/.distributions/.common/pubkeys" \
2054 +       "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
2055 +
2056 +$_VPOLDEK "$SETUP_CONFDIR" -- --update-whole
2057 +poldek.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
2058 +test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
2059 +
2060 +base.setSuccess
This page took 0.225493 seconds and 4 git commands to generate.