diff --git a/tools/mozilla-telify-sflphone/debian/changelog b/tools/mozilla-telify-sflphone/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..8ea3e02afc3275ce05b00e12893edee6e42557f7 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/changelog @@ -0,0 +1,7 @@ +mozilla-telify-sflphone (0.4.7.3) unstable; urgency=low + + [ Julien Bonjean ] + * Package creation + + -- Julien Bonjean <julien.bonjean@savoirfairelinux.com> Fri, 20 Nov 2009 19:51:54 +0100 + diff --git a/tools/mozilla-telify-sflphone/debian/compat b/tools/mozilla-telify-sflphone/debian/compat new file mode 100644 index 0000000000000000000000000000000000000000..7f8f011eb73d6043d2e6db9d2c101195ae2801f2 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/compat @@ -0,0 +1 @@ +7 diff --git a/tools/mozilla-telify-sflphone/debian/control b/tools/mozilla-telify-sflphone/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..88fcc2ff5f9541792e8291332fe809d5d0fb13be --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/control @@ -0,0 +1,15 @@ +Source: mozilla-telify-sflphone +Section: web +Priority: optional +Maintainer: Julien Bonjean <julien.bonjean@savoirfairelinux.com> +Uploaders: Julien Bonjean <julien.bonjean@savoirfairelinux.com> +Build-Depends: debhelper (>= 7), unzip +Homepage: http://www.sflphone.org +Standards-Version: 3.8.3 +DM-Upload-Allowed: yes + +Package: mozilla-telify-sflphone +Depends: firefox-gnome-support, sflphone-client-gnome +Architecture: all +Description: TBD + diff --git a/tools/mozilla-telify-sflphone/debian/control.debian b/tools/mozilla-telify-sflphone/debian/control.debian new file mode 100644 index 0000000000000000000000000000000000000000..d4a3deefdd306dc4b03ef5d04a3f6f58b2d2862e --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/control.debian @@ -0,0 +1,16 @@ +Source: mozilla-telify-sflphone +Section: web +Priority: optional +Maintainer: Julien Bonjean <julien.bonjean@savoirfairelinux.com> +Uploaders: Julien Bonjean <julien.bonjean@savoirfairelinux.com> +Build-Depends: debhelper (>= 7), unzip +Depends: iceweasel-gnome-support +Homepage: http://www.sflphone.org +Standards-Version: 3.8.3 +DM-Upload-Allowed: yes + +Package: mozilla-telify-sflphone +Architecture: all +Depends: iceweasel (>= 3.0) +Description: TBD + diff --git a/tools/mozilla-telify-sflphone/debian/copyright b/tools/mozilla-telify-sflphone/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..a0990367ef8b03c70c29d285e22ef85907e1d0b7 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/copyright @@ -0,0 +1 @@ +TBD diff --git a/tools/mozilla-telify-sflphone/debian/files b/tools/mozilla-telify-sflphone/debian/files new file mode 100644 index 0000000000000000000000000000000000000000..8ebe49a9909755509943dd3161a8cb96e3acf7ec --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/files @@ -0,0 +1 @@ +mozilla-telify-sflphone_0.4.7.3_all.deb web optional diff --git a/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.debhelper.log b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.debhelper.log new file mode 100644 index 0000000000000000000000000000000000000000..89ec40ebaf21fd29fbf68d5f444d2332c792b359 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.debhelper.log @@ -0,0 +1,11 @@ +dh_prep +dh_installdirs +dh_install +dh_installchangelogs +dh_link +dh_compress +dh_fixperms +dh_installdeb +dh_gencontrol +dh_md5sums +dh_builddeb diff --git a/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.install b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.install new file mode 100644 index 0000000000000000000000000000000000000000..ffb9a7d05272745311627020430a2de487701166 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.install @@ -0,0 +1,5 @@ +temp/install.rdf usr/share/mozilla-extensions/telify/ +temp/chrome.manifest usr/share/mozilla-extensions/telify/ +temp/defaults/* usr/share/mozilla-extensions/telify/defaults +temp/chrome/* usr/share/mozilla-extensions/telify/chrome +sflphone-handler usr/bin/ diff --git a/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.links b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.links new file mode 100644 index 0000000000000000000000000000000000000000..5fa1937c3e0b8da00311a36a3de54ad61376beea --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.links @@ -0,0 +1 @@ +usr/share/mozilla-extensions/telify usr/lib/iceweasel/extensions/{6c5f349a-ddda-49ad-bdf0-326d3fe1f938} diff --git a/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.substvars b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.substvars new file mode 100644 index 0000000000000000000000000000000000000000..abd3ebebc30de133ecc51d80b32908bd4a077b9a --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/mozilla-telify-sflphone.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/tools/mozilla-telify-sflphone/debian/postinst b/tools/mozilla-telify-sflphone/debian/postinst new file mode 100755 index 0000000000000000000000000000000000000000..293cbf05a1eda7ca3a0ff2752decc4114cbd3ce4 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/postinst @@ -0,0 +1,18 @@ +#!/bin/bash + +set -x + +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t string -s /desktop/gnome/url-handlers/tel/command "/usr/bin/sflphone-handler %s" +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -s /desktop/gnome/url-handlers/tel/needs_terminal false -t bool +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t bool -s /desktop/gnome/url-handlers/tel/enabled true + +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t string -s /desktop/gnome/url-handlers/callto/command "/usr/bin/sflphone-handler %s" +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -s /desktop/gnome/url-handlers/callto/needs_terminal false -t bool +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t bool -s /desktop/gnome/url-handlers/callto/enabled true + +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t string -s /desktop/gnome/url-handlers/sip/command "/usr/bin/sflphone-handler %s" +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -s /desktop/gnome/url-handlers/sip/needs_terminal false -t bool +gconftool-2 --direct --config-source xml::/etc/gconf/gconf.xml.defaults -t bool -s /desktop/gnome/url-handlers/sip/enabled true + +exit 0 + diff --git a/tools/mozilla-telify-sflphone/debian/rules b/tools/mozilla-telify-sflphone/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..b6418e1b0496f5404895f0bad455bb62a3f6e7c8 --- /dev/null +++ b/tools/mozilla-telify-sflphone/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +ID="{6c5f349a-ddda-49ad-bdf0-326d3fe1f938}" + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + mkdir -p temp + unzip -o -d temp *.xpi + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + -rm -rf temp + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + dh_install + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -i + dh_link -i + dh_compress -XMPL -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/tools/mozilla-telify-sflphone/sflphone-handler b/tools/mozilla-telify-sflphone/sflphone-handler new file mode 100755 index 0000000000000000000000000000000000000000..727ef0f93c26927ed962654154418cd59ca2983a --- /dev/null +++ b/tools/mozilla-telify-sflphone/sflphone-handler @@ -0,0 +1,52 @@ +#!/bin/sh +# +# This script can be used as a callto: (or other) protocol handler in +# Mozilla Firefox-based browser. +# In Firefox use Preferences > Applications and set the callto handler +# to this script. + +# The sflphone daemon config file +RESFILE=~/.config/sflphone/sflphonedrc + +# Parse sflphonedrc and get default account id string +if [ -f "$RESFILE" ]; then + + # Use first ID + ACCOUNTID=`grep Accounts.order $RESFILE | sed -e 's/Accounts.order=//' -e 's/\/.*//'` + + # Accounts.order is not set + if [ -z $ACCOUNTID ]; then + + # Use first account declared in sflphone config + ACCOUNTID="`grep -m 1 Account: $RESFILE | sed -e 's/\[//' -e 's/\]//'`" + fi + +else + echo Fatal: Cant find sflphonedrc config file. + exit 1 +fi + +# Check 1st argument (phone number) +if [ -z $1 ]; then + echo "Error: argument 1 (phone number) not provided." + exit 1 +fi + +# Cleanup destination, keeping numbers only +TO="`echo $1 | sed -e 's/[^0123456789]//g'`" + +# Generate call id. +CALLID=${RANDOM}$$ + +dbus-send \ + --type="method_call" \ + --dest="org.sflphone.SFLphone" \ + "/org/sflphone/SFLphone/CallManager" \ + "org.sflphone.SFLphone.CallManager.placeCall" \ + string:"$ACCOUNTID" \ + string:"$CALLID" \ + string:"$TO" + +exit 0 + +# EOF diff --git a/tools/mozilla-telify-sflphone/telify-0.4.7.3-fx.xpi b/tools/mozilla-telify-sflphone/telify-0.4.7.3-fx.xpi new file mode 100644 index 0000000000000000000000000000000000000000..ec1eff1fe541400731f1b2e5b6e33a30c8cd9a4a Binary files /dev/null and b/tools/mozilla-telify-sflphone/telify-0.4.7.3-fx.xpi differ