2017-06-15 12:02:30 +02:00
|
|
|
USENETWORK=yes
|
|
|
|
BUILD_HOME=/tmp
|
2017-06-19 22:04:05 +02:00
|
|
|
BASETGZ="/var/cache/pbuilder/scylla-jmx-$DIST.tgz"
|
2017-06-15 12:02:30 +02:00
|
|
|
DISTRIBUTION="$DIST"
|
2017-06-19 22:04:05 +02:00
|
|
|
BUILDRESULT="/var/cache/pbuilder/scylla-jmx-$DIST/result/"
|
|
|
|
APTCACHE="/var/cache/pbuilder/scylla-jmx-$DIST/aptcache/"
|
2017-06-15 12:02:30 +02:00
|
|
|
ALLOWUNTRUSTED=yes
|
|
|
|
|
2017-07-19 23:54:35 +02:00
|
|
|
if [ "$DIST" = "trusty" ] || [ "$DIST" = "xenial" ] || [ "$DIST" = "yakkety" ] || [ "$DIST" = "zesty" ] || [ "$DIST" = "artful" ]; then
|
2017-06-15 12:02:30 +02:00
|
|
|
MIRRORSITE="http://archive.ubuntu.com/ubuntu/"
|
|
|
|
COMPONENTS="main restricted universe multiverse"
|
|
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"
|
|
|
|
if [ "$DIST" = "trusty" ]; then
|
|
|
|
OTHERMIRROR="deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main"
|
|
|
|
fi
|
2017-07-19 23:54:35 +02:00
|
|
|
elif [ "$DIST" = "jessie" ] || [ "$DIST" = "stretch" ] || [ "$DIST" = "buster" ] || [ "$DIST" = "sid" ]; then
|
|
|
|
MIRRORSITE="http://deb.debian.org/debian/"
|
2017-06-15 12:02:30 +02:00
|
|
|
COMPONENTS="main contrib non-free"
|
|
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
2017-07-19 23:54:35 +02:00
|
|
|
if [ "$DIST" = "jessie" ]; then
|
|
|
|
OTHERMIRROR="deb http://httpredir.debian.org/debian jessie-backports main"
|
|
|
|
fi
|
2017-06-15 12:02:30 +02:00
|
|
|
else
|
|
|
|
echo "Unknown distribution: $DIST"
|
|
|
|
exit 1
|
|
|
|
fi
|