diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..63de52d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +scylla-jmx (0.10-1) unstable; urgency=medium + + * Initial release. + + -- Takuya ASADA Mon, 24 Aug 2015 09:22:55 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b375c49 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: scylla-jmx +Maintainer: Takuya ASADA +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..87c6b65 --- /dev/null +++ b/debian/copyright @@ -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 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ca20e81 --- /dev/null +++ b/debian/rules @@ -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 $@ diff --git a/debian/scylla-jmx.upstart b/debian/scylla-jmx.upstart new file mode 100644 index 0000000..be227e9 --- /dev/null +++ b/debian/scylla-jmx.upstart @@ -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