mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
[#2445] First shot
This commit is contained in:
7
tools/mozilla-telify-sflphone/debian/changelog
Normal file
7
tools/mozilla-telify-sflphone/debian/changelog
Normal file
@ -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
|
||||
|
1
tools/mozilla-telify-sflphone/debian/compat
Normal file
1
tools/mozilla-telify-sflphone/debian/compat
Normal file
@ -0,0 +1 @@
|
||||
7
|
15
tools/mozilla-telify-sflphone/debian/control
Normal file
15
tools/mozilla-telify-sflphone/debian/control
Normal file
@ -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
|
||||
|
16
tools/mozilla-telify-sflphone/debian/control.debian
Normal file
16
tools/mozilla-telify-sflphone/debian/control.debian
Normal file
@ -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
|
||||
|
1
tools/mozilla-telify-sflphone/debian/copyright
Normal file
1
tools/mozilla-telify-sflphone/debian/copyright
Normal file
@ -0,0 +1 @@
|
||||
TBD
|
1
tools/mozilla-telify-sflphone/debian/files
Normal file
1
tools/mozilla-telify-sflphone/debian/files
Normal file
@ -0,0 +1 @@
|
||||
mozilla-telify-sflphone_0.4.7.3_all.deb web optional
|
@ -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
|
@ -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/
|
@ -0,0 +1 @@
|
||||
usr/share/mozilla-extensions/telify usr/lib/iceweasel/extensions/{6c5f349a-ddda-49ad-bdf0-326d3fe1f938}
|
@ -0,0 +1 @@
|
||||
misc:Depends=
|
18
tools/mozilla-telify-sflphone/debian/postinst
Executable file
18
tools/mozilla-telify-sflphone/debian/postinst
Executable file
@ -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
|
||||
|
58
tools/mozilla-telify-sflphone/debian/rules
Executable file
58
tools/mozilla-telify-sflphone/debian/rules
Executable file
@ -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
|
52
tools/mozilla-telify-sflphone/sflphone-handler
Executable file
52
tools/mozilla-telify-sflphone/sflphone-handler
Executable file
@ -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
|
BIN
tools/mozilla-telify-sflphone/telify-0.4.7.3-fx.xpi
Normal file
BIN
tools/mozilla-telify-sflphone/telify-0.4.7.3-fx.xpi
Normal file
Binary file not shown.
Reference in New Issue
Block a user