1 --- util-vserver-0.30.216-r2837.orig/distrib/defaults/poldek/poldek.conf 1970-01-01 01:00:00.000000000 +0100
2 +++ util-vserver-0.30.216-r2837/distrib/defaults/poldek/poldek.conf 2009-06-22 17:48:26.000000000 +0200
4 +# poldek configuration file.
10 +choose equivalents manually = yes
11 +unique package names = yes
14 +ignore = kernel* udev devfs
15 --- util-vserver-0.30.216-r2837.orig/distrib/Makefile.am 2009-06-22 17:36:52.000000000 +0200
16 +++ util-vserver-0.30.216-r2837/distrib/Makefile.am 2009-06-22 17:49:36.000000000 +0200
20 defaults/apt/apt.conf \
21 + defaults/poldek/poldek.conf \
22 template/initpost template/initpre \
23 rh9/apt/rpmpriorities rh9/pkgs/01 rh9/pkgs/02 \
24 fc1/apt/rpmpriorities fc1/pkgs/01 fc1/pkgs/02 \
26 suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
28 gentoo/init-vserver.sh gentoo/net.vserver \
29 - gentoo/reboot.sh gentoo/shutdown.sh
30 + gentoo/reboot.sh gentoo/shutdown.sh\
31 + pld-ac/pkgs/01 pld-ac/rpm/macros pld-ac/rpm/macros.lang \
32 + pld-th/pkgs/01 pld-th/rpm/macros pld-th/rpm/macros.lang
34 nobase_confdistrib_DATA = rh9/apt/sources.list \
35 fc1/apt/sources.list \
37 fc5/apt/sources.list \
38 fc6/apt/sources.list \
40 - suse91/apt/sources.list
41 + suse91/apt/sources.list \
42 + pld-ac/poldek/repos.d/pld.conf \
43 + pld-th/poldek/repos.d/pld.conf
45 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
46 = $(nobase_distrib_SCRIPTS)
47 --- util-vserver-0.30.216-r2837.orig/distrib/pld-ac/pkgs/01 1970-01-01 01:00:00.000000000 +0100
48 +++ util-vserver-0.30.216-r2837/distrib/pld-ac/pkgs/01 2009-06-22 17:48:26.000000000 +0200
56 --- util-vserver-0.30.216-r2837.orig/distrib/pld-ac/poldek/repos.d/pld.conf 1970-01-01 01:00:00.000000000 +0100
57 +++ util-vserver-0.30.216-r2837/distrib/pld-ac/poldek/repos.d/pld.conf 2009-06-22 17:48:26.000000000 +0200
60 +# PLD Linux Distribution <http://www.pld-linux.org/>.
62 +# Main sources for PLD Linux 2.0 (Ac)
64 +# specify our packages architecture
67 +# main PLD-site for often changed things:
68 +_pld_main_prefix = ftp://ftp.ac.pld-linux.org/dists/ac
71 +## You can use them if you have better connection there
73 +#_prefix = ftp://ftp.task.pld-linux.org/dists/ac
74 +_prefix = %{_pld_main_prefix}
82 +path = %{_prefix}/PLD/%{_arch}/PLD/RPMS/
85 +# msmtp-sendmail is broken, yum noarch is older than in updates
86 +ignore = msmtp-sendmail* yum*
91 +path = %{_prefix}/updates/%{_arch}/
98 +path = %{_prefix}/supported/%{_arch}/
106 +path = %{_pld_main_prefix}/ready/%{_arch}/
114 +path = %{_pld_main_prefix}/test/%{_arch}/
118 +# ac-main + ac-updates
122 +sources = ac-main ac-updates
123 --- util-vserver-0.30.216-r2837.orig/distrib/pld-ac/rpm/macros 1970-01-01 01:00:00.000000000 +0100
124 +++ util-vserver-0.30.216-r2837/distrib/pld-ac/rpm/macros 2009-06-22 17:48:26.000000000 +0200
126 +%_netsharedpath /dev:/proc
129 --- util-vserver-0.30.216-r2837.orig/distrib/pld-ac/rpm/macros.lang 1970-01-01 01:00:00.000000000 +0100
130 +++ util-vserver-0.30.216-r2837/distrib/pld-ac/rpm/macros.lang 2009-06-22 17:48:26.000000000 +0200
132 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
133 +# you have to use at least one language beside 'C'
134 +%_install_langs C:en:pl
135 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/pkgs/01 1970-01-01 01:00:00.000000000 +0100
136 +++ util-vserver-0.30.216-r2837/distrib/pld-th/pkgs/01 2009-06-22 17:48:26.000000000 +0200
144 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/poldek/repos.d/pld.conf 1970-01-01 01:00:00.000000000 +0100
145 +++ util-vserver-0.30.216-r2837/distrib/pld-th/poldek/repos.d/pld.conf 2009-06-22 17:48:26.000000000 +0200
147 +# PLD Linux Distribution <http://www.pld-linux.org/>.
149 +# Main sources for PLD Linux 3.0 (Th)
151 +# specify our packages architecture
154 +# main PLD-site for often changed things (test, ready):
155 +_pld_main_prefix = ftp://ftp.th.pld-linux.org/dists/th
158 +## You can use them if you have better connection there
160 +#_prefix = ftp://ftp.task.pld-linux.org/dists/th
161 +_prefix = %{_pld_main_prefix}
163 +# PLD Linux 3.0 (Th): main sources
167 +path = %{_prefix}/PLD/%{_arch}/RPMS/
172 +path = %{_prefix}/PLD/noarch/RPMS/
174 +# PLD Linux 3.0 (Th): obsolete sources (kde3, ...)
178 +path = %{_prefix}/obsolete/%{_arch}/RPMS/
185 +path = %{_prefix}/obsolete/noarch/RPMS/
189 +# PLD Linux 3.0 (Th): ready sources (testing stage before moved to main)
193 +path = %{_pld_main_prefix}/ready/%{_arch}/RPMS/
200 +path = %{_pld_main_prefix}/ready/noarch/RPMS/
204 +# PLD Linux 3.0 (Th): test sources (built packages to be moved to ready)
208 +path = %{_pld_main_prefix}/test/%{_arch}/RPMS/
215 +path = %{_pld_main_prefix}/test/noarch/RPMS/
218 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/rpm/macros 1970-01-01 01:00:00.000000000 +0100
219 +++ util-vserver-0.30.216-r2837/distrib/pld-th/rpm/macros 2009-06-22 17:48:26.000000000 +0200
221 +%_netsharedpath /dev:/proc
224 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/rpm/macros.lang 1970-01-01 01:00:00.000000000 +0100
225 +++ util-vserver-0.30.216-r2837/distrib/pld-th/rpm/macros.lang 2009-06-22 17:48:26.000000000 +0200
227 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
228 +# you have to use at least one language beside 'C'
229 +%_install_langs C:en:pl
230 --- util-vserver-0.30.216-r2837.orig/scripts/functions 2009-06-22 17:36:35.000000000 +0200
231 +++ util-vserver-0.30.216-r2837/scripts/functions 2009-06-22 17:48:26.000000000 +0200
236 +function _pkgSetVarsPoldek
238 + if test -n "$PKGDIR"; then
239 + findDir POLDEKETCDIR $PKGDIR/poldeketc $PKGDIR/base/poldek/etc /etc/poldek
240 + findDir POLDEKCACHEDIR $PKGDIR/poldek-cache $PKGDIR/base/poldek/cache
242 + findDir POLDEKETCDIR "$VDIR"/etc/poldek /etc/poldek
243 + findDir POLDEKCACHEDIR "$VDIR"/var/tmp/poldek-cache
246 + findFile POLDEK_CONFIG "$POLDEKETCDIR"/poldek.conf ""
247 + test -z "$POLDEK_CONFIG" || export POLDEK_CONFIG
251 function _pkgMountBase
254 apt) _pkgSetVarsApt;;
255 yum) _pkgSetVarsYum;;
256 urpmi) _pkgSetVarsUrpmi;;
257 + poldek) _pkgSetVarsPoldek;;
258 *) echo "Unknown packaging flavor" >&2; exit 1;;
263 elif test -e "$_pgs_vdir"/etc/mandrake-release; then
265 + elif test -e "$_pgs_vdir"/etc/pld-release; then
267 elif test -e "$_pgs_vdir"/etc/debian_version; then
269 elif test -e "$_pgs_vdir"/etc/SuSE-release; then
271 test -n "$have_yum" && return 0 || return 1
274 +## Usage: pkgmgmt.isPoldekAvailable <cfgdir> <vdir> [<is-internal>]
275 +function pkgmgmt.isPoldekAvailable
279 + local is_internal="$3"
281 + local have_poldek i
282 + if test -n "$is_internal"; then
284 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
287 + for i in /bin /usr/bin /usr/local/bin; do
288 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
292 + test -n "$have_poldek" && return 0 || return 1
296 function vshelper.doSanityCheck
298 --- util-vserver-0.30.216-r2837.orig/scripts/Makefile-files 2009-06-22 17:36:35.000000000 +0200
299 +++ util-vserver-0.30.216-r2837/scripts/Makefile-files 2009-06-22 17:48:26.000000000 +0200
301 scripts/vapt-get-worker \
302 scripts/vrpm-worker \
303 scripts/vyum-worker \
304 + scripts/vpoldek-worker \
305 scripts/vrpm-preload \
306 scripts/save_s_context \
307 scripts/vservers.grabinfo.sh \
309 scripts/vserver-build.template \
310 scripts/vserver-build.rsync \
311 scripts/vserver-build.clone \
312 + scripts/vserver-build.poldek \
313 scripts/vserver-build.functions \
314 scripts/vserver-build.functions.apt \
315 scripts/vserver-build.functions.pkgmgmt \
316 scripts/vserver-build.functions.rpm \
317 scripts/vserver-build.functions.urpmi \
318 scripts/vserver-build.functions.yum \
319 + scripts/vserver-build.functions.poldek \
320 scripts/vserver-setup.functions \
321 scripts/vserver.functions \
322 scripts/vserver.start \
324 scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
325 scripts/vapt-get-worker \
327 + scripts/vpoldek-worker \
328 scripts/vrpm-worker \
329 scripts/vrpm-preload \
330 scripts/start-vservers \
332 scripts_sbin_src_PRGS = scripts/chbind \
336 scripts/vdispatch-conf \
339 --- util-vserver-0.30.216-r2837.orig/scripts/pkgmgmt 2009-06-22 17:36:34.000000000 +0200
340 +++ util-vserver-0.30.216-r2837/scripts/pkgmgmt 2009-06-22 17:48:26.000000000 +0200
345 - (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum urpmi "${YUM_RELEASEPKGS[@]}")
346 + (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum urpmi poldek "${YUM_RELEASEPKGS[@]}")
347 hasSubstring "$pkgs" ---rpm--- || {
349 * The vserver does not seem to have the 'rpm' package which is required
354 - hasSubstring "$pkgs" ---apt--- ---yum--- ---urpmi--- || {
355 + hasSubstring "$pkgs" ---apt--- ---yum--- ---urpmi--- ---poldek--- || {
357 -* The vserver does not seem to have a depsolver like 'apt' or 'yum'
358 +* The vserver does not seem to have a depsolver like 'apt', 'yum' or 'poldek'
359 installed. It is suggested to install such a program before setting
360 up internal package management."
362 @@ -368,6 +368,131 @@
366 +function processVserver_PLD()
369 + local is_internalize=$2
373 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
374 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
376 + ## Figure out the environment....
377 + pkgmgmt.isPoldekAvailable "$cfgdir" "$vdir" "$is_internalize" || have_poldek=
379 + local POLDEKETCDIR=
380 + local POLDEKCACHEDIR=
384 + ## Create directories and assign variables where configuration
385 + ## can/will be found on the host
386 + if test -n "$is_internalize"; then
387 + verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
389 +Can not continue; use '--force' to override this check"
391 + pushd "$vdir" >/dev/null
393 + test ! -L var/lib/rpm || {
394 + $_EXEC_CD /var/lib $_RM rpm &&
395 + $_EXEC_CD /var/lib $_MKDIR -m755 rpm &&
396 + $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
398 + } </dev/null 2>/dev/null
400 + for i in var/tmp/poldek-cache etc/rpm etc/poldek; do
402 + $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
407 + if test -n "$have_poldek"; then
408 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /etc/poldek
411 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /etc/rpm /
412 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
414 + mkdir -m755 -p "$cfgdir"
417 + if test -n "$have_poldek"; then
418 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /
419 + findDir POLDEKCACHEDIR "$cfgdir"/poldek-cache "$cfgdir"/base/poldek/cache /
421 + test "$POLDEKETCDIR" != / || POLDEKETCDIR=$cfgdir/base/poldek/etc
422 + test "$POLDEKCACHEDIR" != / || POLDEKCACHEDIR=$cfgdir/base/poldek/cache
424 + test -d "$cfgdir"/poldeketc -a -d "$cfgdir"/poldek-cache || need_base=1
427 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /
428 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state /
430 + test "$RPMETCDIR" != / || RPMETCDIR=$cfgdir/base/rpm/etc
431 + test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
433 + test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
434 + test ! -e "$cfgdir"/base || need_base=
436 + test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
438 + mkdir -m755 -p "$PKGCFGDIR"
439 + _createDirs "$POLDEKETCDIR" "$POLDEKCACHEDIR" \
440 + "$RPMETCDIR" "$RPMSTATEDIR"
443 + ## Copy the files...
444 + if test -n "$is_internalize"; then
445 + if test -n "$have_poldek"; then
446 + _copySecure "$vdir" "$POLDEKETCDIR" /etc/poldek
447 + pushd "$vdir" >/dev/null
448 + _hashAuto /etc/poldek.conf '/'
452 + _copySecure "$vdir" "$RPMETCDIR" /etc/rpm
453 + _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
455 + pushd "$vdir" >/dev/null
456 + ## remove %_dbpath settings
457 + _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
460 + if test -n "$have_poldek"; then
461 + _copySecureRev "$vdir" /etc/poldek "$POLDEKETCDIR"
462 + _unhashAuto "$POLDEKETCDIR"/poldek.conf '/'
465 + _copySecureRev "$vdir" /etc/rpm "$RPMETCDIR"
466 + _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
468 + echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
472 + if test -n "$is_internalize"; then
475 + tmpdir=$($_MKTEMPDIR -p /var/tmp pgmgmt.XXXXXX)
476 + trap "$_RM -rf $tmpdir" EXIT
477 + pushd "$vdir" >/dev/null
478 + $_EXEC_CD /var/lib $_MV rpm $tmpdir/
479 + $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
484 + if test -n "$is_internalize"; then
485 + $_TOUCH "$cfgdir"/internal
487 + $_RM -f "$cfgdir"/internal
491 function processVserver_Debian()
497 (redhat|mandrake) processVserver_RH "$vserver" "$IS_INTERNALIZE";;
498 + (pld) processVserver_PLD "$vserver" "$IS_INTERNALIZE";;
499 (debian) processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
501 echo $"Vserver style '$style' is not supported for packagemanagment" >&2
502 --- util-vserver-0.30.216-r2837.orig/scripts/util-vserver-vars.pathsubst 2009-06-22 17:36:34.000000000 +0200
503 +++ util-vserver-0.30.216-r2837/scripts/util-vserver-vars.pathsubst 2009-06-22 17:48:26.000000000 +0200
505 _LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
506 _LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
507 _LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
508 +_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK="$__PKGLIBDIR/vserver-build.functions.poldek"
509 _LISTDEVIP="$__LEGACYDIR/listdevip"
510 _LOCKFILE="$__PKGLIBDIR/lockfile"
511 _MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
513 _VUNIFY="$__PKGLIBDIR/vunify"
514 _VYUM="$__SBINDIR/vyum"
515 _VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
516 +_VPOLDEK="$__SBINDIR/vpoldek"
517 +_VPOLDEK_WORKER="$__PKGLIBDIR/vpoldek-worker"
521 --- util-vserver-0.30.216-r2837.orig/scripts/vpkg 2009-06-22 17:36:34.000000000 +0200
522 +++ util-vserver-0.30.216-r2837/scripts/vpkg 2009-06-22 17:48:26.000000000 +0200
531 + ## rpm outputs sometimes '(contains no files)', so return
532 + ## only the valid output
534 + rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
536 + rpm_param=( -Uvh "$@" )
537 + poldek_param=( --install -v "$@" )
541 + if test -n "$is_external"; then
543 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
546 + for i in /bin /usr/bin /usr/local/bin; do
547 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
551 + if test -n "$is_external"; then
552 + if test "$have_poldek" -a "$poldek_param"; then
553 + cmd=( "$_VPOLDEK" "$vserver" -- "${poldek_param[@]}" )
555 + cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
558 + if test "$have_poldek" -a "$poldek_param"; then
559 + cmd=( "$_VSERVER" --silent "$vserver" exec poldek "${poldek_param[@]}" )
561 + cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
568 --- util-vserver-0.30.216-r2837.orig/scripts/vpoldek 1970-01-01 01:00:00.000000000 +0100
569 +++ util-vserver-0.30.216-r2837/scripts/vpoldek 2009-06-22 17:48:26.000000000 +0200
574 +# Copyright (C) 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
576 +# This program is free software; you can redistribute it and/or modify
577 +# it under the terms of the GNU General Public License as published by
578 +# the Free Software Foundation; version 2 of the License.
580 +# This program is distributed in the hope that it will be useful,
581 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
582 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
583 +# GNU General Public License for more details.
585 +# You should have received a copy of the GNU General Public License
586 +# along with this program; if not, write to the Free Software
587 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
589 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
590 +test -e "$UTIL_VSERVER_VARS" || {
591 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
594 +. "$UTIL_VSERVER_VARS"
601 +$"Usage: $0 <vserver-name>* [--all] -- <params>+
603 +Report bugs to <$PACKAGE_BUGREPORT>."
607 +function showVersion()
610 +$"vpoldek $PACKAGE_VERSION -- poldek for vservers
611 +This program is part of $PACKAGE_STRING
613 +Copyright (C) 2007 Enrico Scholz
614 +This program is free software; you may redistribute it under the terms of
615 +the GNU General Public License. This program has absolutely no warranty."
619 +tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
622 +declare -a send_through poldek_opts
626 + (--help) showHelp $0 ;;
627 + (--version) showVersion ;;
628 + (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
629 + (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
630 + (--all) poldek_opts=( "${poldek_opts[@]}" "$1" );;
631 + (--) shift; break;;
632 + (*) echo $"vpoldek: internal error; arg=='$1'" >&2; exit 1;;
637 +VSOMETHING_TITLE=vpoldek
638 +VSOMETHING_WORKER=$_VPOLDEK_WORKER
639 +VSOMETHING_PKGMGMT=1
641 +export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
643 +test ${#poldek_opts[@]} -eq 0 || poldek_opts=( "${poldek_opts[@]}" -- )
644 +exec $_VSOMETHING "${send_through[@]}" poldek "${poldek_opts[@]}" "$@"
645 --- util-vserver-0.30.216-r2837.orig/scripts/vpoldek-worker 1970-01-01 01:00:00.000000000 +0100
646 +++ util-vserver-0.30.216-r2837/scripts/vpoldek-worker 2009-06-22 17:48:26.000000000 +0200
651 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
653 +# This program is free software; you can redistribute it and/or modify
654 +# it under the terms of the GNU General Public License as published by
655 +# the Free Software Foundation; version 2 of the License.
657 +# This program is distributed in the hope that it will be useful,
658 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
659 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
660 +# GNU General Public License for more details.
662 +# You should have received a copy of the GNU General Public License
663 +# along with this program; if not, write to the Free Software
664 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
668 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
669 +test -e "$UTIL_VSERVER_VARS" || {
670 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
673 +. "$UTIL_VSERVER_VARS"
680 +pkgInit "$vserver" rpm poldek
682 +test -z "$_POLDEK" || {
683 + warning $"The environment variable \$_POLDEK is not supported anymore; please use \$POLDEK instead of"
684 + ${POLDEK:=$_POLDEK}
687 +exec ${_POLDEK:-poldek} \
689 + --cachedir=$POLDEKCACHEDIR \
690 + --conf=$POLDEK_CONFIG \
691 + --pmcmd=$RPM_BINARY \
693 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build 2009-06-22 17:36:34.000000000 +0200
694 +++ util-vserver-0.30.216-r2837/scripts/vserver-build 2009-06-22 17:48:26.000000000 +0200
696 ... installs the base-packages of the given distribution with
698 urpmi ... -- -d <distribution> -m <mirror>
699 + poldek ... -- -d <distribution>
700 + ... installs the base-packages of the given distribution with
702 rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
703 ... installs lists of rpm-packages
704 skeleton ... -- [<cmd> <args>*]
708 (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
709 - (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xurpmi)
710 + (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xurpmi|xpoldek)
711 . $__PKGLIBDIR/vserver-build.$method
713 (x) panic $"No build-method specified";;
714 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.functions 2009-06-22 17:36:35.000000000 +0200
715 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.functions 2009-06-22 17:48:26.000000000 +0200
717 elif test -e /etc/slackware-version; then
718 set -- $(cat /etc/slackware-version)
719 DISTRIBUTION=slackware$2
720 + elif test -e /etc/pld-release; then
723 + set -- $(cat /etc/pld-release)
724 + DISTRIBUTION=pld-$(echo $2 | tr A-Z a-z)
726 elif test -n "$1"; then
729 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.functions.poldek 1970-01-01 01:00:00.000000000 +0100
730 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.functions.poldek 2009-06-22 17:48:26.000000000 +0200
734 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
736 +# This program is free software; you can redistribute it and/or modify
737 +# it under the terms of the GNU General Public License as published by
738 +# the Free Software Foundation; version 2 of the License.
740 +# This program is distributed in the hope that it will be useful,
741 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
742 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
743 +# GNU General Public License for more details.
745 +# You should have received a copy of the GNU General Public License
746 +# along with this program; if not, write to the Free Software
747 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
749 +function poldek.installBasePackages
754 + test "$dir" != / || return 0
755 + for filelist in "$dir"/*; do
756 + isRegularFile "$filelist" || continue
758 + local can_fail=false
759 + local flags='--install'
761 + set -- $(<$filelist)
762 + while test "$#" -gt 0; do
764 + --reinstall) flags='--reinstall';;
765 + --can-fail) can_fail=true;;
770 + "$_VPOLDEK" "$name" -- $flags $* || $can_fail
774 +function poldek.initVariables
776 + findFile POLDEKCONFDEFAULT \
777 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/poldek.conf" \
778 + "$__CONFDIR/.defaults/apps/pkgmgmt/poldek/poldek.conf" \
779 + "$__DISTRIBDIR/$DISTRIBUTION/poldek/poldek.conf" \
780 + "$__DISTRIBDIR/defaults/poldek/poldek.conf" \
784 +function poldek.initFilesystem
786 + mkdir -p "$PKGCFGDIR"/poldek/etc/repos.d
788 + $_LN_S "$__CONFDIR"/.defaults/cachebase/poldek "$PKGCFGDIR"/poldek/cache
790 + populateDirectory "$PKGCFGDIR/poldek/etc" \
791 + "$__DISTRIBDIR/defaults/poldek" \
792 + "$__DISTRIBDIR/$DISTRIBUTION/poldek" \
793 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek"
795 + populateDirectory "$PKGCFGDIR/poldek/etc/repos.d" \
796 + "$__DISTRIBDIR/defaults/poldek/repos.d" \
797 + "$__DISTRIBDIR/$DISTRIBUTION/poldek/repos.d" \
798 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/repos.d"
800 + if [ -n "$SETUP_MACHINE" ]; then
801 + say "Using $SETUP_MACHINE as machine"
802 + sed -i -e "s#^\(_arch\s*\)=.*#\1= $SETUP_MACHINE#" "$PKGCFGDIR"/poldek/etc/repos.d/*.conf
805 + if [ -n "$MIRROR" ]; then
806 + say "Using $MIRROR as mirror URL"
807 + sed -i -e "s#^\(_prefix\s*\)=.*#\1= $MIRROR#" "$PKGCFGDIR"/poldek/etc/repos.d/*.conf
810 +# test -z "$POLDEKCONFDEFAULT" || \
811 +# $_LN_S "$POLDEKCONFDEFAULT" "$PKGCFGDIR"/poldek/etc/
813 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.poldek 1970-01-01 01:00:00.000000000 +0100
814 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.poldek 2009-06-22 17:48:26.000000000 +0200
818 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
820 +# This program is free software; you can redistribute it and/or modify
821 +# it under the terms of the GNU General Public License as published by
822 +# the Free Software Foundation; version 2 of the License.
824 +# This program is distributed in the hope that it will be useful,
825 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
826 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
827 +# GNU General Public License for more details.
829 +# You should have received a copy of the GNU General Public License
830 +# along with this program; if not, write to the Free Software
831 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
833 +tmp=$(getopt -o +d:,m: --long debug -n "$0" -- "$@") || exit 1
836 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
837 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK"
838 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
842 + (-d) DISTRIBUTION=$2; shift;;
843 + (-m) MIRROR=$2; shift;;
845 + (--) shift; break ;;
846 + (*) echo "vserver-build.poldek: internal error: unrecognized option '$1'" >&2
857 +pkgmgmt.initVariables
859 +poldek.initVariables
861 +base.initFilesystem "$OPTION_FORCE"
862 +pkgmgmt.initFilesystem "$OPTION_FORCE"
864 +poldek.initFilesystem
866 +setup_writeOption "$VSERVER_NAME"
867 +setup_writeInitialFstab
869 +test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
870 +rpm.initDB "$SETUP_CONFDIR"
871 +rpm.importGPGPubKeys "$SETUP_CONFDIR" \
872 + "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
873 + "$__CONFDIR/.distributions/.common/pubkeys" \
874 + "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
876 +$_VPOLDEK "$SETUP_CONFDIR" -- --update-whole
877 +poldek.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
878 +test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"