summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/jvisu.in19
-rw-r--r--rules/jvisu.make10
2 files changed, 28 insertions, 1 deletions
diff --git a/rules/jvisu.in b/rules/jvisu.in
index 8c6cf1f9b..5c037e039 100644
--- a/rules/jvisu.in
+++ b/rules/jvisu.in
@@ -2,3 +2,22 @@ menuconfig JVISU
bool
prompt "JVisu "
+config JVISU_APPLET
+ bool
+ depends on JVISU
+ default Y if JVISU
+ prompt "Install JVisu Applet"
+ help
+ The JVisu applet is a generic visualisation tool for process visualisation.
+ See http://www.jvisu.com for more details.
+
+config JVISU_APPLET_PATH
+ string
+ prompt "JVisu Applet Path"
+ default "/var/www/jvisu/"
+ depends on JVISU_APPLET
+ help
+ The JVisu applet jvisu.jar is installed in this path on the target machine.
+ Default is "/var/www/jvisu/", so the applet is /var/www/jvisu/jvisu.jar.
+
+
diff --git a/rules/jvisu.make b/rules/jvisu.make
index fe2a7ee6f..5be8540bf 100644
--- a/rules/jvisu.make
+++ b/rules/jvisu.make
@@ -55,6 +55,11 @@ $(STATEDIR)/jvisu.extract: $(jvisu_extract_deps)
@$(call clean, $(JVISU_DIR))
@$(call extract, $(JVISU_SOURCE))
@$(call patchin, $(JVISU))
+
+ # FIXME: we cannot currently overwrite the JAVAPATH on the command line,
+ # so we tweak it here in a way that it works at least with Debian
+ perl -i -p -e "s,^JAVAPATH=.*,JAVAPATH=/usr,g" $(JVISU_DIR)/build.properties
+
touch $@
# ----------------------------------------------------------------------------
@@ -125,7 +130,10 @@ $(STATEDIR)/jvisu.targetinstall: $(jvisu_targetinstall_deps)
@$(call install_fixup,DEPENDS,)
@$(call install_fixup,DESCRIPTION,missing)
- @$(call install_copy, 0, 0, 0755, $(COREUTILS_DIR)/foobar, /dev/null)
+ifdef PTXCONF_JVISU_APPLET
+ # User: www; Group: www
+ @$(call install_copy, 12, 102, 0644, $(JVISU_DIR)/jar/jvisu.jar, $(PTXCONF_JVISU_APPLET_PATH)/jvisu.jar, n)
+endif
@$(call install_finish)