Commit 0f17c666 authored by Yun Liu's avatar Yun Liu
Browse files

update debian information after adding pjproject into source code

parent de87d453
sflphone for Debian
-------------------
<possible notes regarding this package - if none, delete this file>
-- Yun Liu <yun@unknown> Wed, 26 Nov 2008 09:47:53 -0500
Archive : unstable
Version: 0.9.1
Component : universe
Origin : SFLphone
Label : sflphone
Architecture : i386
Please refers to the official site: http://www.sflphone.org, rubrique Goals
#!/bin/sh
# @author: Emmanuel Milou - emmanuel.milou@savoirfairelinux.com
# Build a binary debian package of sflphone
# Pre requisite: make install of the all repository
if [ $1 = "-h" ]
then
echo "Usage: ./autopackage.sh version arch"
echo "For instance: ./autopackage.sh 0.9.2 all"
exit 0
fi
# Libraries dependencies
dependencies="libgcc1 , libsamplerate0 (>=0.1.2) , libdbus-glib-1-2 (>= 0.73), libexpat1 , libgtk2.0-0 , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) , libcommoncpp2-1.6-0 , sflphone-iax2 , libgsm1 (>=1.0.10) , libspeex1 (>=1.1.12) , libdbus-1-3, libdbus-glib-1-2, dbus-c++-1 (>=0.5.0) , libsexy2 (>=0.1.11), pjproject, cppunit (>= 1.12), alsa (>= 1.0), libpulse (>= 0.9.6), libccgnu2 (>= 1.3.1), libccext2 (>= 1.3.1), libccrtp1 (>= 1.3.0), libnotify (>= 0.4), libsexy (>= 0.1)"
# Package Infos
package="sflphone"
version="$1"
section="gnome"
priority="optional"
essential="no"
#size="1945"
arch="$2"
homepage="http://www.sflphone.org"
maintainer="SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>"
desc="SIP and IAX2 compatible softphone\n SFLphone is meant to be a robust enterprise-class desktop phone.\n SFLphone is released under the GNU General Public License.\n SFLphone is being developed by the global community, and maintained by\n Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company."
# Get the needed stuff
echo "Gathering libraries, binaries and data ..."
sfldir="sflphone_$1"
bindir="/usr/bin"
libdir="/usr/lib"
sharedir="/usr/share"
debdir="$sfldir/DEBIAN"
#/usr/bin
mkdir -p $sfldir$bindir
cp $bindir/sflphoned $sfldir$bindir
strip $sfldir$bindir/sflphoned
cp $bindir/sflphone-gtk $sfldir$bindir
strip $sfldir$bindir/sflphone-gtk
ln -sf $bindir/sflphone-gtk $sfldir$bindir/sflphone
#/usr/lib
mkdir -p $sfldir/usr/lib/sflphone/codecs
#/usr/lib/sflphone/codecs
cp $libdir/sflphone/codecs/libcodec_* $sfldir$libdir/sflphone/codecs/
strip $sfldir$libdir/sflphone/codecs/*
#/usr/share/applications
mkdir -p $sfldir$sharedir/applications
cp $sharedir/applications/sflphone.desktop $sfldir$sharedir/applications/
#/usr/share/dbus-1/services
mkdir -p $sfldir$sharedir/dbus-1/services
cp $sharedir/dbus-1/services/org.sflphone.SFLphone.service $sfldir$sharedir/dbus-1/services/
#/usr/share/pixmaps
mkdir -p $sfldir$sharedir/pixmaps
cp $sharedir/pixmaps/sflphone.png $sfldir$sharedir/pixmaps
#/usr/share/sflphone
mkdir -p $sfldir$sharedir/sflphone/ringtones
cp $sharedir/sflphone/* $sfldir$sharedir/sflphone
#/usr/share/sflphone/ringtones
cp $sharedir/sflphone/ringtones/* $sfldir$sharedir/sflphone/ringtones
#/usr/share/locale/fr/LC_MESSAGES
mkdir -p $sfldir$sharedir/locale/fr/LC_MESSAGES
cp $sharedir/locale/fr/LC_MESSAGES/sflphone.mo $sfldir$sharedir/locale/fr/LC_MESSAGES
#/usr/share/locale/es/LC_MESSAGES
mkdir -p $sfldir$sharedir/locale/es/LC_MESSAGES
cp $sharedir/locale/es/LC_MESSAGES/sflphone.mo $sfldir$sharedir/locale/es/LC_MESSAGES
#/usr/share/locale/zh_CN/LC_MESSAGES
mkdir -p $sfldir$sharedir/locale/zh_CN/LC_MESSAGES
cp $sharedir/locale/zh_CN/LC_MESSAGES/sflphone.mo $sfldir$sharedir/locale/zh_CN/LC_MESSAGES
#/usr/share/locale/zh_HK/LC_MESSAGES
mkdir -p $sfldir$sharedir/locale/zh_HK/LC_MESSAGES
cp $sharedir/locale/zh_HK/LC_MESSAGES/sflphone.mo $sfldir$sharedir/locale/zh_HK/LC_MESSAGES
#/usr/share/doc/sflphone
mkdir -p $sfldir$sharedir/doc/sflphone
cp changelog.Debian.gz $sfldir$sharedir/doc/sflphone
cp copyright $sfldir$sharedir/doc/sflphone
cp TODO $sfldir$sharedir/doc/sflphone
mkdir -p $debdir
cp debian-binary $sfldir
cp postrm $debdir
# DEBIAN files
# Create control file
control="$debdir/control"
touch $control
echo "Package: $package" > $control
echo "Version: $version" >> $control
echo "Section: $section" >> $control
#echo "Installed-Size: $size" >> $control
echo "Priority: $priority" >> $control
echo "Architecture: $arch" >> $control
echo "Essential: $essential" >> $control
echo "Depends: $dependencies" >> $control
echo "Homepage: $homepage" >> $control
echo "Maintainer: $maintainer" >> $control
echo "Description: $desc" >> $control
# Create the debian package
echo "Build the debian package ... "
fakeroot dpkg --build $sfldir ${sfldir}_$2.deb
# Clean up the generated stuff
echo "Clean up ... "
rm -rf $sfldir
sflphone (0.9.2-1) unstable; urgency=low
* sflphone 0.9.2 release
-- Yun Liu <yun.liu@savoirfairelinux.com> Wed, 26 Nov 2008 09:47:53 -0500
sflphone (@VERSION@-1) unstable; urgency=low
* Internationalization of the GTK GUI
* English / French
* STUN support
* Slight modifications of the graphical interface ( tooltips, dialpad, ...)
-- Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> Fri, 21 Mar 2008 11:37:53 -0500
Source: sflphone
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Maintainer: SavoirFaireLinux Inc <yun.liu@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>> 3.0.0)
Standards-Version: 0.9.1
Build-Depends: debhelper (>= 5)
Standards-Version: 0.9.2
Package: sflphone
Section: gnome
Priority: optional
Architecture: i386
Essential: no
Depends: libgcc1 , libsamplerate0 (>=0.1.2) , libdbus-glib-1-2 (>= 0.73), libexpat1 , libgtk2.0-0 , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) , libosip2-2, libexosip2-4, libcommoncpp2-1.6-0 , libccrtp1-1.6-0 , sflphone-iax2 , libgsm1 (>=1.0.10) , libspeex1 (>=1.1.12) , dbus-c++-1 (>=0.5.0) , libsexy2 (>=0.1.11)
Depends: libgcc1 , libsamplerate0 (>=0.1.2) , libdbus-glib-1-2 (>= 0.73), libexpat1 , libgtk2.0-0 , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) , libcommoncpp2-1.6-0 , sflphone-iax2, libgsm1 (>=1.0.10) , libspeex1 (>=1.1.12) , libdbus-1-3, libdbus-glib-1-2, dbus-c++-1 (>=0.5.0) , libsexy2 (>=0.1.11), libcppunit-1.12-0, libasound2 (>= 1.0), libpulse0 (>= 0.9.6), libccrtp1-1.6-0, libnotify1 (>= 0.4), libsexy2 (>= 0.1)
Homepage: http://www.sflphone.org
Description: SIP and IAX2 compatible softphone
SFLphone is meant to be a robust enterprise-class desktop phone.
......
This package was debianized by Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Wed, 30 Apr 2008 11:37:53 -0500.
This package was debianized by Yun Liu <yun.liu@savoirfairelinux.com> on
Wed, 26 Nov 2008 09:47:53 -0500.
It was downloaded from the git repository of SFLphone: git://sflphone.org/git/sflphone.git
Copyright:
SavoirFaire Linux Inc.
SavoirFaire Linux Inc.
License:
......@@ -24,5 +24,3 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklyn St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Regular cron jobs for the sflphone package
#
0 4 * * * root sflphone_maintenance
usr/bin
usr/lib/sflphone/codecs
usr/lib
/usr/include
usr/share/applications
usr/share/dbus-1/services
usr/share/pixmaps
usr/share/sflphone/ringtones
usr/share/locale/fr/LC_MESSAGES
usr/share/sflphone
usr/share/locale
usr/share/docs
......@@ -5,3 +5,4 @@ ChangeLog
INSTALL
AUTHORS
COPYING
sflphone_0.9.2-1_i386.deb gnome optional
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Further changes by Javier Fernandez-Sanguino <jfs@debian.org>
#
# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/sflphone
NAME=sflphone
DESC=sflphone
test -x $DAEMON || exit 0
LOGDIR=/var/log/sflphone
PIDFILE=/var/run/$NAME.pid
DODTIME=1 # Time to wait for the server to die, in seconds
# If this value is set too low you might not
# let some servers to die gracefully and
# 'restart' will not work
# Include sflphone defaults if available
if [ -f /etc/default/sflphone ] ; then
. /etc/default/sflphone
fi
set -e
running_pid()
{
# Check if a given process pid's cmdline matches a given name
pid=$1
name=$2
[ -z "$pid" ] && return 1
[ ! -d /proc/$pid ] && return 1
cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
# Is this the expected child?
[ "$cmd" != "$name" ] && return 1
return 0
}
running()
{
# Check if the process is running looking at /proc
# (works for all users)
# No pidfile, probably no daemon present
[ ! -f "$PIDFILE" ] && return 1
# Obtain the pid and check it against the binary name
pid=`cat $PIDFILE`
running_pid $pid $NAME || return 1
return 0
}
force_stop() {
# Forcefully kill the process
[ ! -f "$PIDFILE" ] && return
if running ; then
kill -15 $pid
# Is it really dead?
[ -n "$DODTIME" ] && sleep "$DODTIME"s
if running ; then
kill -9 $pid
[ -n "$DODTIME" ] && sleep "$DODTIME"s
if running ; then
echo "Cannot kill $LABEL (pid=$pid)!"
exit 1
fi
fi
fi
rm -f $PIDFILE
return 0
}
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON -- $DAEMON_OPTS
if running then
echo "$NAME."
else
echo " ERROR."
fi
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--exec $DAEMON
echo "$NAME."
;;
force-stop)
echo -n "Forcefully stopping $DESC: "
force_stop
if ! running then
echo "$NAME."
else
echo " ERROR."
fi
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart" except that it does nothing if the
# daemon isn't already running.
# check wether $DAEMON is running. If so, restart
start-stop-daemon --stop --test --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON \
&& $0 restart \
|| exit 0
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
[ -n "$DODTIME" ] && sleep $DODTIME
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
status)
echo -n "$LABEL is "
if running ; then
echo "running"
else
echo " not running."
exit 1
fi
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2
exit 1
;;
esac
exit 0
#!/bin/sh
#
# Example init.d script with LSB support.
#
# Please read this init.d carefully and modify the sections to
# adjust it to the program you want to run.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
#
# This is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License with
# the Debian operating system, in /usr/share/common-licenses/GPL; if
# not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
#
### BEGIN INIT INFO
# Provides: sflphone
# Required-Start: $network $local_fs
# Required-Stop:
# Should-Start: $named
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: <Enter a short description of the sortware>
# Description: <Enter a long description of the software>
# <...>
# <...>
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/sflphone # Introduce the server's location here
NAME=#PACKAGE # Introduce the short server's name here
DESC=#PACKAGE # Introduce a short description here
LOGDIR=/var/log/sflphone # Log directory to use
PIDFILE=/var/run/$NAME.pid
test -x $DAEMON || exit 0
test -x $DAEMON_WRAPPER || exit 0
. /lib/lsb/init-functions
# Default options, these can be overriden by the information
# at /etc/default/$NAME
DAEMON_OPTS="" # Additional options given to the server
DODTIME=10 # Time to wait for the server to die, in seconds
# If this value is set too low you might not
# let some servers to die gracefully and
# 'restart' will not work
LOGFILE=$LOGDIR/$NAME.log # Server logfile
#DAEMONUSER=sflphone # Users to run the daemons as. If this value
# is set start-stop-daemon will chuid the server
# Include defaults if available
if [ -f /etc/default/$NAME ] ; then
. /etc/default/$NAME
fi
# Use this if you want the user to explicitly set 'RUN' in
# /etc/default/
#if [ "x$RUN" != "xyes" ] ; then
# log_failure_msg "$NAME disabled, please adjust the configuration to your needs "
# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it."
# exit 1
#fi
# Check that the user exists (if we set a user)
# Does the user exist?
if [ -n "$DAEMONUSER" ] ; then
if getent passwd | grep -q "^$DAEMONUSER:"; then
# Obtain the uid and gid
DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'`
DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'`
else
log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist."
exit 1
fi
fi
set -e
running_pid() {
# Check if a given process pid's cmdline matches a given name
pid=$1
name=$2
[ -z "$pid" ] && return 1
[ ! -d /proc/$pid ] && return 1
cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
# Is this the expected server
[ "$cmd" != "$name" ] && return 1
return 0
}
running() {
# Check if the process is running looking at /proc
# (works for all users)
# No pidfile, probably no daemon present
[ ! -f "$PIDFILE" ] && return 1
pid=`cat $PIDFILE`
running_pid $pid $DAEMON_WRAPPER || return 1
return 0
}
start_server() {
# Start the process using the wrapper
if [ -z "$DAEMONUSER" ] ; then
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON -- $DAEMON_OPTS
errcode=$?
else
# if we are using a daemonuser then change the user id
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--chuid $DAEMONUSER \
--exec $DAEMON -- $DAEMON_OPTS
errcode=$?
fi
return $errcode
}
stop_server() {
# Stop the process using the wrapper
if [ -z "$DAEMONUSER" ] ; then
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--exec $DAEMON
errcode=$
else
# if we are using a daemonuser then look for process that match
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--user $DAEMONUSER \
--exec $DAEMON
errcode=$
fi
return $errcode
}
reload_server() {
[ ! -f "$PIDFILE" ] && return 1
pid=`cat $PIDFILE` # This is the daemon's pid
# Send a SIGHUP
kill -1 $pid
return $?
}
force_stop() {
# Force the process to die killing it manually
[ ! -e "$PIDFILE" ] && return
if running ; then
kill -15 $pid
# Is it really dead?
sleep "$DIETIME"s
if running ; then
kill -9 $pid
sleep "$DIETIME"s
if running ; then
echo "Cannot kill $NAME (pid=$pid)!"
exit 1
fi
fi
fi
rm -f $PIDFILE
}
case "$1" in
start)
log_daemon_msg "Starting $DESC " "$NAME"
# Check if it's running first
if running ; then
log_progress_msg "apparently already running"
log_end_msg 0
exit 0
fi
if start_server && running ; then
# It's ok, the server started and is running
log_end_msg 0
else
# Either we could not start it or it is not running
# after we did
# NOTE: Some servers might die some time after they start,
# this code does not try to detect this and might give
# a false positive (use 'status' for that)
log_end_msg 1
fi
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if running ; then
# Only stop the server if we see it running
stop_server
log_end_msg $?
else
# If it's not running don't do anything
log_progress_msg "apparently not running"
log_end_msg 0
exit 0
fi
;;
force-stop)
# First try to stop gracefully the program
$0 stop
if running; then
# If it's still running try to kill it more forcefully
log_daemon_msg "Stopping (force) $DESC" "$NAME"
force_stop
log_end_msg $?
fi
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
stop_server
# Wait some sensible amount, some server need this
[ -n "$DIETIME" ] && sleep $DIETIME
start_server
running
log_end_msg $?
;;
status)
log_daemon_msg "Checking status of $DESC" "$NAME"
if running ; then
log_progress_msg "running"
log_end_msg 0
else
log_progress_msg "apparently not running"
log_end_msg 1
exit 1
fi
;;
# Use this if the daemon cannot reload
reload