svn commit: r3309 - trunk/resources/install/debian

mandre at dev.java.net mandre at dev.java.net
Tue Dec 11 07:34:19 CET 2007


Author: mandre
Date: 2007-12-11 06:34:17+0000
New Revision: 3309

Modified:
   trunk/resources/install/debian/changelog.tmpl
   trunk/resources/install/debian/control
   trunk/resources/install/debian/dirs
   trunk/resources/install/debian/rules
   trunk/resources/install/debian/sip-communicator.1
   trunk/resources/install/debian/sip-communicator.desktop
   trunk/resources/install/debian/sip-communicator.menu
   trunk/resources/install/debian/sip-communicator.sh.tmpl

Log:
Updated Debian package:
* Updated dependancies to put sun-jre as a first alternative where needed
* Updated application categories in sip-communicator.desktop file
* Put SC bundles and libraries in /usr/lib instead of /usr/share
* Added a verbose and help option to launch script and updated man page
  accordingly
* Remove subversion info files from native lib dir



Modified: trunk/resources/install/debian/changelog.tmpl
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/changelog.tmpl?view=diff&rev=3309&p1=trunk/resources/install/debian/changelog.tmpl&p2=trunk/resources/install/debian/changelog.tmpl&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/changelog.tmpl	(original)
+++ trunk/resources/install/debian/changelog.tmpl	2007-12-11 06:34:17+0000
@@ -4,6 +4,18 @@
 
  -- Martin Andre <mandre at dev.java.net>  _DATE_
 
+sip-communicator (1.0-alpha3-1) unstable; urgency=low
+
+  * Switching to alpha3 nightly builds
+  * Updated dependancies to put sun-jre as a first alternative where needed
+  * Updated application categories in sip-communicator.desktop file
+  * Put SC bundles and libraries in /usr/lib instead of /usr/share
+  * Added a verbose and help option to launch script and updated man page
+    accordingly
+  * Remove subversion info files from native lib dir
+
+ -- Martin Andre <mandre at dev.java.net>  Tue, 11 Dec 2007 15:27:06 +0900
+
 sip-communicator (1.0-alpha2-1) unstable; urgency=low
 
   * Switching to alpha2 nightly	builds

Modified: trunk/resources/install/debian/control
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/control?view=diff&rev=3309&p1=trunk/resources/install/debian/control&p2=trunk/resources/install/debian/control&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/control	(original)
+++ trunk/resources/install/debian/control	2007-12-11 06:34:17+0000
@@ -7,7 +7,7 @@
 
 Package: sip-communicator
 Architecture: i386
-Depends: java-virtual-machine, java2-runtime, libxalan2-java, alsa-oss
+Depends: sun-java6-jre | sun-java5-jre | java-virtual-machine, sun-java6-jre | sun-java5-jre | java2-runtime, libxalan2-java, alsa-oss
 Description: the Java VoIP and Instant Messaging client
  SIP Communicator is an application that allows you to do audio/video
  conversations over the Internet through the SIP protocol, as well as chat with

Modified: trunk/resources/install/debian/dirs
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/dirs?view=diff&rev=3309&p1=trunk/resources/install/debian/dirs&p2=trunk/resources/install/debian/dirs&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/dirs	(original)
+++ trunk/resources/install/debian/dirs	2007-12-11 06:34:17+0000
@@ -4,7 +4,7 @@
 usr/share/man/man1
 usr/share/menu
 usr/share/pixmaps
-usr/share/sip-communicator
-usr/share/sip-communicator/lib
-usr/share/sip-communicator/lib/bundle
-usr/share/sip-communicator/sc-bundles
+usr/lib/sip-communicator
+usr/lib/sip-communicator/lib
+usr/lib/sip-communicator/lib/bundle
+usr/lib/sip-communicator/sc-bundles

Modified: trunk/resources/install/debian/rules
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/rules?view=diff&rev=3309&p1=trunk/resources/install/debian/rules&p2=trunk/resources/install/debian/rules&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/rules	(original)
+++ trunk/resources/install/debian/rules	2007-12-11 06:34:17+0000
@@ -49,28 +49,28 @@
 	cp debian/sip-communicator.desktop debian/sip-communicator/usr/share/applications/
 
 	# Copy all libs 
