mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
Currently our build script only supports Ubuntu 14.04/16.04 and Debian 8, this change extends support to Ubuntu non-LTS versions / Debian non-stable versions. Note that this is unofficial support, users should build the package for these distributions theirselves. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1498491473-28691-1-git-send-email-syuu@scylladb.com>
46 lines
2.2 KiB
Plaintext
46 lines
2.2 KiB
Plaintext
USENETWORK=yes
|
|
BUILD_HOME=/tmp
|
|
BASETGZ="/var/cache/pbuilder/scylla-server-$DIST.tgz"
|
|
DISTRIBUTION="$DIST"
|
|
BUILDRESULT="/var/cache/pbuilder/scylla-server-$DIST/result/"
|
|
APTCACHE="/var/cache/pbuilder/scylla-server-$DIST/aptcache/"
|
|
ALLOWUNTRUSTED=yes
|
|
EXTRAPACKAGES="sudo"
|
|
if [ $REBUILD -eq 1 ]; then
|
|
BINDMOUNTS="/var/tmp/pbuilder"
|
|
fi
|
|
|
|
if [ "$DIST" = "trusty" ] || [ "$DIST" = "xenial" ] || [ "$DIST" = "yakkety" ] || [ "$DIST" = "zesty" ] || [ "$DIST" = "artful" ]; 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://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse|deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main|deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main"
|
|
if [ $REBUILD -eq 0 ]; then
|
|
OTHERMIRROR="$OTHERMIRROR|deb [arch=amd64] http://downloads.scylladb.com/deb/3rdparty/trusty trusty scylladb/multiverse"
|
|
fi
|
|
else
|
|
OTHERMIRROR="deb http://archive.ubuntu.com/ubuntu/ $DIST-updates main restricted universe multiverse"
|
|
if [ $REBUILD -eq 0 ]; then
|
|
OTHERMIRROR="$OTHERMIRROR|deb [arch=amd64] http://downloads.scylladb.com/deb/3rdparty/$DIST $DIST scylladb/multiverse"
|
|
fi
|
|
fi
|
|
elif [ "$DIST" = "jessie" ]; then
|
|
MIRRORSITE="http://deb.debian.org/debian/"
|
|
COMPONENTS="main contrib non-free"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
if [ $REBUILD -eq 0 ]; then
|
|
OTHERMIRROR="deb [arch=amd64] http://downloads.scylladb.com/deb/3rdparty/jessie jessie scylladb/non-free"
|
|
fi
|
|
elif [ "$DIST" = "stretch" ] || [ "$DIST" = "buster" ] || [ "$DIST" = "sid" ]; then
|
|
MIRRORSITE="http://deb.debian.org/debian/"
|
|
COMPONENTS="main contrib non-free"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
if [ $REBUILD -eq 0 ]; then
|
|
OTHERMIRROR="deb [arch=amd64] http://downloads.scylladb.com/deb/3rdparty/$DIST $DIST scylladb/non-free"
|
|
fi
|
|
else
|
|
echo "Unknown distribution: $DIST"
|
|
exit 1
|
|
fi
|