4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
12 [ "$CHROOT_PROFILE" = "dsa" ] || [ "$CHROOT_PROFILE" = "buildd-dsa" ] || exit 0
14 . "$SETUP_DATA_DIR/common-data"
15 . "$SETUP_DATA_DIR/common-functions"
17 if [ -f "${CHROOT_SCRIPT_CONFIG:-}" ]; then
18 . "$CHROOT_SCRIPT_CONFIG"
19 elif [ -f "$CHROOT_PROFILE_DIR/config" ]; then
20 . "$CHROOT_PROFILE_DIR/config"
22 fatal "Cannot find config script"
25 suite_alias="$SUITE_BASE"
30 suite_alias="$SUITE_BASE-kfreebsd"
36 if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
37 SRCL="${CHROOT_PATH}/etc/apt/sources.list.d/auto.list"
39 mirror=${MIRROR:-http://ftp.debian.org/debian}
43 case "${SUITE_BASE:-}" in
45 echo "deb http://ftp.de.debian.org/debian-ports experimental main" >> "$SRCL"
46 echo "deb-src $mirror experimental main" >> "$SRCL"
48 echo "deb http://ftp.de.debian.org/debian-ports sid main" >> "$SRCL"
49 echo "deb-src $mirror sid main" >> "$SRCL"
51 echo "deb http://ftp.de.debian.org/debian-ports unreleased main" >> "$SRCL"
52 echo "deb-src http://ftp.de.debian.org/debian-ports unreleased main" >> "$SRCL"
55 echo "deb http://ftp.de.debian.org/debian-ports sid main" >> "$SRCL"
56 echo "deb-src $mirror sid main" >> "$SRCL"
58 echo "deb http://ftp.de.debian.org/debian-ports unreleased main" >> "$SRCL"
59 echo "deb-src http://ftp.de.debian.org/debian-ports unreleased main" >> "$SRCL"
62 fatal "Unexpected suite base $SUITE_BASE"
67 case "${SUITE_BASE:-}" in
69 echo "deb $mirror sid main" >> "$SRCL"
70 echo "deb-src $mirror sid main" >> "$SRCL"
75 echo "deb http://security.debian.org/ ${suite_alias}/updates main" >> "$SRCL"
76 echo "deb-src http://security.debian.org/ ${suite_alias}/updates main" >> "$SRCL"
79 echo "deb $mirror ${suite_alias} main" >> "$SRCL"
80 echo "deb-src $mirror ${suite_alias} main" >> "$SRCL"
82 case "${SUITE_VARIANT:-}" in
84 case "${SUITE_BASE:-}" in
86 echo "deb http://backports.debian.org/debian-backports/ ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
87 echo "deb-src http://backports.debian.org/debian-backports/ ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
90 echo "deb $mirror ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
91 echo "deb-src $mirror ${suite_alias}-${SUITE_VARIANT} main" >> "$SRCL"
98 echo "o To install build dependencies run"
99 echo " dd-schroot-cmd -c ${SESSION_ID} apt-get update"
100 echo " followed by build-dep/install as appropriate in the host system."
101 echo "o If you started this session with schroot -b, please do not forget to run"
102 echo " schroot --end-session -c ${SESSION_ID}"
103 echo " when you no longer need this environment."