mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
To automatically rename packages on enterprise release, added package name prefix as a variable on build_deb.sh. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20180828010445.11920-1-syuu@scylladb.com>
28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
USENETWORK=yes
|
|
BUILD_HOME=/tmp
|
|
BASETGZ="/var/cache/pbuilder/$PRODUCT-server-$DIST.tgz"
|
|
DISTRIBUTION="$DIST"
|
|
BUILDRESULT="/var/cache/pbuilder/$PRODUCT-server-$DIST/result/"
|
|
APTCACHE="/var/cache/pbuilder/$PRODUCT-server-$DIST/aptcache/"
|
|
EXTRAPACKAGES="sudo"
|
|
|
|
if [ "$DIST" = "trusty" ] || [ "$DIST" = "xenial" ] || [ "$DIST" = "yakkety" ] || [ "$DIST" = "zesty" ] || [ "$DIST" = "artful" ] || [ "$DIST" = "bionic" ]; then
|
|
MIRRORSITE="http://archive.ubuntu.com/ubuntu/"
|
|
COMPONENTS="main restricted universe multiverse"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg"
|
|
OTHERMIRROR="deb http://archive.ubuntu.com/ubuntu/ $DIST-updates main restricted universe multiverse"
|
|
elif [ "$DIST" = "jessie" ]; then
|
|
MIRRORSITE="http://deb.debian.org/debian/"
|
|
COMPONENTS="main contrib non-free"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
OTHERMIRROR="deb [arch=amd64] http://download.opensuse.org/repositories/home:/scylladb:/scylla-3rdparty-jessie/Debian_8.0/ ./"
|
|
elif [ "$DIST" = "stretch" ]; then
|
|
MIRRORSITE="http://deb.debian.org/debian/"
|
|
COMPONENTS="main contrib non-free"
|
|
DEBOOTSTRAPOPTS="--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
|
|
OTHERMIRROR="deb [arch=amd64] http://download.opensuse.org/repositories/home:/scylladb:/scylla-3rdparty-stretch/Debian_9.0/ ./"
|
|
else
|
|
echo "Unknown distribution: $DIST"
|
|
exit 1
|
|
fi
|