1 --- util-vserver-0.30.212.org/distrib/Makefile.am 2006-12-09 17:15:33.000000000 +0100
2 +++ util-vserver-0.30.212/distrib/Makefile.am 2007-02-04 19:00:38.703238500 +0100
5 gentoo/init-vserver.sh gentoo/net.vserver \
6 gentoo/reboot.sh gentoo/shutdown.sh \
7 - etch/vserver-config.sh
8 + etch/vserver-config.sh pld-ac/pkgs/01 pld-ac/rpm/macros \
9 + pld-ac/rpmlist.d/00.lst \
10 + pld-th/pkgs/01 pld-th/rpm/macros pld-th/rpmlist.d/00.lst
12 nobase_confdistrib_DATA = rh9/apt/sources.list \
13 fc1/apt/sources.list \
15 fc4/apt/sources.list \
16 fc5/apt/sources.list \
17 fc6/apt/sources.list \
18 - suse91/apt/sources.list
19 + suse91/apt/sources.list \
20 + pld-ac/poldek/aliases.conf \
21 + pld-ac/poldek/fetch.conf \
22 + pld-ac/poldek/pld-source.conf \
23 + pld-ac/poldek/poldek.conf \
24 + pld-ac/poldek/source.conf \
25 + pld-th/poldek/aliases.conf \
26 + pld-th/poldek/fetch.conf \
27 + pld-th/poldek/pld-source.conf \
28 + pld-th/poldek/poldek.conf \
29 + pld-th/poldek/source.conf
32 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
33 = $(nobase_distrib_SCRIPTS)
35 ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
36 ln -sf ../redhat/initpre $(DESTDIR)$(distribdir)/$$i/; \
38 + POLDEKARCH=$(shell rpm -E '%{_target_cpu}' 2>/dev/null); \
39 + if [ -z "$$POLDEKARCH" ] ; then POLDEKARCH=$(shell uname -m) ; fi ; \
40 + sed -i -e "s|%ARCH%|$$POLDEKARCH|g" $(DESTDIR)$(confdistribdir)/pld-*/poldek/pld-source.conf
41 $(mkinstalldirs) $(DESTDIR)$(confdir) \
42 $(DESTDIR)$(confdistribdir)/.common/pubkeys \
43 $(DESTDIR)$(confdefaultsdir) \
44 --- util-vserver-0.30.212.org/distrib/pld-ac/pkgs/01 1970-01-01 01:00:00.000000000 +0100
45 +++ util-vserver-0.30.212/distrib/pld-ac/pkgs/01 2007-02-04 18:20:38.633243500 +0100
52 --- util-vserver-0.30.212.org/distrib/pld-ac/poldek/aliases.conf 1970-01-01 01:00:00.000000000 +0100
53 +++ util-vserver-0.30.212/distrib/pld-ac/poldek/aliases.conf 2007-02-04 18:20:38.637243750 +0100
55 +# System wide aliases
63 +freshen = install -FN
66 +# for backward compatybility, greedy is on by default now
67 +greedy-upgrade = install -FG
69 +just-install = install -IN
72 +what-requires = search -r
73 +what-provides = search -p
74 +rsearch = search --perlre
79 +#ls = uninstall kernel
85 --- util-vserver-0.30.212.org/distrib/pld-ac/poldek/fetch.conf 1970-01-01 01:00:00.000000000 +0100
86 +++ util-vserver-0.30.212/distrib/pld-ac/poldek/fetch.conf 2007-02-04 18:20:38.637243750 +0100
88 +# Configuration of poldek external file getters. Each [fetcher] section
89 +# declares one external downloader. The syntax is:
92 +# proto = PROTOCOL[ ,PROTOCOL... ]
93 +# cmd = CMD [OPTION...] DESTINATION-MACRO URL-MACRO
94 +# Possible parameters are:
97 +# Unique name of the fetcher. This is an optional parameter, if not set then
98 +# name is taken from the "cmd" parameter value as "$(basename $cmd)".
101 +# Protocol or protocols supported by fetcher. Name of the protocol can be
102 +# completely arbitrary, i.e. if you can handle protocol "foo" by writing
103 +# a script which takes URLs in form 'foo://'.
106 +# Parameter specifies an external command and its invoking syntax.
107 +# The syntax of "cmd" is:
108 +# cmd = COMMAND [ OPTION... ] {%d,%D} {%p,%P}[n]
109 +# Where COMMAND is the name or full path of command, OPTION is command specific
110 +# options. Macro '%d' is replaced with cache directory, '%D' is replaced with
111 +# 'cache directory/file basename', and '%p' with file basename, %P with file full
112 +# path (URL). Optional suffix 'n' with %p and %P means that command can be
113 +# invoked with multiple files at once.
114 +#cmd = foogetter.sh -N %D %Pn
116 +##Configured fetchers
119 +cmd = vfjuggle %d %Pn
122 +proto = http,ftp,https
123 +cmd = wget -N --dot-style=binary -P %d %Pn
135 +cmd = rsync -v %P %d
139 +cmd = vfsmb -v %P %d
143 +#cmd = vfssh.sh %d %Pn
147 +#cmd = foo.sh %d %Pn
150 --- util-vserver-0.30.212.org/distrib/pld-ac/poldek/pld-source.conf 1970-01-01 01:00:00.000000000 +0100
151 +++ util-vserver-0.30.212/distrib/pld-ac/poldek/pld-source.conf 2007-02-04 18:20:38.637243750 +0100
154 +# PLD <http://www.pld-linux.org/>
157 +_pld_prefix = ftp://ftp.ac.pld-linux.org/dists/ac
159 +## You can use them if you have better connection there
161 +#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/ac
168 +type = %{_ac_idxtype}
170 +path = %{_pld_prefix}/PLD/%{_pld_arch}/PLD/RPMS/
174 +type = %{_ac_idxtype}
176 +path = %{_pld_prefix}/updates/%{_pld_arch}/
180 +type = %{_ac_idxtype}
182 +path = %{_pld_prefix}/supported/%{_pld_arch}/
187 +type = %{_ac_idxtype}
189 +path = %{_pld_prefix}/ready/%{_pld_arch}/
193 +type = %{_ac_idxtype}
195 +path = %{_pld_prefix}/test/%{_pld_arch}/
197 --- util-vserver-0.30.212.org/distrib/pld-ac/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
198 +++ util-vserver-0.30.212/distrib/pld-ac/poldek/poldek.conf 2007-02-04 18:20:38.637243750 +0100
200 +# poldek main configuration file.
202 +# Some macros. Macros are local, they are not visible in included files
203 +# and macros declared in them are not visible to includer.
204 +# Macros names starts with underscore '_'.
208 +# Both local and remote files may be included. Included files may not contain
209 +# [global] section, it will be ignored anyway.
210 +%include %{_distro}-source.conf
213 +%include source.conf
215 +# External downloaders configuration, not necessary in most cases, cause
216 +# to internal HTTP and FTP client.
217 +#%include fetch.conf
222 +# This parameter allows to configure the default repository index type.
223 +#default index type = pndir
225 +# Cache directory for downloaded files. NOTE: that parent directory of cachedir
227 +#cachedir = $HOME/.poldek-cache
229 +# Switch to ordinary user at startup when executed by root
232 +# Permits using root privileges for installation only. Automatically turned
233 +# on when poldek executed as ordinary user.
236 +# Load /etc/apt/sources.list.
237 +#load apt sources list = no
239 +# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
240 +# This option is a workaround for broken zlib linked into librpm; with enabled
241 +# 'auto zlib in rpm' poldek tries to detect such case and then enables external
242 +# *.gz handling automatically.
243 +#vfile external compress = no
245 +# Auto detection of zlib linked into librpm. See 'vfile external compress'
247 +#auto zlib in rpm = yes
249 +# Automatically download whole index if incremental update fails.
252 +# Do not save given paths into created indexes. This option may significantly
253 +# reduce index size. Example (notice missing starting '/'):
254 +# exclude path = usr/share/doc:usr/share/man:usr/src
257 +# Full path name to a PM (rpm for now) binary.
258 +#pm command = /bin/rpm
260 +# Full path name to sudo binary.
261 +#sudo command = /usr/bin/sudo
264 +### File downloaders configuration
266 +# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default
267 +# 'poldek@znienacka.net' is sent)
268 +#vfile ftp sysuser as anon passwd = no
270 +# File getters configuration parameter. By this option URL handlers may be configured.
271 +# To get file from HTTP and FTP servers poldek uses its internal client (what is
272 +# recommended), although it can be changedby this option. Others protocols handled
273 +# by external utilities can be configured also. The syntax is:
274 +# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
276 +# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
277 +# sections (placed in fetch.conf in default configuration).
279 +# default fetcher = ftp,http:internal
280 +# default fetcher = https:wget
281 +# default fetcher = cdrom:vfjuggle
282 +# vfjuggle is a cdrom getter supplied with poldek.
283 +#default fetcher = http,ftp: internal
285 +# Proxies for internal FTP and HTTP client may be configured in usual
286 +# way, by environment variables ftp_proxy and http_proxy, or by this option.
287 +# Its syntax is similar to "default fetcher" one:
288 +# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
290 +# proxy = http: http://w3cache.foo.org:8080
293 +# Comma separated list of hosts or domains which will not be accessed via proxy.
294 +# Option overrides no_proxy environment variable.
296 +# noproxy = localhost, .pl, ftp.foo.bar.org
299 +# Internal HTTP and FTP client is stubborn, it retries to retrive
300 +# file if connection breaks. This option tells it how many times
302 +#vfile retries = 128
305 +### Installation options
307 +# Install packages in small groups instead of doing all-or-nothing
309 +particle install = no
311 +# Do not remove downloaded packages after its successful installation.
312 +#keep downloads = no
314 +# Controls visibility of multiple package instances with different EVR.
315 +# If on, only one, highest version will be visible.
316 +#unique package names = no
318 +# Epoch autopromotion during dependency comparision. RPM specific.
319 +# Set it up if you are using system with rpm prior to 4.2.1 version.
322 +# Confirm packages installation.
323 +#confirm installation = no
325 +# Confirm packages removal.
326 +#confirm removal = yes
328 +# Let the user select package among equivalents.
329 +choose equivalents manually = yes
331 +# Prevent package listed from being upgraded if they are already installed.
332 +# hold = kernel* dev
335 +# Ignore package list - packages fits given mask will be invisible.
336 +# ignore = *-smp-* foo*
337 +ignore = kernel* udev devfs
339 +# Conflicts with already installed packages are treated as resolved
340 +# if at least one of multiple-installed package satisfies conflict.
341 +# rpm doesn't support such cases, so --pm-nodeps is needed (use with
343 +#allow duplicates = yes
346 +### RPM specific options
348 +# rpm macros can be set by this option. Examples:
349 +# rpmdef = _install_langs pl:pl_PL:lt:lt_LT
350 +# Do not install any documentation:
351 +# rpmdef = _netsharedpath /usr/share/info:/usr/share/man
352 +# rpmdef = _excludedocs 1
356 +### Dependency processing settings
357 +# Subtle dependency processing options, they should not be changed
358 +# unless you know what you are doing
360 +# Automatically install packages required by installed ones.
363 +# Greedy upgrades, i.e. upgrade packages which dependencies are broken
364 +# by being uninstalled ones.
367 +# Be yet more greedy; if successor of orphaned package found, and this
368 +# successor drags no packages then upgrade the package instead of process
369 +# its dependencies. Option value is implied by 'greedy' one by defalut.
370 +#aggressive greedy = yes
372 +# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
373 +# package A requires capability foo >= 1.0 while package B provides "foo"
374 +# without any version. Use with care, it may cause weird dependency errors.
377 +# Taking into account package Obsoletes.
380 +# Taking into account package Conflicts.
382 --- util-vserver-0.30.212.org/distrib/pld-ac/poldek/source.conf 1970-01-01 01:00:00.000000000 +0100
383 +++ util-vserver-0.30.212/distrib/pld-ac/poldek/source.conf 2007-02-04 18:20:38.637243750 +0100
385 +# Sample poldek sources configuration
386 +# Every source is configured in his own [source] section.
387 +# Possible parameters are:
390 +# Unique name of the repository.
393 +# Type of repository index. Permitted values are 'pndir', 'pdir', 'apt', 'yum'
394 +# and 'dir' as listed by --stl switch.
397 +# This parameter sets index original type i.e type of repository
398 +# from what this repository is created. Default is 'dir' - means
399 +# that directory of packages is scanned.
400 +#original type = dir
402 +# Unique name of the repository. May be either path or URL.
403 +#path = /some/url/or/dir
405 +# If package index and packages are stored in different locations then
406 +# prefix stands for packages path.
407 +#prefix = /some/url/or/dir
409 +# Controls visibility of multiple package instances with different EVR.
410 +# If on, only one, highest version will be visible.
413 +# Repository priority. If the same packages (equal names and EVR)
414 +# are available in more than one source then package from highest
415 +# prioritized source are taken. Priority is numeric value. Lower number
416 +# means higher priority, and negative priorities are allowed.
417 +# Priority is numeric value.
420 +# Controling if repository index will be implicit loaded. Set it off if
421 +# the index should be loaded on demand only, i.e. if specified directly
425 +# Controls if repository index will be implicit updated. Set it off if
426 +# the index should be updated on demand only, i.e. if specified directly
430 +# Packages PGP/GPG signatures (if any) will be verified before their
434 +# Have the same meaning as [global] parameter. Example:
435 +# hold = kernel* dev
438 +# Have the same meaning as [global] parameter. Example:
439 +# ignore = kernel*smp* dev
442 +# Parameter have the same meaning as [global] parameter.
443 +# exclude path = usr/share/doc:usr/share/man:usr/src
446 +# Preferred language of package descriptions. If not set, taken from locale
447 +# settings. Example:
448 +# lang = pl_PL:lt_LT
454 +path = $HOME/rpm/RPMS
461 +#path = ftp://ftp.foo.bar.org/RPMS/
467 +#ignore = kernel*-smp-*
470 --- util-vserver-0.30.212.org/distrib/pld-ac/rpm/macros 1970-01-01 01:00:00.000000000 +0100
471 +++ util-vserver-0.30.212/distrib/pld-ac/rpm/macros 2007-02-04 18:20:38.637243750 +0100
473 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
474 +# you have to use at least one language beside 'C'
475 +%_install_langs C:en:pl
476 +%_netsharedpath /dev
477 --- util-vserver-0.30.212.org/distrib/pld-ac/rpmlist.d/00.lst 1970-01-01 01:00:00.000000000 +0100
478 +++ util-vserver-0.30.212/distrib/pld-ac/rpmlist.d/00.lst 2007-02-04 18:20:38.637243750 +0100
489 +vserver-packages-*.rpm
490 --- util-vserver-0.30.212.org/distrib/pld-th/pkgs/01 1970-01-01 01:00:00.000000000 +0100
491 +++ util-vserver-0.30.212/distrib/pld-th/pkgs/01 2007-02-04 18:20:38.633243000 +0100
498 --- util-vserver-0.30.212.org/distrib/pld-th/poldek/aliases.conf 1970-01-01 01:00:00.000000000 +0100
499 +++ util-vserver-0.30.212/distrib/pld-th/poldek/aliases.conf 2007-02-04 18:20:38.637243000 +0100
501 +# System wide aliases
509 +freshen = install -FN
510 +upgrade = install -F
512 +# for backward compatybility, greedy is on by default now
513 +greedy-upgrade = install -FG
515 +just-install = install -IN
518 +what-requires = search -r
519 +what-provides = search -p
520 +rsearch = search --perlre
525 +#ls = uninstall kernel
531 --- util-vserver-0.30.212.org/distrib/pld-th/poldek/fetch.conf 1970-01-01 01:00:00.000000000 +0100
532 +++ util-vserver-0.30.212/distrib/pld-th/poldek/fetch.conf 2007-02-04 18:20:38.637243000 +0100
534 +# Configuration of poldek external file getters. Each [fetcher] section
535 +# declares one external downloader. The syntax is:
538 +# proto = PROTOCOL[ ,PROTOCOL... ]
539 +# cmd = CMD [OPTION...] DESTINATION-MACRO URL-MACRO
540 +# Possible parameters are:
543 +# Unique name of the fetcher. This is an optional parameter, if not set then
544 +# name is taken from the "cmd" parameter value as "$(basename $cmd)".
547 +# Protocol or protocols supported by fetcher. Name of the protocol can be
548 +# completely arbitrary, i.e. if you can handle protocol "foo" by writing
549 +# a script which takes URLs in form 'foo://'.
552 +# Parameter specifies an external command and its invoking syntax.
553 +# The syntax of "cmd" is:
554 +# cmd = COMMAND [ OPTION... ] {%d,%D} {%p,%P}[n]
555 +# Where COMMAND is the name or full path of command, OPTION is command specific
556 +# options. Macro '%d' is replaced with cache directory, '%D' is replaced with
557 +# 'cache directory/file basename', and '%p' with file basename, %P with file full
558 +# path (URL). Optional suffix 'n' with %p and %P means that command can be
559 +# invoked with multiple files at once.
560 +#cmd = foogetter.sh -N %D %Pn
562 +##Configured fetchers
565 +cmd = vfjuggle %d %Pn
568 +proto = http,ftp,https
569 +cmd = wget -N --dot-style=binary -P %d %Pn
581 +cmd = rsync -v %P %d
585 +cmd = vfsmb -v %P %d
589 +#cmd = vfssh.sh %d %Pn
593 +#cmd = foo.sh %d %Pn
596 --- util-vserver-0.30.212.org/distrib/pld-th/poldek/pld-source.conf 1970-01-01 01:00:00.000000000 +0100
597 +++ util-vserver-0.30.212/distrib/pld-th/poldek/pld-source.conf 2007-02-04 18:25:33.175651250 +0100
599 +# PLD <http://www.pld-linux.org/>
602 +_pld_prefix = ftp://ftp.th.pld-linux.org/dists/th
604 +## You can use them if you have better connection there
606 +#_pld_prefix = ftp://ftp.task.pld-linux.org/dists/th
613 +type = %{_th_idxtype}
615 +path = %{_pld_prefix}/PLD/%{_pld_arch}/RPMS/
618 +type = %{_th_idxtype}
620 +path = %{_pld_prefix}/PLD/noarch/RPMS/
623 +type = %{_th_idxtype}
624 +name = th-updates-security
625 +path = %{_pld_prefix}/updates-security/%{_pld_arch}/RPMS/
628 +type = %{_th_idxtype}
629 +name = th-updates-general
630 +path = %{_pld_prefix}/updates-general/%{_pld_arch}/RPMS/
634 +#type = %{_th_idxtype}
635 +#name = th-supported
636 +#path = %{_pld_prefix}/supported/%{_pld_arch}/RPMS/
640 +type = %{_th_idxtype}
642 +path = %{_pld_prefix}/ready/%{_pld_arch}/RPMS/
646 +type = %{_th_idxtype}
648 +path = %{_pld_prefix}/test/%{_pld_arch}/RPMS/
650 --- util-vserver-0.30.212.org/distrib/pld-th/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
651 +++ util-vserver-0.30.212/distrib/pld-th/poldek/poldek.conf 2007-02-04 18:20:38.637243000 +0100
653 +# poldek main configuration file.
655 +# Some macros. Macros are local, they are not visible in included files
656 +# and macros declared in them are not visible to includer.
657 +# Macros names starts with underscore '_'.
661 +# Both local and remote files may be included. Included files may not contain
662 +# [global] section, it will be ignored anyway.
663 +%include %{_distro}-source.conf
666 +%include source.conf
668 +# External downloaders configuration, not necessary in most cases, cause
669 +# to internal HTTP and FTP client.
670 +#%include fetch.conf
675 +# This parameter allows to configure the default repository index type.
676 +#default index type = pndir
678 +# Cache directory for downloaded files. NOTE: that parent directory of cachedir
680 +#cachedir = $HOME/.poldek-cache
682 +# Switch to ordinary user at startup when executed by root
685 +# Permits using root privileges for installation only. Automatically turned
686 +# on when poldek executed as ordinary user.
689 +# Load /etc/apt/sources.list.
690 +#load apt sources list = no
692 +# Handle gzipped indexes externally (needed on RedHat 9 and Fedora Core 1 and 2).
693 +# This option is a workaround for broken zlib linked into librpm; with enabled
694 +# 'auto zlib in rpm' poldek tries to detect such case and then enables external
695 +# *.gz handling automatically.
696 +#vfile external compress = no
698 +# Auto detection of zlib linked into librpm. See 'vfile external compress'
700 +#auto zlib in rpm = yes
702 +# Automatically download whole index if incremental update fails.
705 +# Do not save given paths into created indexes. This option may significantly
706 +# reduce index size. Example (notice missing starting '/'):
707 +# exclude path = usr/share/doc:usr/share/man:usr/src
710 +# Full path name to a PM (rpm for now) binary.
711 +#pm command = /bin/rpm
713 +# Full path name to sudo binary.
714 +#sudo command = /usr/bin/sudo
717 +### File downloaders configuration
719 +# Send ${USER}@${HOSTNAME} as anonymous FTP password (by default
720 +# 'poldek@znienacka.net' is sent)
721 +#vfile ftp sysuser as anon passwd = no
723 +# File getters configuration parameter. By this option URL handlers may be configured.
724 +# To get file from HTTP and FTP servers poldek uses its internal client (what is
725 +# recommended), although it can be changedby this option. Others protocols handled
726 +# by external utilities can be configured also. The syntax is:
727 +# default fetcher = PROTOCOL[,PROTOCOL...]:FETCHER_NAME
729 +# where FETCHER_NAME is a name of one of the fetcher preconfigured in [fetch]
730 +# sections (placed in fetch.conf in default configuration).
732 +# default fetcher = ftp,http:internal
733 +# default fetcher = https:wget
734 +# default fetcher = cdrom:vfjuggle
735 +# vfjuggle is a cdrom getter supplied with poldek.
736 +#default fetcher = http,ftp: internal
738 +# Proxies for internal FTP and HTTP client may be configured in usual
739 +# way, by environment variables ftp_proxy and http_proxy, or by this option.
740 +# Its syntax is similar to "default fetcher" one:
741 +# proxy = PROTOCOL[,PROTOCOL...]:PROXY_URL
743 +# proxy = http: http://w3cache.foo.org:8080
746 +# Comma separated list of hosts or domains which will not be accessed via proxy.
747 +# Option overrides no_proxy environment variable.
749 +# noproxy = localhost, .pl, ftp.foo.bar.org
752 +# Internal HTTP and FTP client is stubborn, it retries to retrive
753 +# file if connection breaks. This option tells it how many times
755 +#vfile retries = 128
758 +### Installation options
760 +# Install packages in small groups instead of doing all-or-nothing
762 +particle install = no
764 +# Do not remove downloaded packages after its successful installation.
765 +#keep downloads = no
767 +# Controls visibility of multiple package instances with different EVR.
768 +# If on, only one, highest version will be visible.
769 +#unique package names = no
771 +# Epoch autopromotion during dependency comparision. RPM specific.
772 +# Set it up if you are using system with rpm prior to 4.2.1 version.
775 +# Confirm packages installation.
776 +#confirm installation = no
778 +# Confirm packages removal.
779 +#confirm removal = yes
781 +# Let the user select package among equivalents.
782 +choose equivalents manually = yes
784 +# Prevent package listed from being upgraded if they are already installed.
785 +# hold = kernel* dev
788 +# Ignore package list - packages fits given mask will be invisible.
789 +# ignore = *-smp-* foo*
790 +ignore = kernel* udev devfs
792 +# Conflicts with already installed packages are treated as resolved
793 +# if at least one of multiple-installed package satisfies conflict.
794 +# rpm doesn't support such cases, so --pm-nodeps is needed (use with
796 +#allow duplicates = yes
799 +### RPM specific options
801 +# rpm macros can be set by this option. Examples:
802 +# rpmdef = _install_langs pl:pl_PL:lt:lt_LT
803 +# Do not install any documentation:
804 +# rpmdef = _netsharedpath /usr/share/info:/usr/share/man
805 +# rpmdef = _excludedocs 1
809 +### Dependency processing settings
810 +# Subtle dependency processing options, they should not be changed
811 +# unless you know what you are doing
813 +# Automatically install packages required by installed ones.
816 +# Greedy upgrades, i.e. upgrade packages which dependencies are broken
817 +# by being uninstalled ones.
820 +# Be yet more greedy; if successor of orphaned package found, and this
821 +# successor drags no packages then upgrade the package instead of process
822 +# its dependencies. Option value is implied by 'greedy' one by defalut.
823 +#aggressive greedy = yes
825 +# Be tolerant for unmatched versioned dependencies which rpm tolerates, e.g.
826 +# package A requires capability foo >= 1.0 while package B provides "foo"
827 +# without any version. Use with care, it may cause weird dependency errors.
830 +# Taking into account package Obsoletes.
833 +# Taking into account package Conflicts.
835 --- util-vserver-0.30.212.org/distrib/pld-th/poldek/source.conf 1970-01-01 01:00:00.000000000 +0100
836 +++ util-vserver-0.30.212/distrib/pld-th/poldek/source.conf 2007-02-04 18:20:38.637243000 +0100
838 +# Sample poldek sources configuration
839 +# Every source is configured in his own [source] section.
840 +# Possible parameters are:
843 +# Unique name of the repository.
846 +# Type of repository index. Permitted values are 'pndir', 'pdir', 'apt', 'yum'
847 +# and 'dir' as listed by --stl switch.
850 +# This parameter sets index original type i.e type of repository
851 +# from what this repository is created. Default is 'dir' - means
852 +# that directory of packages is scanned.
853 +#original type = dir
855 +# Unique name of the repository. May be either path or URL.
856 +#path = /some/url/or/dir
858 +# If package index and packages are stored in different locations then
859 +# prefix stands for packages path.
860 +#prefix = /some/url/or/dir
862 +# Controls visibility of multiple package instances with different EVR.
863 +# If on, only one, highest version will be visible.
866 +# Repository priority. If the same packages (equal names and EVR)
867 +# are available in more than one source then package from highest
868 +# prioritized source are taken. Priority is numeric value. Lower number
869 +# means higher priority, and negative priorities are allowed.
870 +# Priority is numeric value.
873 +# Controling if repository index will be implicit loaded. Set it off if
874 +# the index should be loaded on demand only, i.e. if specified directly
878 +# Controls if repository index will be implicit updated. Set it off if
879 +# the index should be updated on demand only, i.e. if specified directly
883 +# Packages PGP/GPG signatures (if any) will be verified before their
887 +# Have the same meaning as [global] parameter. Example:
888 +# hold = kernel* dev
891 +# Have the same meaning as [global] parameter. Example:
892 +# ignore = kernel*smp* dev
895 +# Parameter have the same meaning as [global] parameter.
896 +# exclude path = usr/share/doc:usr/share/man:usr/src
899 +# Preferred language of package descriptions. If not set, taken from locale
900 +# settings. Example:
901 +# lang = pl_PL:lt_LT
907 +path = $HOME/rpm/RPMS
914 +#path = ftp://ftp.foo.bar.org/RPMS/
920 +#ignore = kernel*-smp-*
923 --- util-vserver-0.30.212.org/distrib/pld-th/rpm/macros 1970-01-01 01:00:00.000000000 +0100
924 +++ util-vserver-0.30.212/distrib/pld-th/rpm/macros 2007-02-04 18:20:38.637243000 +0100
926 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
927 +# you have to use at least one language beside 'C'
928 +%_install_langs C:en:pl
929 +%_netsharedpath /dev
930 --- util-vserver-0.30.212.org/distrib/pld-th/rpmlist.d/00.lst 1970-01-01 01:00:00.000000000 +0100
931 +++ util-vserver-0.30.212/distrib/pld-th/rpmlist.d/00.lst 2007-02-04 18:20:38.637243000 +0100
942 +vserver-packages-*.rpm
943 --- util-vserver-0.30.212.org/scripts/functions 2006-12-09 17:15:24.000000000 +0100
944 +++ util-vserver-0.30.212/scripts/functions 2007-02-04 18:20:38.637243750 +0100
949 +function _pkgSetVarsPoldek
951 + if test -n "$PKGDIR"; then
952 + findDir POLDEKETCDIR $PKGDIR/poldeketc $PKGDIR/base/poldek/etc /etc/poldek
953 + findDir POLDEKCACHEDIR $PKGDIR/poldek-cache $PKGDIR/base/poldek/cache
955 + findDir POLDEKETCDIR "$VDIR"/etc/poldek /etc/poldek
956 + findDir POLDEKCACHEDIR "$VDIR"/var/tmp/poldek-cache
959 + findFile POLDEK_CONFIG "$POLDEKETCDIR"/poldek.conf ""
960 + test -z "$POLDEK_CONFIG" || export POLDEK_CONFIG
964 function _pkgMountBase
967 rpm) _pkgSetVarsRPM;;
968 apt) _pkgSetVarsApt;;
969 yum) _pkgSetVarsYum;;
970 + poldek) _pkgSetVarsPoldek;;
971 *) echo "Unknown packaging flavor" >&2; exit 1;;
976 elif test -e "$_pgs_vdir"/etc/mandrake-release; then
978 + elif test -e "$_pgs_vdir"/etc/pld-release; then
980 elif test -e "$_pgs_vdir"/etc/debian_version; then
982 elif test -e "$_pgs_vdir"/etc/SuSE-release; then
984 test -n "$have_yum" && return 0 || return 1
987 +## Usage: pkgmgmt.isPoldekAvailable <cfgdir> <vdir> [<is-internal>]
988 +function pkgmgmt.isPoldekAvailable
992 + local is_internal="$3"
994 + local have_poldek i
995 + if test -n "$is_internal"; then
997 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
1000 + for i in /bin /usr/bin /usr/local/bin; do
1001 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
1005 + test -n "$have_poldek" && return 0 || return 1
1009 function vshelper.doSanityCheck
1011 --- util-vserver-0.30.212.org/scripts/Makefile-files 2006-12-09 17:15:24.000000000 +0100
1012 +++ util-vserver-0.30.212/scripts/Makefile-files 2007-02-04 18:20:38.669245750 +0100
1014 scripts/vapt-get-worker \
1015 scripts/vrpm-worker \
1016 scripts/vyum-worker \
1017 + scripts/vpoldek-worker \
1018 scripts/vrpm-preload \
1019 scripts/save_s_context \
1020 scripts/vservers.grabinfo.sh \
1022 scripts/vserver-build.template \
1023 scripts/vserver-build.rsync \
1024 scripts/vserver-build.clone \
1025 + scripts/vserver-build.poldek \
1026 scripts/vserver-build.functions \
1027 scripts/vserver-build.functions.apt \
1028 scripts/vserver-build.functions.rpm \
1029 scripts/vserver-build.functions.pkgmgmt \
1030 scripts/vserver-build.functions.yum \
1031 + scripts/vserver-build.functions.poldek \
1032 scripts/vserver-setup.functions \
1033 scripts/vserver.functions \
1034 scripts/vserver.start \
1036 scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
1037 scripts/vapt-get-worker \
1039 + scripts/vpoldek-worker \
1040 scripts/vrpm-worker \
1041 scripts/vrpm-preload \
1042 scripts/start-vservers \
1044 scripts_sbin_src_PRGS = scripts/chbind \
1048 scripts/vdispatch-conf \
1051 --- util-vserver-0.30.212.org/scripts/pkgmgmt 2006-12-09 17:15:24.000000000 +0100
1052 +++ util-vserver-0.30.212/scripts/pkgmgmt 2007-02-04 18:20:38.673246000 +0100
1057 - (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum "${YUM_RELEASEPKGS[@]}")
1058 + (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum poldek "${YUM_RELEASEPKGS[@]}")
1059 hasSubstring "$pkgs" ---rpm--- || {
1061 * The vserver does not seem to have the 'rpm' package which is required
1066 - hasSubstring "$pkgs" ---apt--- ---yum--- || {
1067 + hasSubstring "$pkgs" ---apt--- ---yum--- ---poldek--- || {
1069 -* The vserver does not seem to have a depsolver like 'apt' or 'yum'
1070 +* The vserver does not seem to have a depsolver like 'apt', 'yum' or 'poldek'
1071 installed. It is suggested to install such a program before setting
1072 up internal package management."
1074 @@ -368,6 +368,131 @@
1078 +function processVserver_PLD()
1081 + local is_internalize=$2
1085 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
1086 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
1088 + ## Figure out the environment....
1089 + pkgmgmt.isPoldekAvailable "$cfgdir" "$vdir" "$is_internalize" || have_poldek=
1091 + local POLDEKETCDIR=
1092 + local POLDEKCACHEDIR=
1094 + local RPMSTATEDIR=
1096 + ## Create directories and assign variables where configuration
1097 + ## can/will be found on the host
1098 + if test -n "$is_internalize"; then
1099 + verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
1101 +Can not continue; use '--force' to override this check"
1103 + pushd "$vdir" >/dev/null
1105 + test ! -L var/lib/rpm || {
1106 + $_EXEC_CD /var/lib $_RM rpm &&
1107 + $_EXEC_CD /var/lib $_MKDIR -m755 rpm &&
1108 + $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
1110 + } </dev/null 2>/dev/null
1112 + for i in var/tmp/poldek-cache etc/rpm etc/poldek; do
1114 + $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
1119 + if test -n "$have_poldek"; then
1120 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /etc/poldek
1123 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /etc/rpm /
1124 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
1126 + mkdir -m755 -p "$cfgdir"
1129 + if test -n "$have_poldek"; then
1130 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /
1131 + findDir POLDEKCACHEDIR "$cfgdir"/poldek-cache "$cfgdir"/base/poldek/cache /
1133 + test "$POLDEKETCDIR" != / || POLDEKETCDIR=$cfgdir/base/poldek/etc
1134 + test "$POLDEKCACHEDIR" != / || POLDEKCACHEDIR=$cfgdir/base/poldek/cache
1136 + test -d "$cfgdir"/poldeketc -a -d "$cfgdir"/poldek-cache || need_base=1
1139 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /
1140 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state /
1142 + test "$RPMETCDIR" != / || RPMETCDIR=$cfgdir/base/rpm/etc
1143 + test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
1145 + test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
1146 + test ! -e "$cfgdir"/base || need_base=
1148 + test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
1150 + mkdir -m755 -p "$PKGCFGDIR"
1151 + _createDirs "$POLDEKETCDIR" "$POLDEKCACHEDIR" \
1152 + "$RPMETCDIR" "$RPMSTATEDIR"
1155 + ## Copy the files...
1156 + if test -n "$is_internalize"; then
1157 + if test -n "$have_poldek"; then
1158 + _copySecure "$vdir" "$POLDEKETCDIR" /etc/poldek
1159 + pushd "$vdir" >/dev/null
1160 + _hashAuto /etc/poldek.conf '/'
1164 + _copySecure "$vdir" "$RPMETCDIR" /etc/rpm
1165 + _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
1167 + pushd "$vdir" >/dev/null
1168 + ## remove %_dbpath settings
1169 + _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
1172 + if test -n "$have_poldek"; then
1173 + _copySecureRev "$vdir" /etc/poldek "$POLDEKETCDIR"
1174 + _unhashAuto "$POLDEKETCDIR"/poldek.conf '/'
1177 + _copySecureRev "$vdir" /etc/rpm "$RPMETCDIR"
1178 + _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
1180 + echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
1184 + if test -n "$is_internalize"; then
1187 + tmpdir=$($_MKTEMPDIR -p /var/tmp pgmgmt.XXXXXX)
1188 + trap "$_RM -rf $tmpdir" EXIT
1189 + pushd "$vdir" >/dev/null
1190 + $_EXEC_CD /var/lib $_MV rpm $tmpdir/
1191 + $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
1196 + if test -n "$is_internalize"; then
1197 + $_TOUCH "$cfgdir"/internal
1199 + $_RM -f "$cfgdir"/internal
1203 function processVserver_Debian()
1209 (redhat|mandrake) processVserver_RH "$vserver" "$IS_INTERNALIZE";;
1210 + (pld) processVserver_PLD "$vserver" "$IS_INTERNALIZE";;
1211 (debian) processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
1213 echo $"Vserver style '$style' is not supported for packagemanagment" >&2
1214 --- util-vserver-0.30.212.org/scripts/util-vserver-vars.pathsubst 2006-12-09 17:15:24.000000000 +0100
1215 +++ util-vserver-0.30.212/scripts/util-vserver-vars.pathsubst 2007-02-04 18:20:38.673246000 +0100
1217 _LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
1218 _LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
1219 _LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
1220 +_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK="$__PKGLIBDIR/vserver-build.functions.poldek"
1221 _LISTDEVIP="$__LEGACYDIR/listdevip"
1222 _LOCKFILE="$__PKGLIBDIR/lockfile"
1223 _MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
1225 _VUNIFY="$__PKGLIBDIR/vunify"
1226 _VYUM="$__SBINDIR/vyum"
1227 _VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
1228 +_VPOLDEK="$__SBINDIR/vpoldek"
1229 +_VPOLDEK_WORKER="$__PKGLIBDIR/vpoldek-worker"
1233 --- util-vserver-0.30.212.org/scripts/vpkg 2006-12-09 17:15:24.000000000 +0100
1234 +++ util-vserver-0.30.212/scripts/vpkg 2007-02-04 18:20:38.673246000 +0100
1235 @@ -115,6 +115,44 @@
1243 + ## rpm outputs sometimes '(contains no files)', so return
1244 + ## only the valid output
1246 + rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
1248 + rpm_param=( -Uvh "$@" )
1249 + poldek_param=( --install -v "$@" )
1253 + if test -n "$is_external"; then
1255 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
1258 + for i in /bin /usr/bin /usr/local/bin; do
1259 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
1263 + if test -n "$is_external"; then
1264 + if test "$have_poldek" -a "$poldek_param"; then
1265 + cmd=( "$_VPOLDEK" "$vserver" -- "${poldek_param[@]}" )
1267 + cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
1270 + if test "$have_poldek" -a "$poldek_param"; then
1271 + cmd=( "$_VSERVER" --silent "$vserver" exec poldek "${poldek_param[@]}" )
1273 + cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
1280 --- util-vserver-0.30.212.org/scripts/vpoldek 1970-01-01 01:00:00.000000000 +0100
1281 +++ util-vserver-0.30.212/scripts/vpoldek 2007-02-04 18:20:38.673246000 +0100
1286 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1288 +# This program is free software; you can redistribute it and/or modify
1289 +# it under the terms of the GNU General Public License as published by
1290 +# the Free Software Foundation; version 2 of the License.
1292 +# This program is distributed in the hope that it will be useful,
1293 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1294 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1295 +# GNU General Public License for more details.
1297 +# You should have received a copy of the GNU General Public License
1298 +# along with this program; if not, write to the Free Software
1299 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1301 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1302 +test -e "$UTIL_VSERVER_VARS" || {
1303 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1306 +. "$UTIL_VSERVER_VARS"
1307 +. "$_LIB_FUNCTIONS"
1310 +function showHelp()
1313 +$"Usage: $0 <vserver-name>* [--all] -- <params>+
1315 +Report bugs to <$PACKAGE_BUGREPORT>."
1319 +function showVersion()
1322 +$"vpoldek $PACKAGE_VERSION -- poldek for vservers
1323 +This program is part of $PACKAGE_STRING
1325 +Copyright (C) 2003 Enrico Scholz
1326 +This program is free software; you may redistribute it under the terms of
1327 +the GNU General Public License. This program has absolutely no warranty."
1332 +declare -a vservers=()
1334 +while test "$#" -ge 1; do
1336 + --) shift; break;;
1337 + --help) showHelp $0;;
1338 + --quiet|-q) is_quiet=1 ;;
1340 + getAllVservers tmp
1341 + vservers=( "${vservers[@]}" "${tmp[@]}" )
1345 + *) vservers=( "${vservers[@]}" "$1" )
1352 +for i in "${vservers[@]}"; do
1355 + test -n "$is_quiet" || {
1356 + colorize bold echo -n "vpoldek: operating on vserver "
1357 + colorize bold colorize emph echo "$i"
1358 + xtermTitle "vpoldek: operating on vserver '$i' [$cnt/${#vservers[@]}]"
1361 + if pkgmgmt.isInternal "$i"; then
1362 + $_VSERVER "$i" exec poldek "$@"
1364 + callInNamespace "$i" \
1365 + "$_VNAMESPACE" --new -- "$_VPOLDEK_WORKER" "$i" "$@"
1369 + test $res -eq 0 -o -n "$is_quiet" || {
1370 + colorize error echo -n $"vpoldek failed on vserver '$i' with errorcode $res"
1374 + test -n "$is_quiet" || echo
1377 +test "$cnt" -ge 0 || echo "No vservers specified" >&2
1379 --- util-vserver-0.30.212.org/scripts/vpoldek-worker 1970-01-01 01:00:00.000000000 +0100
1380 +++ util-vserver-0.30.212/scripts/vpoldek-worker 2007-02-04 18:20:38.673246000 +0100
1385 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1387 +# This program is free software; you can redistribute it and/or modify
1388 +# it under the terms of the GNU General Public License as published by
1389 +# the Free Software Foundation; version 2 of the License.
1391 +# This program is distributed in the hope that it will be useful,
1392 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1393 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1394 +# GNU General Public License for more details.
1396 +# You should have received a copy of the GNU General Public License
1397 +# along with this program; if not, write to the Free Software
1398 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1402 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
1403 +test -e "$UTIL_VSERVER_VARS" || {
1404 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
1407 +. "$UTIL_VSERVER_VARS"
1408 +. "$_LIB_FUNCTIONS"
1414 +pkgInit "$vserver" rpm poldek
1416 +test -z "$_POLDEK" || {
1417 + warning $"The environment variable \$_POLDEK is not supported anymore; please use \$POLDEK instead of"
1418 + ${POLDEK:=$_POLDEK}
1421 +exec ${_POLDEK:-poldek} \
1423 + --cachedir=$POLDEKCACHEDIR \
1424 + --conf=$POLDEK_CONFIG \
1425 + --pmcmd=$RPM_BINARY \
1427 --- util-vserver-0.30.212.org/scripts/vserver-build 2006-12-09 17:15:24.000000000 +0100
1428 +++ util-vserver-0.30.212/scripts/vserver-build 2007-02-04 18:20:38.673246000 +0100
1430 yum ... -- -d <distribution>
1431 ... installs the base-packages of the given distribution with
1433 + poldek ... -- -d <distribution>
1434 + ... installs the base-packages of the given distribution with
1436 rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
1437 ... installs lists of rpm-packages
1438 skeleton ... -- [<cmd> <args>*]
1442 (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
1443 - (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone)
1444 + (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xpoldek)
1445 . $__PKGLIBDIR/vserver-build.$method
1447 (x) panic $"No build-method specified";;
1448 --- util-vserver-0.30.212.org/scripts/vserver-build.functions 2006-12-09 17:15:24.000000000 +0100
1449 +++ util-vserver-0.30.212/scripts/vserver-build.functions 2007-02-04 18:20:38.673246000 +0100
1450 @@ -167,6 +167,12 @@
1451 elif test -e /etc/slackware-version; then
1452 set -- $(cat /etc/slackware-version)
1453 DISTRIBUTION=slackware$2
1454 + elif test -e /etc/pld-release; then
1457 + set -- $(cat /etc/pld-release)
1458 + DISTRIBUTION=pld-$(echo $2 | tr A-Z a-z)
1460 elif test -n "$1"; then
1463 --- util-vserver-0.30.212.org/scripts/vserver-build.functions.poldek 1970-01-01 01:00:00.000000000 +0100
1464 +++ util-vserver-0.30.212/scripts/vserver-build.functions.poldek 2007-02-04 18:20:38.673246000 +0100
1466 +# $Id$ --*- sh -*--
1468 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1470 +# This program is free software; you can redistribute it and/or modify
1471 +# it under the terms of the GNU General Public License as published by
1472 +# the Free Software Foundation; version 2 of the License.
1474 +# This program is distributed in the hope that it will be useful,
1475 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1476 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1477 +# GNU General Public License for more details.
1479 +# You should have received a copy of the GNU General Public License
1480 +# along with this program; if not, write to the Free Software
1481 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1483 +function poldek.installBasePackages
1488 + test "$dir" != / || return 0
1489 + for filelist in "$dir"/*; do
1490 + isRegularFile "$filelist" || continue
1492 + local can_fail=false
1493 + local flags='--install'
1495 + set -- $(<$filelist)
1496 + while test "$#" -gt 0; do
1498 + --reinstall) flags='--reinstall';;
1499 + --can-fail) can_fail=true;;
1504 + "$_VPOLDEK" "$name" -- $flags $* || $can_fail
1508 +function poldek.initVariables
1510 + findFile POLDEKCONFDEFAULT \
1511 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/poldek.conf" \
1512 + "$__CONFDIR/.defaults/apps/pkgmgmt/poldek/poldek.conf" \
1513 + "$__DISTRIBDIR/$DISTRIBUTION/poldek/poldek.conf" \
1514 + "$__DISTRIBDIR/defaults/poldek/poldek.conf" \
1518 +function poldek.initFilesystem
1520 + mkdir -p "$PKGCFGDIR"/poldek/etc
1521 + mkdir -p "$PKGCFGBASE"/poldek-cache
1523 + $_LN_S "$PKGCFGBASE"/poldek-cache "$PKGCFGDIR"/poldek/cache
1525 + populateDirectory "$PKGCFGDIR/poldek/etc" \
1526 + "$__DISTRIBDIR/defaults/poldek" \
1527 + "$__DISTRIBDIR/$DISTRIBUTION/poldek" \
1528 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek"
1530 +# test -z "$POLDEKCONFDEFAULT" || \
1531 +# $_LN_S "$POLDEKCONFDEFAULT" "$PKGCFGDIR"/poldek/etc/
1533 --- util-vserver-0.30.212.org/scripts/vserver-build.poldek 1970-01-01 01:00:00.000000000 +0100
1534 +++ util-vserver-0.30.212/scripts/vserver-build.poldek 2007-02-04 18:20:38.701247750 +0100
1536 +# $Id$ --*- sh -*--
1538 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
1540 +# This program is free software; you can redistribute it and/or modify
1541 +# it under the terms of the GNU General Public License as published by
1542 +# the Free Software Foundation; version 2 of the License.
1544 +# This program is distributed in the hope that it will be useful,
1545 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1546 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1547 +# GNU General Public License for more details.
1549 +# You should have received a copy of the GNU General Public License
1550 +# along with this program; if not, write to the Free Software
1551 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1553 +tmp=$(getopt -o +d: --long debug -n "$0" -- "$@") || exit 1
1556 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
1557 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK"
1558 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
1562 + (-d) DISTRIBUTION=$2; shift;;
1563 + (--debug) set -x;;
1564 + (--) shift; break ;;
1565 + (*) echo "vserver-build.poldek: internal error: unrecognized option '$1'" >&2
1576 +pkgmgmt.initVariables
1578 +poldek.initVariables
1580 +base.initFilesystem "$OPTION_FORCE"
1581 +pkgmgmt.initFilesystem "$OPTION_FORCE"
1583 +poldek.initFilesystem
1585 +setup_writeOption "$VSERVER_NAME"
1586 +setup_writeInitialFstab
1588 +test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
1589 +rpm.initDB "$SETUP_CONFDIR"
1590 +rpm.importGPGPubKeys "$SETUP_CONFDIR" \
1591 + "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
1592 + "$__CONFDIR/.distributions/.common/pubkeys" \
1593 + "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
1595 +$_VPOLDEK "$SETUP_CONFDIR" -- --update-whole
1596 +poldek.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
1597 +test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"