Skip to content
Snippets Groups Projects
Commit ddd570f3 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#2445] First shot

parent a447641a
Branches
No related tags found
No related merge requests found
Showing
with 187 additions and 0 deletions
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
7
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
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
TBD
mozilla-telify-sflphone_0.4.7.3_all.deb web optional
dh_prep
dh_installdirs
dh_install
dh_installchangelogs
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
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/
usr/share/mozilla-extensions/telify usr/lib/iceweasel/extensions/{6c5f349a-ddda-49ad-bdf0-326d3fe1f938}
misc:Depends=
#!/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
#!/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
#!/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
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment