6b843d960814959234d7b6e1c57fcf8d8a0dcd0b
[git-tools-moved-to-github.git] / id-deb-build / pbuilderrc
1 # The distribution should be correct in your changelog file.
2 # Uncomment this line to use the one listed there:
3 # https://wiki.ubuntu.com/PbuilderHowto
4 #DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'`
5
6 : ${DIST:=$(lsb_release --short --codename)}
7 : ${ARCH:=$(dpkg --print-architecture)}
8 NAME="$DIST-$ARCH"
9 DISTRIBUTION="$DIST"
10 # We avoid keyring in assignment below. bug 4122
11 DEBOOTSTRAPOPTS=("--arch" "$ARCH" --variant=buildd)
12 BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
13 #BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
14 BUILDRESULT="$NAME"
15 APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"
16 ALLOWUNTRUSTED=yes
17 CCACHEDIR=
18
19 # http://releases.ubuntu.com/releases/
20 case "$DIST" in
21     raring|quantal|precise|oneiric|natty|maverick|lucid|karmic) # ubuntu specific
22         # MIRRORSITE="http://ftp.df.lth.se/ubuntu/"
23         MIRRORSITE="http://mirrors.dotsrc.org/ubuntu/"
24         # MIRRORSITE="http://mirrors.kernel.org/ubuntu/"
25         COMPONENTS="main restricted universe multiverse"
26         OTHERMIRROR="deb http://ftp.indexdata.dk/ubuntu $DIST main"
27         ;;
28     jessie|wheezy|squeeze|lenny|etch) # debian specific
29         MIRRORSITE="http://ftp.se.debian.org/debian/"
30         COMPONENTS="main contrib non-free"
31         OTHERMIRROR="deb http://ftp.indexdata.dk/debian $DIST main"
32         ;;
33     *)
34         echo "Unknown distribution: $DIST"
35         exit 1
36         ;;
37 esac