summaryrefslogtreecommitdiff
path: root/home/.pbuilderrc
blob: f82191a8c47b42b9f546fb43b027ae8922d1394e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
DIST=${DIST-debian}
CODENAME=${CODENAME-sid}
ARCH=${ARCH-amd64}

if [ "x$ARCH" = "xi386" ]; then
	DEBBUILDOPTS="-B"
fi

if [ -n "${DIST}" ] && [ -n "${CODENAME}" ] && [ -n "${ARCH}" ]; then
        if [ "x${DIST}" = "xubuntu" ]; then 
                MIRRORSITE="http://de.archive.ubuntu.com/ubuntu"
        else
                MIRRORSITE="http://ftp.de.debian.org/debian"
		OTHERMIRROR="deb http://code.x2go.org/debian $CODENAME main"
        fi
        BASETGZ="`dirname $BASETGZ`/base-$DIST-$CODENAME-$ARCH.tgz"
        DISTRIBUTION="$CODENAME"
        BUILDRESULT="/var/cache/pbuilder/$DIST-$CODENAME-$ARCH/result/"
        APTCACHE="/var/cache/pbuilder/$DIST-$CODENAME-$ARCH/aptcache/"
fi

export OTHERMIRROR