9147faed36
We want to allocate pbuilder chroot image and build directories for each scylla repository to make sure build environment is always clean. So append 'scylla-jmx' prefix for them. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1497902645-29487-2-git-send-email-syuu@scylladb.com>
25 lines
947 B
Plaintext
25 lines
947 B
Plaintext
USENETWORK=yes
|
|
BUILD_HOME=/tmp
|
|
BASETGZ="/var/cache/pbuilder/scylla-jmx-$DIST.tgz"
|
|
DISTRIBUTION="$DIST"
|
|
BUILDRESULT="/var/cache/pbuilder/scylla-jmx-$DIST/result/"
|
|
APTCACHE="/var/cache/pbuilder/scylla-jmx-$DIST/aptcache/"
|
|
ALLOWUNTRUSTED=yes
|
|
|
|
if [ "$DIST" = "trusty" ] || [ "$DIST" = "xenial" ]; then
|
|
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
|
|
elif [ "$DIST" = "jessie" ]; then
|
|
MIRRORSITE="http://ftp.us.debian.org/debian/"
|
|
COMPONENTS="main contrib non-free"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
OTHERMIRROR="deb http://httpredir.debian.org/debian jessie-backports main"
|
|
else
|
|
echo "Unknown distribution: $DIST"
|
|
exit 1
|
|
fi
|