aboutsummaryrefslogtreecommitdiff
path: root/files/etc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-11-12 13:07:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-11-12 13:07:16 -0200
commitfbd8b2583ddd020912e081722fae2722412c47fb (patch)
tree4d844ad091a5d5d751502344f632d73b37edffef /files/etc
parent921d387f2b406eec4da42431a9f57d5a0238116d (diff)
downloadpuppet-nodo-fbd8b2583ddd020912e081722fae2722412c47fb.tar.gz
puppet-nodo-fbd8b2583ddd020912e081722fae2722412c47fb.tar.bz2
Back to a clean pbuilder config
Diffstat (limited to 'files/etc')
-rw-r--r--files/etc/pbuilderrc89
1 files changed, 7 insertions, 82 deletions
diff --git a/files/etc/pbuilderrc b/files/etc/pbuilderrc
index 273c1ff..f2a2399 100644
--- a/files/etc/pbuilderrc
+++ b/files/etc/pbuilderrc
@@ -1,82 +1,7 @@
-# See https://wiki.ubuntu.com/PbuilderHowto#Manually_doing_what_pbuilder-dist_can_do
-# Codenames for Debian suites according to their alias. Update these when
-# needed.
-UNSTABLE_CODENAME="sid"
-TESTING_CODENAME="jessie"
-STABLE_CODENAME="wheezy"
-STABLE_BACKPORTS_SUITE="$STABLE_CODENAME-backports"
-
-# List of Debian suites.
-DEBIAN_SUITES=($UNSTABLE_CODENAME $TESTING_CODENAME $STABLE_CODENAME
- "unstable" "testing" "stable")
-
-# List of Ubuntu suites. Update these when needed.
-UBUNTU_SUITES=("natty" "maverick" "lucid" "karmic" "jaunty" "hardy")
-
-# Mirrors to use. Update these to your preferred mirror.
-DEBIAN_MIRROR="ftp.us.debian.org"
-UBUNTU_MIRROR="ftp.ubuntu.com"
-
-# Optionally use the changelog of a package to determine the suite to use if
-# none set.
-if [ -z "${DIST}" ] && [ -r "debian/changelog" ]; then
- DIST=$(dpkg-parsechangelog | awk '/^Distribution: / {print $2}')
- DIST="${DIST%%-*}"
- # Use the unstable suite for certain suite values.
- if $(echo "experimental UNRELEASED" | grep -q $DIST); then
- DIST="$UNSTABLE_CODENAME"
- fi
-fi
-
-# Optionally set a default distribution if none is used. Note that you can set
-# your own default (i.e. ${DIST:="unstable"}).
-: ${DIST:="$(lsb_release --short --codename)"}
-
-# Optionally change Debian release states in $DIST to their names.
-case "$DIST" in
- unstable)
- DIST="$UNSTABLE_CODENAME"
- ;;
- testing)
- DIST="$TESTING_CODENAME"
- ;;
- stable)
- DIST="$STABLE_CODENAME"
- ;;
-esac
-
-# Optionally set the architecture to the host architecture if none set. Note
-# that you can set your own default (i.e. ${ARCH:="i386"}).
-: ${ARCH:="$(dpkg --print-architecture)"}
-
-NAME="$DIST"
-if [ -n "${ARCH}" ]; then
- NAME="$NAME-$ARCH"
- DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
-fi
-BASETGZ="/var/cache/pbuilder/base-$NAME.tgz"
-# Optionally, set BASEPATH (and not BASETGZ) if using cowbuilder
-BASEPATH="/var/cache/pbuilder/base-$NAME.cow/"
-DISTRIBUTION="$DIST"
-BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
-APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
-BUILDPLACE="/var/cache/pbuilder/build/"
-
-if $(echo ${DEBIAN_SUITES[@]} | grep -q $DIST); then
- # Debian configuration
- MIRRORSITE="http://$DEBIAN_MIRROR/debian/"
- COMPONENTS="main contrib non-free"
- DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg")
-
-elif $(echo ${UBUNTU_SUITES[@]} | grep -q $DIST); then
- # Ubuntu configuration
- MIRRORSITE="http://$UBUNTU_MIRROR/ubuntu/"
- COMPONENTS="main restricted universe multiverse"
- DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg")
-else
- echo "Unknown distribution: $DIST"
- exit 1
-fi
-
-# Custom hooks
-HOOKDIR="$HOME/.config/pbuilder/hooks/"
+# this is your configuration file for pbuilder.
+# the file in /usr/share/pbuilder/pbuilderrc is the default template.
+# /etc/pbuilderrc is the one meant for overwriting defaults in
+# the default template
+#
+# read pbuilderrc.5 document for notes on specific options.
+MIRRORSITE=http://http.debian.net/debian/