From f686127ede6a740e0b9094df8c6e6454137bc53f Mon Sep 17 00:00:00 2001 From: schmelzs Date: Thu, 25 Feb 2010 19:37:32 +0100 Subject: added bootstrap 1.0.22 --- contrib/debootstrap/debootstrap | 621 +++++++++++ contrib/debootstrap/functions | 1447 ++++++++++++++++++++++++++ contrib/debootstrap/scripts/breezy | 163 +++ contrib/debootstrap/scripts/dapper | 168 +++ contrib/debootstrap/scripts/edgy | 191 ++++ contrib/debootstrap/scripts/etch | 1 + contrib/debootstrap/scripts/etch-m68k | 1 + contrib/debootstrap/scripts/feisty | 194 ++++ contrib/debootstrap/scripts/gutsy | 216 ++++ contrib/debootstrap/scripts/hardy | 1 + contrib/debootstrap/scripts/hoary | 179 ++++ contrib/debootstrap/scripts/hoary.buildd | 159 +++ contrib/debootstrap/scripts/intrepid | 1 + contrib/debootstrap/scripts/jaunty | 1 + contrib/debootstrap/scripts/karmic | 1 + contrib/debootstrap/scripts/lenny | 1 + contrib/debootstrap/scripts/lucid | 1 + contrib/debootstrap/scripts/potato | 103 ++ contrib/debootstrap/scripts/sarge | 217 ++++ contrib/debootstrap/scripts/sarge.buildd | 165 +++ contrib/debootstrap/scripts/sarge.fakechroot | 171 +++ contrib/debootstrap/scripts/sid | 198 ++++ contrib/debootstrap/scripts/squeeze | 1 + contrib/debootstrap/scripts/stable | 1 + contrib/debootstrap/scripts/testing | 1 + contrib/debootstrap/scripts/unstable | 1 + contrib/debootstrap/scripts/warty | 166 +++ contrib/debootstrap/scripts/warty.buildd | 159 +++ contrib/debootstrap/scripts/woody | 202 ++++ contrib/debootstrap/scripts/woody.buildd | 165 +++ inc/bootstrap.inc.sh | 2 +- inc/chroot-functions.inc.sh | 4 +- 32 files changed, 4899 insertions(+), 3 deletions(-) create mode 100755 contrib/debootstrap/debootstrap create mode 100644 contrib/debootstrap/functions create mode 100644 contrib/debootstrap/scripts/breezy create mode 100644 contrib/debootstrap/scripts/dapper create mode 100644 contrib/debootstrap/scripts/edgy create mode 120000 contrib/debootstrap/scripts/etch create mode 120000 contrib/debootstrap/scripts/etch-m68k create mode 100644 contrib/debootstrap/scripts/feisty create mode 100644 contrib/debootstrap/scripts/gutsy create mode 120000 contrib/debootstrap/scripts/hardy create mode 100644 contrib/debootstrap/scripts/hoary create mode 100644 contrib/debootstrap/scripts/hoary.buildd create mode 120000 contrib/debootstrap/scripts/intrepid create mode 120000 contrib/debootstrap/scripts/jaunty create mode 120000 contrib/debootstrap/scripts/karmic create mode 120000 contrib/debootstrap/scripts/lenny create mode 120000 contrib/debootstrap/scripts/lucid create mode 100644 contrib/debootstrap/scripts/potato create mode 100644 contrib/debootstrap/scripts/sarge create mode 100644 contrib/debootstrap/scripts/sarge.buildd create mode 100644 contrib/debootstrap/scripts/sarge.fakechroot create mode 100644 contrib/debootstrap/scripts/sid create mode 120000 contrib/debootstrap/scripts/squeeze create mode 120000 contrib/debootstrap/scripts/stable create mode 120000 contrib/debootstrap/scripts/testing create mode 120000 contrib/debootstrap/scripts/unstable create mode 100644 contrib/debootstrap/scripts/warty create mode 100644 contrib/debootstrap/scripts/warty.buildd create mode 100644 contrib/debootstrap/scripts/woody create mode 100644 contrib/debootstrap/scripts/woody.buildd diff --git a/contrib/debootstrap/debootstrap b/contrib/debootstrap/debootstrap new file mode 100755 index 0000000..171a5ef --- /dev/null +++ b/contrib/debootstrap/debootstrap @@ -0,0 +1,621 @@ +#!/bin/sh -e + +VERSION='@VERSION@' + +unset TMP TEMP TMPDIR || true + +# might not be exported if we're running from init=/bin/sh or similar +export PATH + +########################################################################### + +if [ -z "$DEBOOTSTRAP_DIR" ]; then + if [ -x /debootstrap/debootstrap ]; then + DEBOOTSTRAP_DIR=/debootstrap + else + DEBOOTSTRAP_DIR=/usr/share/debootstrap + fi +fi + +DEVICES_TARGZ=$DEBOOTSTRAP_DIR/devices.tar.gz + +. $DEBOOTSTRAP_DIR/functions +exec 4>&1 + +LANG=C +USE_COMPONENTS=main +KEYRING="" +VARIANT="" + +DEF_MIRROR="http://ftp.us.debian.org/debian" + +export LANG USE_COMPONENTS +umask 022 + +########################################################################### + +## phases: +## finddebs dldebs printdebs first_stage second_stage + +RESOLVE_DEPS=true + +WHAT_TO_DO="finddebs dldebs first_stage second_stage" +am_doing_phase () { + # usage: if am_doing_phase finddebs; then ...; fi + local x; + for x in "$@"; do + if echo " $WHAT_TO_DO " | grep -q " $x "; then return 0; fi + done + return 1 +} + +########################################################################### + +usage_err() +{ + info USAGE1 "usage: [OPTION]... [ [