diff options
author | Damian Minkov <damencho@jitsi.org> | 2013-01-17 12:17:33 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2013-01-17 12:17:33 +0000 |
commit | 39499b0c550045ce917df413be900e0b1d62f852 (patch) | |
tree | 9a7d1879f68219e4ad6c44ef780266cdcab69fdf /resources/install/debian/jitsi.sh.tmpl | |
parent | 5cd26f3ec91cee3d0c9bf41082c6d6b932407542 (diff) | |
download | jitsi-39499b0c550045ce917df413be900e0b1d62f852.zip jitsi-39499b0c550045ce917df413be900e0b1d62f852.tar.gz jitsi-39499b0c550045ce917df413be900e0b1d62f852.tar.bz2 |
Updates debian build targets, adds deb-src to generate debian source package.
Diffstat (limited to 'resources/install/debian/jitsi.sh.tmpl')
-rw-r--r-- | resources/install/debian/jitsi.sh.tmpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/install/debian/jitsi.sh.tmpl b/resources/install/debian/jitsi.sh.tmpl new file mode 100644 index 0000000..ff6a092 --- /dev/null +++ b/resources/install/debian/jitsi.sh.tmpl @@ -0,0 +1,28 @@ +#!/bin/bash + +# Get architecture +ARCH=`uname -m | sed -e s/x86_64/64/ -e s/i.86/32/` + +# Additionnal JVM arguments +CLIENTARGS="" + +if [ $ARCH -eq 32 ] +then + CLIENTARGS="-client -Xmx256m" +fi + +javabin=`which java` + +SCDIR=/usr/lib/_PACKAGE_NAME_ +LIBPATH=$SCDIR/lib +CLASSPATH=/usr/share/java/jdic.jar:/usr/share/java/org.apache.felix.framework.jar:/usr/share/java/org.apache.felix.main.jar:$LIBPATH/bcprovider.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar/launchutils.jar +FELIX_CONFIG=$LIBPATH/felix.client.run.properties +LOG_CONFIG=$LIBPATH/logging.properties +COMMAND="$javabin $CLIENTARGS -classpath $CLASSPATH -Djna.library.path=/usr/lib/jni -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG net.java.sip.communicator.launcher.SIPCommunicator" + +# set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's) +export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/lib/jni" + +cd $SCDIR + +exec $COMMAND $* |