-	cp $(BASEDIR)/lib/*.jar debian/sip-communicator/usr/share/sip-communicator/lib/
-	cp $(BASEDIR)/resources/install/logging.properties debian/sip-communicator/usr/share/sip-communicator/lib/
-	cp $(BASEDIR)/lib/felix.client.run.properties debian/sip-communicator/usr/share/sip-communicator/lib/
-	cp -r $(BASEDIR)/lib/bundle debian/sip-communicator/usr/share/sip-communicator/lib/
+	cp $(BASEDIR)/lib/*.jar debian/sip-communicator/usr/lib/sip-communicator/lib/
+	cp $(BASEDIR)/resources/install/logging.properties debian/sip-communicator/usr/lib/sip-communicator/lib/
+	cp $(BASEDIR)/lib/felix.client.run.properties debian/sip-communicator/usr/lib/sip-communicator/lib/
+	cp -r $(BASEDIR)/lib/bundle debian/sip-communicator/usr/lib/sip-communicator/lib/
 
 	# Copy OS specific and native libs
-	cp $(BASEDIR)/lib/os-specific/linux/*.jar debian/sip-communicator/usr/share/sip-communicator/lib/
-	cp -r $(BASEDIR)/lib/native/linux debian/sip-communicator/usr/share/sip-communicator/lib/native
+	cp $(BASEDIR)/lib/os-specific/linux/*.jar debian/sip-communicator/usr/lib/sip-communicator/lib/
+	cp -r $(BASEDIR)/lib/native/linux debian/sip-communicator/usr/lib/sip-communicator/lib/native
 
 	# Copy SIP Communicator bundles
-	cp $(BASEDIR)/sc-bundles/*.jar debian/sip-communicator/usr/share/sip-communicator/sc-bundles
-	cp $(BASEDIR)/sc-bundles/os-specific/linux/*.jar debian/sip-communicator/usr/share/sip-communicator/sc-bundles
+	cp $(BASEDIR)/sc-bundles/*.jar debian/sip-communicator/usr/lib/sip-communicator/sc-bundles
+	cp $(BASEDIR)/sc-bundles/os-specific/linux/*.jar debian/sip-communicator/usr/lib/sip-communicator/sc-bundles
 	install -m 755 debian/sip-communicator.sh debian/sip-communicator/usr/bin/sip-communicator
 
-	# Remove all slicks, CVS info and unnecessary librairies.
-	rm debian/sip-communicator/usr/share/sip-communicator/sc-bundles/*-slick.jar
-	rm -rf debian/sip-communicator/usr/share/sip-communicator/lib/native/CVS
-	rm -rf debian/sip-communicator/usr/share/sip-communicator/lib/bundle/CVS
-	rm debian/sip-communicator/usr/share/sip-communicator/lib/bundle/junit.jar
+	# Remove all slicks, SVN info and unnecessary librairies.
+	rm debian/sip-communicator/usr/lib/sip-communicator/sc-bundles/*-slick.jar
+	rm -rf debian/sip-communicator/usr/lib/sip-communicator/lib/native/.svn
+	rm -rf debian/sip-communicator/usr/lib/sip-communicator/lib/bundle/.svn
+	rm debian/sip-communicator/usr/lib/sip-communicator/lib/bundle/junit.jar
 
 	# Make felix deploy its bundles in ~/.felix/sip-communicator.bin
-	sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" debian/sip-communicator/usr/share/sip-communicator/lib/felix.client.run.properties
+	sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" debian/sip-communicator/usr/lib/sip-communicator/lib/felix.client.run.properties
 
 
 # Build i386 files here.

Modified: trunk/resources/install/debian/sip-communicator.1
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/sip-communicator.1?view=diff&rev=3309&p1=trunk/resources/install/debian/sip-communicator.1&p2=trunk/resources/install/debian/sip-communicator.1&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/sip-communicator.1	(original)
+++ trunk/resources/install/debian/sip-communicator.1	2007-12-11 06:34:17+0000
@@ -16,7 +16,7 @@
 .\" .sp <n>    insert n+1 empty lines
 .\" for manpage-specific macros, see man(7)
 .SH NAME
-SIP Communicator \- the Java VoIP and Instant Messaging client
+sip-communicator \- the Java VoIP and Instant Messaging client
 .SH SYNOPSIS
 .B sip-communicator
 .RI [ options ]
@@ -33,16 +33,16 @@
 your friends using some of the most popular instant messaging protocols such as
 SIP/SIMPLE, Jabber, AIM/ICQ, MSN, Yahoo, IRC and others.
 .SH OPTIONS
-.\" These programs follow the usual GNU command line syntax, with long
-.\" options starting with two dashes (`-').
-.\" A summary of options is included below.
-.\" For a complete description, see the Info files.
-.\" .TP
-.\" .B \-h, \-\-help
-.\" Show summary of options.
-.\" .TP
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-verbose
+SIP communicator logs are displayed in the console.
+.TP
 .B \-V, \-\-version
 Show version of program.
+.TP
 .SH FILES
 .TP
 .I ~/.sip-communicator/contactlist.xml

Modified: trunk/resources/install/debian/sip-communicator.desktop
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/sip-communicator.desktop?view=diff&rev=3309&p1=trunk/resources/install/debian/sip-communicator.desktop&p2=trunk/resources/install/debian/sip-communicator.desktop&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/sip-communicator.desktop	(original)
+++ trunk/resources/install/debian/sip-communicator.desktop	2007-12-11 06:34:17+0000
@@ -5,6 +5,6 @@
 Comment=VoIP and Instant Messaging client
 Icon=/usr/share/pixmaps/sip-communicator.svg
 Type=Application
-Categories=Application;Network;
+Categories=AudioVideo;Network;InstantMessaging;Chat;IRCClient;Telephony;VideoConference;Java;
 Exec=sip-communicator
 Terminal=false

Modified: trunk/resources/install/debian/sip-communicator.menu
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/sip-communicator.menu?view=diff&rev=3309&p1=trunk/resources/install/debian/sip-communicator.menu&p2=trunk/resources/install/debian/sip-communicator.menu&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/sip-communicator.menu	(original)
+++ trunk/resources/install/debian/sip-communicator.menu	2007-12-11 06:34:17+0000
@@ -1,5 +1,5 @@
 ?package(sip-communicator):needs="x11"                   \
-  section="Apps/Net"                                     \
+  section="Applications/Network/Communication"           \
   title="SIP Communicator"                               \
   longtitle="SIP Communicator, VoIP and IM client"       \
   command="/usr/bin/sip-communicator"                    \

Modified: trunk/resources/install/debian/sip-communicator.sh.tmpl
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/resources/install/debian/sip-communicator.sh.tmpl?view=diff&rev=3309&p1=trunk/resources/install/debian/sip-communicator.sh.tmpl&p2=trunk/resources/install/debian/sip-communicator.sh.tmpl&r1=3308&r2=3309
==============================================================================
--- trunk/resources/install/debian/sip-communicator.sh.tmpl	(original)
+++ trunk/resources/install/debian/sip-communicator.sh.tmpl	2007-12-11 06:34:17+0000
@@ -1,6 +1,13 @@
 #!/bin/bash
 
-TEMP=`getopt -o V --long version -n 'SIP Communicator' -- "$@"`
+function print_help() {
+	echo "SIP Communicator option summary"
+	echo -e "\t-h, --help\t show this help message"
+	echo -e "\t-v, --verbose\t verbose output"
+	echo -e "\t-V, --version\t show version"
+}
+
+TEMP=`getopt -o hVv -l help -l version -l verbose -n 'SIP Communicator' -- "$@"`
 
 if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
 
@@ -8,7 +15,9 @@
 
 while true ; do
         case "$1" in
+				-h|--help) print_help; exit 0;;
                 -V|--version) echo "SIP Communicator version _SC_VERSION_"; exit 0;;
+                -v|--verbose) VERBOSE="yes" ; shift ;;
                 --) shift ; break ;;
                 *) echo "Internal error!" ; exit 1 ;;
         esac
@@ -16,8 +25,12 @@
 
 javabin=`which java`
 
-SCDIR=/usr/share/sip-communicator
+SCDIR=/usr/lib/sip-communicator
 LIBPATH=$SCDIR/lib
+CLASSPATH=$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$SCDIR/sc-bundles/util.jar
+FELIX_CONFIG=$LIBPATH/felix.client.run.properties
+LOG_CONFIG=$LIBPATH/logging.properties
+COMMAND="$javabin -classpath $CLASSPATH -Dfelix.config.properties=file:$FELIX_CONFIG -Djava.util.logging.config.file=$LOG_CONFIG org.apache.felix.main.Main"
 
 #set add LIBPATH to LD_LIBRARY_PATH for any sc natives (e.g. jmf .so's)
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBPATH/native
@@ -32,6 +45,10 @@
 
 if [ -f $javabin ]
 then
-        $javabin -classpath	"$LIBPATH/jdic_stub.jar:$LIBPATH/jdic-all.jar:$LIBPATH/felix.jar:$SCDIR/sc-bundles/util.jar" -Dfelix.config.properties=file:$LIBPATH/felix.client.run.properties -Djava.util.logging.config.file=$LIBPATH/logging.properties org.apache.felix.main.Main
-        exit $?
+	if [ $VERBOSE ] ; then
+		exec $COMMAND
+	else
+		exec $COMMAND > /dev/null 2>&1
+	fi
+	exit $?
 fi

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: commits-help at sip-communicator.dev.java.net





More information about the commits mailing list