mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 06:23:03 +00:00
Add support Debian new stable release. Also including following changes: - update libthrift due to unable to compile on Debian 9 - drop dist/debian/supported_release since distribution check code moved to pbuilderrc - add libssl-dev for build-depends - add sudo for pbuilder extra packages (Debian doesn't have it by default install) Signed-off-by: syuu <syuu@dokukino.com> Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1498047515-19972-1-git-send-email-syuu@scylladb.com>
49 lines
2.2 KiB
Plaintext
49 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" ]; 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
|
|
elif [ "$DIST" = "xenial" ]; then
|
|
OTHERMIRROR="deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse"
|
|
if [ $REBUILD -eq 0 ]; then
|
|
OTHERMIRROR="$OTHERMIRROR|deb [arch=amd64] http://downloads.scylladb.com/deb/3rdparty/xenial xenial scylladb/multiverse"
|
|
fi
|
|
else
|
|
echo "Unknown distribution: $DIST"
|
|
exit 1
|
|
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" ]; 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/stretch stretch scylladb/non-free"
|
|
fi
|
|
else
|
|
echo "Unknown distribution: $DIST"
|
|
exit 1
|
|
fi
|