dist: add debian/ directory to build .dep package for Ubuntu

This commit is contained in:
Takuya ASADA 2015-10-24 21:38:40 +09:00
parent 28efc831b1
commit 2a7e668a44
6 changed files with 80 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
scylla-jmx (0.10-1) unstable; urgency=medium
* Initial release.
-- Takuya ASADA <syuu@scylladb.com> Mon, 24 Aug 2015 09:22:55 +0000

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: scylla-jmx
Maintainer: Takuya ASADA <syuu@scylladb.com>
Homepage: http://scylladb.com
Section: database
Priority: optional
Standards-Version: 3.9.2
Build-Depends: debhelper (>= 9), maven, openjdk-7-jdk
Package: scylla-jmx
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, openjdk-7-jre-headless, scylla-server
Description: Scylla JMX server binaries
Scylla is a highly scalable, eventually consistent, distributed, partitioned row DB.

12
debian/copyright vendored Normal file
View File

@ -0,0 +1,12 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Scylla DB
Upstream-Contact: http://www.scylladb.com/
Source: https://github.com/scylladb/scylla-jmx
Files: *
Copyright: Copyright (C) 2015 ScyllaDB
License: AGPL-3.0
Files: debian/*
Copyright: Copyright (C) 2015 ScyllaDB
License: AGPL-3.0

27
debian/rules vendored Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/make -f
DOC = $(CURDIR)/debian/scylla-jmx/usr/share/doc/scylla-jmx
DEST = $(CURDIR)/debian/scylla-jmx/usr/lib/scylla/jmx
override_dh_auto_build:
mvn install
override_dh_auto_clean:
rm -rf target
override_dh_auto_install:
mkdir -p $(CURDIR)/debian/scylla-jmx/etc/default/ && \
cp $(CURDIR)/dist/common/sysconfig/scylla-jmx \
$(CURDIR)/debian/scylla-jmx/etc/default/
mkdir -p $(DOC) && \
cp $(CURDIR)/*.md $(DOC)
cp $(CURDIR)/NOTICE $(DOC)
cp $(CURDIR)/LICENSE.AGPL $(DOC)
mkdir -p $(DEST)
cp $(CURDIR)/dist/common/scripts/* $(DEST)
cp $(CURDIR)/target/urchin-mbean-1.0.jar $(DEST)
%:
dh $@

22
debian/scylla-jmx.upstart vendored Normal file
View File

@ -0,0 +1,22 @@
# scylla-jmx - ScyllaDB
#
# ScyllaDB
description "ScyllaDB jmx"
start on starting scylla-server
stop on runlevel [!2345]
respawn
respawn limit 10 5
umask 022
expect fork
console log
script
. /etc/default/scylla-jmx
export JMX_LOCAL_PORT
/usr/lib/scylla/jmx/jmx_run
end script