2015-10-24 14:38:40 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2018-08-28 03:04:44 +02:00
|
|
|
DOC = $(CURDIR)/debian/{{product}}-jmx/usr/share/doc/{{product}}-jmx
|
|
|
|
DEST = $(CURDIR)/debian/{{product}}-jmx/usr/lib/scylla/jmx
|
2015-11-24 11:22:54 +01:00
|
|
|
M2_REPO= $(CURDIR)/m2
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_build:
|
2016-06-01 10:35:58 +02:00
|
|
|
mvn -B -Dmaven.repo.local=$(M2_REPO) install
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
2015-11-24 11:22:54 +01:00
|
|
|
rm -rf target m2
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
2018-08-28 03:04:44 +02:00
|
|
|
mkdir -p $(CURDIR)/debian/{{product}}-jmx/etc/default/ && \
|
2015-10-24 14:38:40 +02:00
|
|
|
cp $(CURDIR)/dist/common/sysconfig/scylla-jmx \
|
2018-08-28 03:04:44 +02:00
|
|
|
$(CURDIR)/debian/{{product}}-jmx/etc/default/
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
mkdir -p $(DOC) && \
|
|
|
|
cp $(CURDIR)/*.md $(DOC)
|
|
|
|
cp $(CURDIR)/NOTICE $(DOC)
|
|
|
|
|
|
|
|
mkdir -p $(DEST)
|
2015-12-01 15:27:22 +01:00
|
|
|
cp $(CURDIR)/scripts/scylla-jmx $(DEST)
|
2015-12-17 08:19:58 +01:00
|
|
|
cp $(CURDIR)/target/scylla-jmx-1.0.jar $(DEST)
|
2016-05-18 16:04:14 +02:00
|
|
|
mkdir $(DEST)/symlinks
|
|
|
|
ln -sf /usr/bin/java $(DEST)/symlinks/scylla-jmx
|
2015-10-24 14:38:40 +02:00
|
|
|
|
2016-03-30 16:05:45 +02:00
|
|
|
override_dh_installinit:
|
2018-06-06 20:31:13 +02:00
|
|
|
{{#trusty}}
|
2018-08-28 03:04:44 +02:00
|
|
|
{{#scylla}}
|
2018-06-06 20:31:13 +02:00
|
|
|
dh_installinit --no-start --upstart-only
|
2018-08-28 03:04:44 +02:00
|
|
|
{{/scylla}}
|
|
|
|
{{^scylla}}
|
|
|
|
dh_installinit --no-start --name scylla-jmx --upstart-only
|
|
|
|
{{/scylla}}
|
2018-06-06 20:31:13 +02:00
|
|
|
{{/trusty}}
|
|
|
|
{{^trusty}}
|
2018-08-28 03:04:44 +02:00
|
|
|
{{#scylla}}
|
2018-06-06 20:31:13 +02:00
|
|
|
dh_installinit --no-start
|
2018-08-28 03:04:44 +02:00
|
|
|
{{/scylla}}
|
|
|
|
{{^scylla}}
|
|
|
|
dh_installinit --no-start --name scylla-jmx
|
|
|
|
{{/scylla}}
|
2018-06-06 20:31:13 +02:00
|
|
|
{{/trusty}}
|
2016-03-30 16:05:45 +02:00
|
|
|
|
2015-10-24 14:38:40 +02:00
|
|
|
%:
|
|
|
|
dh $@
|