f73da49f62
Since scylla-jmx uses /usr/lib/scylla/jmx for program directory, we also need to move them under /opt/scylladb. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20190618122451.27721-1-syuu@scylladb.com>
42 lines
1.0 KiB
Plaintext
Executable File
42 lines
1.0 KiB
Plaintext
Executable File
#!/usr/bin/make -f
|
|
|
|
DOC = $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/share/doc/{{product}}-jmx
|
|
DEST = $(CURDIR)/debian/{{product}}-jmx/opt/scylladb/jmx
|
|
M2_REPO= $(CURDIR)/m2
|
|
|
|
override_dh_auto_build:
|
|
|
|
override_dh_auto_clean:
|
|
|
|
override_dh_auto_install:
|
|
mkdir -p $(CURDIR)/debian/{{product}}-jmx/etc/default/ && \
|
|
cp $(CURDIR)/dist/common/sysconfig/scylla-jmx \
|
|
$(CURDIR)/debian/{{product}}-jmx/etc/default/
|
|
|
|
mkdir -p $(DOC) && \
|
|
cp $(CURDIR)/*.md $(DOC)
|
|
cp $(CURDIR)/NOTICE $(DOC)
|
|
|
|
mkdir -p $(DEST)
|
|
cp $(CURDIR)/scylla-jmx $(DEST)
|
|
cp $(CURDIR)/scylla-jmx-1.0.jar $(DEST)
|
|
mkdir $(DEST)/symlinks
|
|
ln -sf /usr/bin/java $(DEST)/symlinks/scylla-jmx
|
|
|
|
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/
|
|
|
|
override_dh_installinit:
|
|
{{#scylla}}
|
|
dh_installinit --no-start
|
|
{{/scylla}}
|
|
{{^scylla}}
|
|
dh_installinit --no-start --name scylla-jmx
|
|
{{/scylla}}
|
|
|
|
override_dh_strip_nondeterminism:
|
|
|
|
%:
|
|
dh $@
|