dist/ubuntu: Fix package build error on Ubuntu 14.04/Debian 8
Since we moved to Java 8, we need to provide additional repository for distributions which doesn't have Java 8 on default repository. Fixes #37 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <1483377878-17987-1-git-send-email-syuu@scylladb.com>
This commit is contained in:
parent
cc8f5e275b
commit
ee0e460b26
20
dist/ubuntu/build_deb.sh
vendored
20
dist/ubuntu/build_deb.sh
vendored
@ -12,20 +12,24 @@ sudo apt-get -y update
|
|||||||
if [ ! -f /usr/bin/git ]; then
|
if [ ! -f /usr/bin/git ]; then
|
||||||
sudo apt-get -y install git
|
sudo apt-get -y install git
|
||||||
fi
|
fi
|
||||||
if [ ! -f /usr/bin/mk-build-deps ]; then
|
|
||||||
sudo apt-get -y install devscripts
|
|
||||||
fi
|
|
||||||
if [ ! -f /usr/bin/equivs-build ]; then
|
|
||||||
sudo apt-get -y install equivs
|
|
||||||
fi
|
|
||||||
if [ ! -f /usr/bin/lsb_release ]; then
|
if [ ! -f /usr/bin/lsb_release ]; then
|
||||||
sudo apt-get -y install lsb-release
|
sudo apt-get -y install lsb-release
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DISTRIBUTION=`lsb_release -i|awk '{print $3}'`
|
DISTRIBUTION=`lsb_release -i|awk '{print $3}'`
|
||||||
RELEASE=`lsb_release -r|awk '{print $2}'`
|
RELEASE=`lsb_release -r|awk '{print $2}'`
|
||||||
CODENAME=`lsb_release -c|awk '{print $2}'`
|
CODENAME=`lsb_release -c|awk '{print $2}'`
|
||||||
|
|
||||||
|
if [ "$RELEASE" = "14.04" ]; then
|
||||||
|
sudo apt-get -y install software-properties-common
|
||||||
|
sudo add-apt-repository -y ppa:openjdk-r/ppa
|
||||||
|
sudo apt-get -y update
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$CODENAME" = "jessie" ]; then
|
||||||
|
sudo sh -c 'echo deb "http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list'
|
||||||
|
sudo apt-get -y update
|
||||||
|
fi
|
||||||
|
|
||||||
VERSION=$(./SCYLLA-VERSION-GEN)
|
VERSION=$(./SCYLLA-VERSION-GEN)
|
||||||
SCYLLA_VERSION=$(cat build/SCYLLA-VERSION-FILE | sed 's/\.rc/~rc/')
|
SCYLLA_VERSION=$(cat build/SCYLLA-VERSION-FILE | sed 's/\.rc/~rc/')
|
||||||
SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)
|
SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)
|
||||||
@ -49,5 +53,5 @@ fi
|
|||||||
cp dist/common/systemd/scylla-jmx.service.in debian/scylla-jmx.service
|
cp dist/common/systemd/scylla-jmx.service.in debian/scylla-jmx.service
|
||||||
sed -i -e "s#@@SYSCONFDIR@@#/etc/default#g" debian/scylla-jmx.service
|
sed -i -e "s#@@SYSCONFDIR@@#/etc/default#g" debian/scylla-jmx.service
|
||||||
|
|
||||||
echo Y | sudo mk-build-deps -i -r
|
sudo apt-get install -y debhelper maven openjdk-8-jdk-headless devscripts
|
||||||
debuild -r fakeroot -us -uc
|
debuild -r fakeroot -us -uc
|
||||||
|
4
dist/ubuntu/debian/control
vendored
4
dist/ubuntu/debian/control
vendored
@ -4,11 +4,11 @@ Homepage: http://scylladb.com
|
|||||||
Section: database
|
Section: database
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
Build-Depends: debhelper (>= 9), maven, default-jdk | java7-jdk | java8-jdk
|
Build-Depends: debhelper (>= 9), maven, openjdk-8-jdk-headless
|
||||||
|
|
||||||
Package: scylla-jmx
|
Package: scylla-jmx
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre-headless | java-runtime-headless, scylla-server
|
Depends: ${shlibs:Depends}, ${misc:Depends}, openjdk-8-jre-headless | openjdk-8-jre | oracle-java8-set-default, scylla-server
|
||||||
Description: Scylla JMX server binaries
|
Description: Scylla JMX server binaries
|
||||||
Scylla is a highly scalable, eventually consistent, distributed,
|
Scylla is a highly scalable, eventually consistent, distributed,
|
||||||
partitioned row DB.
|
partitioned row DB.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user