2015-10-24 14:38:40 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
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:
|
2015-11-24 11:22:54 +01:00
|
|
|
mvn -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:
|
|
|
|
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)
|
|
|
|
|
|
|
|
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)
|
2015-10-24 14:38:40 +02:00
|
|
|
|
2016-03-30 16:05:45 +02:00
|
|
|
override_dh_installinit:
|
2016-04-30 09:47:09 +02:00
|
|
|
dh_installinit --no-start @@DH_INSTALLINIT@@
|
2016-03-30 16:05:45 +02:00
|
|
|
|
2015-10-24 14:38:40 +02:00
|
|
|
%:
|
|
|
|
dh $@
|