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