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 \
32 + pld-th/pkgs/01 pld-th/rpm/macros
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 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
127 +# you have to use at least one language beside 'C'
128 +%_install_langs C:en:pl
129 +%_netsharedpath /dev:/proc
132 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/pkgs/01 1970-01-01 01:00:00.000000000 +0100
133 +++ util-vserver-0.30.216-r2837/distrib/pld-th/pkgs/01 2009-06-22 17:48:26.000000000 +0200
141 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/poldek/repos.d/pld.conf 1970-01-01 01:00:00.000000000 +0100
142 +++ util-vserver-0.30.216-r2837/distrib/pld-th/poldek/repos.d/pld.conf 2009-06-22 17:48:26.000000000 +0200
144 +# PLD Linux Distribution <http://www.pld-linux.org/>.
146 +# Main sources for PLD Linux 3.0 (Th)
148 +# specify our packages architecture
151 +# main PLD-site for often changed things (test, ready):
152 +_pld_main_prefix = ftp://ftp.th.pld-linux.org/dists/th
155 +## You can use them if you have better connection there
157 +#_prefix = ftp://ftp.task.pld-linux.org/dists/th
158 +_prefix = %{_pld_main_prefix}
160 +# PLD Linux 3.0 (Th): main sources
164 +path = %{_prefix}/PLD/%{_arch}/RPMS/
169 +path = %{_prefix}/PLD/noarch/RPMS/
171 +# PLD Linux 3.0 (Th): obsolete sources (kde3, ...)
175 +path = %{_prefix}/obsolete/%{_arch}/RPMS/
182 +path = %{_prefix}/obsolete/noarch/RPMS/
186 +# PLD Linux 3.0 (Th): ready sources (testing stage before moved to main)
190 +path = %{_pld_main_prefix}/ready/%{_arch}/RPMS/
197 +path = %{_pld_main_prefix}/ready/noarch/RPMS/
201 +# PLD Linux 3.0 (Th): test sources (built packages to be moved to ready)
205 +path = %{_pld_main_prefix}/test/%{_arch}/RPMS/
212 +path = %{_pld_main_prefix}/test/noarch/RPMS/
215 --- util-vserver-0.30.216-r2837.orig/distrib/pld-th/rpm/macros 1970-01-01 01:00:00.000000000 +0100
216 +++ util-vserver-0.30.216-r2837/distrib/pld-th/rpm/macros 2009-06-22 17:48:26.000000000 +0200
218 +# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
219 +# you have to use at least one language beside 'C'
220 +%_install_langs C:en:pl
221 +%_netsharedpath /dev:/proc
224 --- util-vserver-0.30.216-r2837.orig/scripts/functions 2009-06-22 17:36:35.000000000 +0200
225 +++ util-vserver-0.30.216-r2837/scripts/functions 2009-06-22 17:48:26.000000000 +0200
230 +function _pkgSetVarsPoldek
232 + if test -n "$PKGDIR"; then
233 + findDir POLDEKETCDIR $PKGDIR/poldeketc $PKGDIR/base/poldek/etc /etc/poldek
234 + findDir POLDEKCACHEDIR $PKGDIR/poldek-cache $PKGDIR/base/poldek/cache
236 + findDir POLDEKETCDIR "$VDIR"/etc/poldek /etc/poldek
237 + findDir POLDEKCACHEDIR "$VDIR"/var/tmp/poldek-cache
240 + findFile POLDEK_CONFIG "$POLDEKETCDIR"/poldek.conf ""
241 + test -z "$POLDEK_CONFIG" || export POLDEK_CONFIG
245 function _pkgMountBase
248 apt) _pkgSetVarsApt;;
249 yum) _pkgSetVarsYum;;
250 urpmi) _pkgSetVarsUrpmi;;
251 + poldek) _pkgSetVarsPoldek;;
252 *) echo "Unknown packaging flavor" >&2; exit 1;;
257 elif test -e "$_pgs_vdir"/etc/mandrake-release; then
259 + elif test -e "$_pgs_vdir"/etc/pld-release; then
261 elif test -e "$_pgs_vdir"/etc/debian_version; then
263 elif test -e "$_pgs_vdir"/etc/SuSE-release; then
265 test -n "$have_yum" && return 0 || return 1
268 +## Usage: pkgmgmt.isPoldekAvailable <cfgdir> <vdir> [<is-internal>]
269 +function pkgmgmt.isPoldekAvailable
273 + local is_internal="$3"
275 + local have_poldek i
276 + if test -n "$is_internal"; then
278 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
281 + for i in /bin /usr/bin /usr/local/bin; do
282 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
286 + test -n "$have_poldek" && return 0 || return 1
290 function vshelper.doSanityCheck
292 --- util-vserver-0.30.216-r2837.orig/scripts/Makefile-files 2009-06-22 17:36:35.000000000 +0200
293 +++ util-vserver-0.30.216-r2837/scripts/Makefile-files 2009-06-22 17:48:26.000000000 +0200
295 scripts/vapt-get-worker \
296 scripts/vrpm-worker \
297 scripts/vyum-worker \
298 + scripts/vpoldek-worker \
299 scripts/vrpm-preload \
300 scripts/save_s_context \
301 scripts/vservers.grabinfo.sh \
303 scripts/vserver-build.template \
304 scripts/vserver-build.rsync \
305 scripts/vserver-build.clone \
306 + scripts/vserver-build.poldek \
307 scripts/vserver-build.functions \
308 scripts/vserver-build.functions.apt \
309 scripts/vserver-build.functions.pkgmgmt \
310 scripts/vserver-build.functions.rpm \
311 scripts/vserver-build.functions.urpmi \
312 scripts/vserver-build.functions.yum \
313 + scripts/vserver-build.functions.poldek \
314 scripts/vserver-setup.functions \
315 scripts/vserver.functions \
316 scripts/vserver.start \
318 scripts_pkglib_src_SCRPTS = scripts/pkgmgmt \
319 scripts/vapt-get-worker \
321 + scripts/vpoldek-worker \
322 scripts/vrpm-worker \
323 scripts/vrpm-preload \
324 scripts/start-vservers \
326 scripts_sbin_src_PRGS = scripts/chbind \
330 scripts/vdispatch-conf \
333 --- util-vserver-0.30.216-r2837.orig/scripts/pkgmgmt 2009-06-22 17:36:34.000000000 +0200
334 +++ util-vserver-0.30.216-r2837/scripts/pkgmgmt 2009-06-22 17:48:26.000000000 +0200
339 - (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum urpmi "${YUM_RELEASEPKGS[@]}")
340 + (RH) pkgs=$(vrpm "$1" -- -q --qf '---%{NAME}---\n' rpm apt yum urpmi poldek "${YUM_RELEASEPKGS[@]}")
341 hasSubstring "$pkgs" ---rpm--- || {
343 * The vserver does not seem to have the 'rpm' package which is required
348 - hasSubstring "$pkgs" ---apt--- ---yum--- ---urpmi--- || {
349 + hasSubstring "$pkgs" ---apt--- ---yum--- ---urpmi--- ---poldek--- || {
351 -* The vserver does not seem to have a depsolver like 'apt' or 'yum'
352 +* The vserver does not seem to have a depsolver like 'apt', 'yum' or 'poldek'
353 installed. It is suggested to install such a program before setting
354 up internal package management."
356 @@ -368,6 +368,131 @@
360 +function processVserver_PLD()
363 + local is_internalize=$2
367 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR pkgmgmt) || \
368 + cfgdir=$($_VSERVER_INFO "$vserver" APPDIR)/pkgmgmt
370 + ## Figure out the environment....
371 + pkgmgmt.isPoldekAvailable "$cfgdir" "$vdir" "$is_internalize" || have_poldek=
373 + local POLDEKETCDIR=
374 + local POLDEKCACHEDIR=
378 + ## Create directories and assign variables where configuration
379 + ## can/will be found on the host
380 + if test -n "$is_internalize"; then
381 + verifyInternalPackages "$vserver" RH || test -n "$IS_FORCE" ||
383 +Can not continue; use '--force' to override this check"
385 + pushd "$vdir" >/dev/null
387 + test ! -L var/lib/rpm || {
388 + $_EXEC_CD /var/lib $_RM rpm &&
389 + $_EXEC_CD /var/lib $_MKDIR -m755 rpm &&
390 + $_EXEC_CD /var/lib $_CHOWN rpm:rpm rpm ||
392 + } </dev/null 2>/dev/null
394 + for i in var/tmp/poldek-cache etc/rpm etc/poldek; do
396 + $_EXEC_CD /$(dirname "$i") $_MKDIR -m755 $(basename "$i") || :
401 + if test -n "$have_poldek"; then
402 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /etc/poldek
405 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /etc/rpm /
406 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state
408 + mkdir -m755 -p "$cfgdir"
411 + if test -n "$have_poldek"; then
412 + findDir POLDEKETCDIR "$cfgdir"/poldeketc "$cfgdir"/base/poldek/etc /
413 + findDir POLDEKCACHEDIR "$cfgdir"/poldek-cache "$cfgdir"/base/poldek/cache /
415 + test "$POLDEKETCDIR" != / || POLDEKETCDIR=$cfgdir/base/poldek/etc
416 + test "$POLDEKCACHEDIR" != / || POLDEKCACHEDIR=$cfgdir/base/poldek/cache
418 + test -d "$cfgdir"/poldeketc -a -d "$cfgdir"/poldek-cache || need_base=1
421 + findDir RPMETCDIR "$cfgdir"/rpmetc "$cfgdir"/base/rpm/etc /
422 + findDir RPMSTATEDIR "$cfgdir"/rpmstate "$cfgdir"/base/rpm/state /
424 + test "$RPMETCDIR" != / || RPMETCDIR=$cfgdir/base/rpm/etc
425 + test "$RPMSTATEDIR" != / || RPMSTATEDIR=$cfgdir/base/rpm/state
427 + test -d "$cfgdir"/rpmetc -a -d "$cfgdir"/rpmstate || need_base=1
428 + test ! -e "$cfgdir"/base || need_base=
430 + test -z "$need_base" || ln -s "$PKGCFGDIR" "$cfgdir"/base
432 + mkdir -m755 -p "$PKGCFGDIR"
433 + _createDirs "$POLDEKETCDIR" "$POLDEKCACHEDIR" \
434 + "$RPMETCDIR" "$RPMSTATEDIR"
437 + ## Copy the files...
438 + if test -n "$is_internalize"; then
439 + if test -n "$have_poldek"; then
440 + _copySecure "$vdir" "$POLDEKETCDIR" /etc/poldek
441 + pushd "$vdir" >/dev/null
442 + _hashAuto /etc/poldek.conf '/'
446 + _copySecure "$vdir" "$RPMETCDIR" /etc/rpm
447 + _copySecure "$vdir" "$RPMSTATEDIR" /var/lib/rpm
449 + pushd "$vdir" >/dev/null
450 + ## remove %_dbpath settings
451 + _substFile /etc/rpm/macros '/^%_dbpath[ \t].*/D'
454 + if test -n "$have_poldek"; then
455 + _copySecureRev "$vdir" /etc/poldek "$POLDEKETCDIR"
456 + _unhashAuto "$POLDEKETCDIR"/poldek.conf '/'
459 + _copySecureRev "$vdir" /etc/rpm "$RPMETCDIR"
460 + _copySecureRev "$vdir" /var/lib/rpm "$RPMSTATEDIR"
462 + echo -e "%_dbpath\t\t$rpmdb_mntpoint" >>$RPMETCDIR/macros
466 + if test -n "$is_internalize"; then
469 + tmpdir=$($_MKTEMPDIR -p /var/tmp pgmgmt.XXXXXX)
470 + trap "$_RM -rf $tmpdir" EXIT
471 + pushd "$vdir" >/dev/null
472 + $_EXEC_CD /var/lib $_MV rpm $tmpdir/
473 + $_EXEC_CD /var/lib $_LN_S "$rpmdb_mntpoint" rpm
478 + if test -n "$is_internalize"; then
479 + $_TOUCH "$cfgdir"/internal
481 + $_RM -f "$cfgdir"/internal
485 function processVserver_Debian()
491 (redhat|mandrake) processVserver_RH "$vserver" "$IS_INTERNALIZE";;
492 + (pld) processVserver_PLD "$vserver" "$IS_INTERNALIZE";;
493 (debian) processVserver_Debian "$vserver" "$IS_INTERNALIZE";;
495 echo $"Vserver style '$style' is not supported for packagemanagment" >&2
496 --- util-vserver-0.30.216-r2837.orig/scripts/util-vserver-vars.pathsubst 2009-06-22 17:36:34.000000000 +0200
497 +++ util-vserver-0.30.216-r2837/scripts/util-vserver-vars.pathsubst 2009-06-22 17:48:26.000000000 +0200
499 _LIB_VSERVER_BUILD_FUNCTIONS_RPM="$__PKGLIBDIR/vserver-build.functions.rpm"
500 _LIB_VSERVER_BUILD_FUNCTIONS_YUM="$__PKGLIBDIR/vserver-build.functions.yum"
501 _LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT="$__PKGLIBDIR/vserver-build.functions.pkgmgmt"
502 +_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK="$__PKGLIBDIR/vserver-build.functions.poldek"
503 _LISTDEVIP="$__LEGACYDIR/listdevip"
504 _LOCKFILE="$__PKGLIBDIR/lockfile"
505 _MASK2PREFIX="$__PKGLIBDIR/mask2prefix"
507 _VUNIFY="$__PKGLIBDIR/vunify"
508 _VYUM="$__SBINDIR/vyum"
509 _VYUM_WORKER="$__PKGLIBDIR/vyum-worker"
510 +_VPOLDEK="$__SBINDIR/vpoldek"
511 +_VPOLDEK_WORKER="$__PKGLIBDIR/vpoldek-worker"
515 --- util-vserver-0.30.216-r2837.orig/scripts/vpkg 2009-06-22 17:36:34.000000000 +0200
516 +++ util-vserver-0.30.216-r2837/scripts/vpkg 2009-06-22 17:48:26.000000000 +0200
525 + ## rpm outputs sometimes '(contains no files)', so return
526 + ## only the valid output
528 + rpm_param=( -qac --pipe "$_SED '\!^/!p;d'" );;
530 + rpm_param=( -Uvh "$@" )
531 + poldek_param=( --install -v "$@" )
535 + if test -n "$is_external"; then
537 + test -d "$cfgdir"/base/poldek -o -d "$cfgdir"/poldeketc || have_poldek=
540 + for i in /bin /usr/bin /usr/local/bin; do
541 + test ! -x "$vdir$i"/poldek || { have_poldek=1; break; }
545 + if test -n "$is_external"; then
546 + if test "$have_poldek" -a "$poldek_param"; then
547 + cmd=( "$_VPOLDEK" "$vserver" -- "${poldek_param[@]}" )
549 + cmd=( "$_VRPM" "$vserver" -- "${rpm_param[@]}" )
552 + if test "$have_poldek" -a "$poldek_param"; then
553 + cmd=( "$_VSERVER" --silent "$vserver" exec poldek "${poldek_param[@]}" )
555 + cmd=( "$_VSERVER" --silent "$vserver" exec rpm "${rpm_param[@]}" )
562 --- util-vserver-0.30.216-r2837.orig/scripts/vpoldek 1970-01-01 01:00:00.000000000 +0100
563 +++ util-vserver-0.30.216-r2837/scripts/vpoldek 2009-06-22 17:48:26.000000000 +0200
568 +# Copyright (C) 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
570 +# This program is free software; you can redistribute it and/or modify
571 +# it under the terms of the GNU General Public License as published by
572 +# the Free Software Foundation; version 2 of the License.
574 +# This program is distributed in the hope that it will be useful,
575 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
576 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
577 +# GNU General Public License for more details.
579 +# You should have received a copy of the GNU General Public License
580 +# along with this program; if not, write to the Free Software
581 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
583 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
584 +test -e "$UTIL_VSERVER_VARS" || {
585 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
588 +. "$UTIL_VSERVER_VARS"
595 +$"Usage: $0 <vserver-name>* [--all] -- <params>+
597 +Report bugs to <$PACKAGE_BUGREPORT>."
601 +function showVersion()
604 +$"vpoldek $PACKAGE_VERSION -- poldek for vservers
605 +This program is part of $PACKAGE_STRING
607 +Copyright (C) 2007 Enrico Scholz
608 +This program is free software; you may redistribute it under the terms of
609 +the GNU General Public License. This program has absolutely no warranty."
613 +tmp=$(getopt -o +q --long help,version,debug,quiet,all -n "$0" -- "$@") || exit 1
616 +declare -a send_through poldek_opts
620 + (--help) showHelp $0 ;;
621 + (--version) showVersion ;;
622 + (--debug) send_through=( "${send_through[@]}" "$1" ); set -x;;
623 + (--quiet|-q) send_through=( "${send_through[@]}" "$1" );;
624 + (--all) poldek_opts=( "${poldek_opts[@]}" "$1" );;
625 + (--) shift; break;;
626 + (*) echo $"vpoldek: internal error; arg=='$1'" >&2; exit 1;;
631 +VSOMETHING_TITLE=vpoldek
632 +VSOMETHING_WORKER=$_VPOLDEK_WORKER
633 +VSOMETHING_PKGMGMT=1
635 +export VSOMETHING_TITLE VSOMETHING_WORKER VSOMETHING_PKGMGMT
637 +test ${#poldek_opts[@]} -eq 0 || poldek_opts=( "${poldek_opts[@]}" -- )
638 +exec $_VSOMETHING "${send_through[@]}" poldek "${poldek_opts[@]}" "$@"
639 --- util-vserver-0.30.216-r2837.orig/scripts/vpoldek-worker 1970-01-01 01:00:00.000000000 +0100
640 +++ util-vserver-0.30.216-r2837/scripts/vpoldek-worker 2009-06-22 17:48:26.000000000 +0200
645 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
647 +# This program is free software; you can redistribute it and/or modify
648 +# it under the terms of the GNU General Public License as published by
649 +# the Free Software Foundation; version 2 of the License.
651 +# This program is distributed in the hope that it will be useful,
652 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
653 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
654 +# GNU General Public License for more details.
656 +# You should have received a copy of the GNU General Public License
657 +# along with this program; if not, write to the Free Software
658 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
662 +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
663 +test -e "$UTIL_VSERVER_VARS" || {
664 + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2
667 +. "$UTIL_VSERVER_VARS"
674 +pkgInit "$vserver" rpm poldek
676 +test -z "$_POLDEK" || {
677 + warning $"The environment variable \$_POLDEK is not supported anymore; please use \$POLDEK instead of"
678 + ${POLDEK:=$_POLDEK}
681 +exec ${_POLDEK:-poldek} \
683 + --cachedir=$POLDEKCACHEDIR \
684 + --conf=$POLDEK_CONFIG \
685 + --pmcmd=$RPM_BINARY \
687 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build 2009-06-22 17:36:34.000000000 +0200
688 +++ util-vserver-0.30.216-r2837/scripts/vserver-build 2009-06-22 17:48:26.000000000 +0200
690 ... installs the base-packages of the given distribution with
692 urpmi ... -- -d <distribution> -m <mirror>
693 + poldek ... -- -d <distribution>
694 + ... installs the base-packages of the given distribution with
696 rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
697 ... installs lists of rpm-packages
698 skeleton ... -- [<cmd> <args>*]
702 (xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
703 - (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xurpmi)
704 + (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xurpmi|xpoldek)
705 . $__PKGLIBDIR/vserver-build.$method
707 (x) panic $"No build-method specified";;
708 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.functions 2009-06-22 17:36:35.000000000 +0200
709 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.functions 2009-06-22 17:48:26.000000000 +0200
711 elif test -e /etc/slackware-version; then
712 set -- $(cat /etc/slackware-version)
713 DISTRIBUTION=slackware$2
714 + elif test -e /etc/pld-release; then
717 + set -- $(cat /etc/pld-release)
718 + DISTRIBUTION=pld-$(echo $2 | tr A-Z a-z)
720 elif test -n "$1"; then
723 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.functions.poldek 1970-01-01 01:00:00.000000000 +0100
724 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.functions.poldek 2009-06-22 17:48:26.000000000 +0200
728 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
730 +# This program is free software; you can redistribute it and/or modify
731 +# it under the terms of the GNU General Public License as published by
732 +# the Free Software Foundation; version 2 of the License.
734 +# This program is distributed in the hope that it will be useful,
735 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
736 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
737 +# GNU General Public License for more details.
739 +# You should have received a copy of the GNU General Public License
740 +# along with this program; if not, write to the Free Software
741 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
743 +function poldek.installBasePackages
748 + test "$dir" != / || return 0
749 + for filelist in "$dir"/*; do
750 + isRegularFile "$filelist" || continue
752 + local can_fail=false
753 + local flags='--install'
755 + set -- $(<$filelist)
756 + while test "$#" -gt 0; do
758 + --reinstall) flags='--reinstall';;
759 + --can-fail) can_fail=true;;
764 + "$_VPOLDEK" "$name" -- $flags $* || $can_fail
768 +function poldek.initVariables
770 + findFile POLDEKCONFDEFAULT \
771 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/poldek.conf" \
772 + "$__CONFDIR/.defaults/apps/pkgmgmt/poldek/poldek.conf" \
773 + "$__DISTRIBDIR/$DISTRIBUTION/poldek/poldek.conf" \
774 + "$__DISTRIBDIR/defaults/poldek/poldek.conf" \
778 +function poldek.initFilesystem
780 + mkdir -p "$PKGCFGDIR"/poldek/etc/repos.d
782 + $_LN_S "$__CONFDIR"/.defaults/cachebase/poldek "$PKGCFGDIR"/poldek/cache
784 + populateDirectory "$PKGCFGDIR/poldek/etc" \
785 + "$__DISTRIBDIR/defaults/poldek" \
786 + "$__DISTRIBDIR/$DISTRIBUTION/poldek" \
787 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek"
789 + populateDirectory "$PKGCFGDIR/poldek/etc/repos.d" \
790 + "$__DISTRIBDIR/defaults/poldek/repos.d" \
791 + "$__DISTRIBDIR/$DISTRIBUTION/poldek/repos.d" \
792 + "$__CONFDIR/.distributions/$DISTRIBUTION/poldek/repos.d"
794 + if [ -n "$SETUP_MACHINE" ]; then
795 + say "Using $SETUP_MACHINE as machine"
796 + sed -i -e "s#^\(_arch\s*\)=.*#\1= $SETUP_MACHINE#" "$PKGCFGDIR"/poldek/etc/repos.d/*.conf
799 + if [ -n "$MIRROR" ]; then
800 + say "Using $MIRROR as mirror URL"
801 + sed -i -e "s#^\(_prefix\s*\)=.*#\1= $MIRROR#" "$PKGCFGDIR"/poldek/etc/repos.d/*.conf
804 +# test -z "$POLDEKCONFDEFAULT" || \
805 +# $_LN_S "$POLDEKCONFDEFAULT" "$PKGCFGDIR"/poldek/etc/
807 --- util-vserver-0.30.216-r2837.orig/scripts/vserver-build.poldek 1970-01-01 01:00:00.000000000 +0100
808 +++ util-vserver-0.30.216-r2837/scripts/vserver-build.poldek 2009-06-22 17:48:26.000000000 +0200
812 +# Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
814 +# This program is free software; you can redistribute it and/or modify
815 +# it under the terms of the GNU General Public License as published by
816 +# the Free Software Foundation; version 2 of the License.
818 +# This program is distributed in the hope that it will be useful,
819 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
820 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
821 +# GNU General Public License for more details.
823 +# You should have received a copy of the GNU General Public License
824 +# along with this program; if not, write to the Free Software
825 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
827 +tmp=$(getopt -o +d:,m: --long debug -n "$0" -- "$@") || exit 1
830 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_RPM"
831 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_POLDEK"
832 +. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
836 + (-d) DISTRIBUTION=$2; shift;;
837 + (-m) MIRROR=$2; shift;;
839 + (--) shift; break ;;
840 + (*) echo "vserver-build.poldek: internal error: unrecognized option '$1'" >&2
851 +pkgmgmt.initVariables
853 +poldek.initVariables
855 +base.initFilesystem "$OPTION_FORCE"
856 +pkgmgmt.initFilesystem "$OPTION_FORCE"
858 +poldek.initFilesystem
860 +setup_writeOption "$VSERVER_NAME"
861 +setup_writeInitialFstab
863 +test -z "$BUILD_INITPRE" || "$BUILD_INITPRE" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
864 +rpm.initDB "$SETUP_CONFDIR"
865 +rpm.importGPGPubKeys "$SETUP_CONFDIR" \
866 + "$__CONFDIR/.distributions/$DISTRIBUTION/pubkeys" \
867 + "$__CONFDIR/.distributions/.common/pubkeys" \
868 + "$__DISTRIBDIR/$DISTRIBUTION/pubkeys"
870 +$_VPOLDEK "$SETUP_CONFDIR" -- --update-whole
871 +poldek.installBasePackages "$SETUP_CONFDIR" "$PKGINSTALLDIR"
872 +test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"