packages: jitsi/jitsi.sh - startup script, based on .run installer produced...
glen
glen at pld-linux.org
Wed May 11 22:04:14 CEST 2011
Author: glen Date: Wed May 11 20:04:14 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- startup script, based on .run installer produced one
---- Files affected:
packages/jitsi:
jitsi.sh (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/jitsi/jitsi.sh
diff -u packages/jitsi/jitsi.sh:1.1 packages/jitsi/jitsi.sh:1.2
--- packages/jitsi/jitsi.sh:1.1 Wed May 11 21:12:11 2011
+++ packages/jitsi/jitsi.sh Wed May 11 22:04:09 2011
@@ -1,5 +1,30 @@
#!/bin/sh
-exec java \
- -Dfelix.config.properties=file:/usr/share/java/jitsi/lib/felix.client.run.properties \
- -Djava.util.logging.config.file=/usr/share/java/jitsi/lib/logging.properties \
- org.apache.felix.main.Main
+set -e
+
+# set JAVA_HOME from jpackage-utils if available
+if [ ! -f /usr/share/java-utils/java-functions ]; then
+ echo >&2 "jpackage-utils not found."
+ exit 1
+fi
+. /usr/share/java-utils/java-functions
+
+LIBDIR=/usr/lib/jitsi
+APPDIR=/usr/share/jitsi
+MAIN_CLASS=net.java.sip.communicator.launcher.SIPCommunicator
+
+for jar in $APPDIR/lib/*.jar; do
+ CLASSPATH=$CLASSPATH:$jar
+done
+for jar in sc-launcher.jar util.jar; do
+ CLASSPATH=$CLASSPATH:$APPDIR/sc-bundles/$jar
+done
+
+# extra JVM options
+OPTIONS="\
+ -Djna.library.path=$LIBDIR \
+ -Djava.library.path=$LIBDIR \
+ -Dfelix.config.properties=file:$APPDIR/lib/felix.client.run.properties \
+ -Djava.util.logging.config.file=$APPDIR/lib/logging.properties \
+"
+
+run "$@"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jitsi/jitsi.sh?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list