2015-10-24 14:38:40 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2019-06-18 14:24:51 +02:00
|
|
|
DOC = $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/share/doc/{{product}}-jmx
|
|
|
|
DEST = $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/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:
|
|
|
|
|
|
|
|
override_dh_auto_clean:
|
|
|
|
|
|
|
|
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)
|
2018-10-24 04:45:11 +02:00
|
|
|
cp $(CURDIR)/scylla-jmx $(DEST)
|
|
|
|
cp $(CURDIR)/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
|
|
|
|
2019-06-18 14:24:51 +02:00
|
|
|
mkdir -p $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/scripts
|
|
|
|
# Create symlink for /usr/lib/scylla/jmx
|
|
|
|
ln -sf /opt/scylladb/jmx $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/scripts/
|
|
|
|
|
2016-03-30 16:05:45 +02:00
|
|
|
override_dh_installinit:
|
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}}
|
2016-03-30 16:05:45 +02:00
|
|
|
|
2019-01-25 23:33:51 +01:00
|
|
|
override_dh_strip_nondeterminism:
|
|
|
|
|
2015-10-24 14:38:40 +02:00
|
|
|
%:
|
|
|
|
dh $@
|