2015-10-24 14:38:40 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2018-03-27 21:17:43 +02:00
|
|
|
DOC = $(CURDIR)/debian/scylla-jmx/usr/share/doc/scylla-jmx
|
|
|
|
DEST = $(CURDIR)/debian/scylla-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-03-27 21:17:43 +02:00
|
|
|
mkdir -p $(CURDIR)/debian/scylla-jmx/etc/default/ && \
|
2015-10-24 14:38:40 +02:00
|
|
|
cp $(CURDIR)/dist/common/sysconfig/scylla-jmx \
|
2018-03-27 21:17:43 +02:00
|
|
|
$(CURDIR)/debian/scylla-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}}
|
|
|
|
dh_installinit --no-start --upstart-only
|
|
|
|
{{/trusty}}
|
|
|
|
{{^trusty}}
|
|
|
|
dh_installinit --no-start
|
|
|
|
{{/trusty}}
|
2016-03-30 16:05:45 +02:00
|
|
|
|
2015-10-24 14:38:40 +02:00
|
|
|
%:
|
|
|
|
dh $@
|