summaryrefslogtreecommitdiff
path: root/pbuilderrc
blob: 8a18f5cfc1977b5bd72de47e96113e96b0b45618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# vim: set filetype=sh :
COMPONENTS="main contrib non-free"
: ${DIST:=sid}
#: ${DIST:=$(lsb_release --short --codename)}
: ${ARCH:=$(dpkg --print-architecture)}
NAME="$DIST-$ARCH"
DISTRIBUTION="$DIST"
DEBOOTSTRAPOPTS=("--arch" "$ARCH" "${DEBOOTSTRAPOPTS[@]}")
BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"

case "$DIST" in
	lenny|etch|squeeze|wheezy|stable|testing|sid|unstable|experimental) # debian specific
		MIRRORSITE="http://ftp.debian.org/debian/"
		COMPONENTS="main contrib non-free"
		OTHERMIRROR="deb http://localhost/debian/ $DIST main"
	;;
	intrepid|hardy|gutsy) # ubuntu specific
		MIRRORSITE="http://archive.ubuntu.com/ubuntu/"
		COMPONENTS="main restricted universe multiverse"
		EXTRAPACKAGES="ubuntu-archive-keyring"
	;;
	*)
		echo "Unknown distribution: $DIST"
		exit 1
	;;
esac