# The distribution should be correct in your changelog file. # Uncomment this line to use the one listed there: # https://wiki.ubuntu.com/PbuilderHowto #DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'` : ${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/" BUILDRESULT="$NAME" APTCACHE="/var/cache/pbuilder/$NAME/aptcache/" # http://releases.ubuntu.com/releases/ case "$DIST" in karmic|intrepid|hardy|gutsy|jaunty) # ubuntu specific # MIRRORSITE="http://ftp.df.lth.se/ubuntu/" MIRRORSITE="http://mirrors.telianet.dk/ubuntu/" # MIRRORSITE="http://mirrors.kernel.org/ubuntu/" COMPONENTS="main restricted universe multiverse" OTHERMIRROR="deb http://ftp.indexdata.dk/ubuntu $DIST main" ;; squeeze|lenny|etch) # debian specific MIRRORSITE="http://ftp.se.debian.org/debian/" COMPONENTS="main contrib non-free" OTHERMIRROR="deb http://ftp.indexdata.dk/debian $DIST main" ;; *) echo "Unknown distribution: $DIST" exit 1 ;; esac