8d404d8e9f
Enable pbuilder for Ubuntu/Debian to prevent build enviroment dependent issues. Also support cross building by pbuilder. (cross-building from Fedora 25 and Ubuntu 16.04 are tested) Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20170615100230.18239-1-syuu@scylladb.com>
25 lines
919 B
Plaintext
25 lines
919 B
Plaintext
USENETWORK=yes
|
|
BUILD_HOME=/tmp
|
|
BASETGZ="/var/cache/pbuilder/$DIST-base.tgz"
|
|
DISTRIBUTION="$DIST"
|
|
BUILDRESULT="/var/cache/pbuilder/$DIST/result/"
|
|
APTCACHE="/var/cache/pbuilder/$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
|