f6710465ef
Helps in top, pgrep and friends. Unfortunately the only reasonable way to do it is to create a symlink to /usr/bin/java and run that. Message-Id: <1463580254-8369-1-git-send-email-avi@scylladb.com>
33 lines
784 B
Makefile
Executable File
33 lines
784 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
DOC = $(CURDIR)/debian/scylla-jmx/usr/share/doc/scylla-jmx
|
|
DEST = $(CURDIR)/debian/scylla-jmx/usr/lib/scylla/jmx
|
|
M2_REPO= $(CURDIR)/m2
|
|
|
|
override_dh_auto_build:
|
|
mvn -Dmaven.repo.local=$(M2_REPO) install
|
|
|
|
override_dh_auto_clean:
|
|
rm -rf target m2
|
|
|
|
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)
|
|
cp $(CURDIR)/scripts/scylla-jmx $(DEST)
|
|
cp $(CURDIR)/target/scylla-jmx-1.0.jar $(DEST)
|
|
mkdir $(DEST)/symlinks
|
|
ln -sf /usr/bin/java $(DEST)/symlinks/scylla-jmx
|
|
|
|
override_dh_installinit:
|
|
dh_installinit --no-start @@DH_INSTALLINIT@@
|
|
|
|
%:
|
|
dh $@
|