Skip to content
Snippets Groups Projects
Commit 25956e86 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Add and update debian packaging scripts and documentation

parent 3a662f94
No related branches found
No related tags found
No related merge requests found
sflphoned for Debian
--------------------
<possible notes regarding this package - if none, delete this file>
-- jpbarrette <jean-philippe.barrette-lapierre@savoirfairelinux.com>, Thu, 10 Nov 2005 11:37:53 -0500
Archive : unstable
Version: 0.8.2-3
Component : main
Origin : SFLphone
Label : sflphone
Architecture : i386
#!/bin/sh
# @author: Emmanuel Milou - emmanuel.milou@savoirfairelinux.com
# Build a binary debian package of sflphone
# Pre: make install of the all repository
if [ $1 = "-h" ]
then
echo "Usage: ./sfl_debian.sh version arch"
echo "For instance: ./sfl_debian.sh 0.8.2 i386"
exit 0
fi
# Libraries dependencies
dependencies="libgcc1 , libsamplerate0 (>=0.1.2) , libdbus-glib-1-2 (>= 0.73), libexpat1 , libgtk2.0-0 , gnome-common , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) , libosip2-3, libexosip2-5, libcommoncpp2-1.5.3-0 , libccrtp1-1.5-1 , libiax0 , libgtkglext1"
# 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="SFLphone - Answer the call\n SFLphone is meant to be a robust enterprise-class desktop phone. It is design with a hundred-calls-a-day receptionist in mind. It can work for you, too.\n .\n SFLphone is released under the GNU General Public License.\n .\n SFLphone is being developed by the global community, and maintained by 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
cp $bindir/sflphone-gtk $sfldir$bindir
#/usr/lib
mkdir -p $sfldir/usr/lib/sflphone/codecs
cp $libdir/libdbus-c++-1.so $sfldir$libdir
cp $libdir/libdbus-c++-1.so.0 $sfldir$libdir
cp $libdir/libdbus-c++-1.so.0.0.0 $sfldir$libdir
#/usr/lib/sflphone/codecs
cp $libdir/sflphone/codecs/libcodec_* $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/*.svg $sfldir$sharedir/sflphone
#/usr/share/sflphone/ringtones
cp $sharedir/sflphone/ringtones/* $sfldir$sharedir/sflphone/ringtones
#/usr/share/locale/fr/LC_MESSAGES
cp $sharedir/locale/fr/LC_MESSAGES/sflphone.mo $sfldir$sharedir/locale/fr/LC_MESSAGES
# DEBIAN files
mkdir -p $debdir
# 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 ... "
dpkg --build $sfldir ${sfldir}_$2.deb
#!/bin/sh
# @author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
# Update the existing debian package wit the updated installation script
# Use it if you modify the installation scripts sflphone.preinst, sflphone.postrm or sflphone.prerm
# you need the text base files: package and arch. They have just one line with respectively the name of the package and the architecture
base_file="package arch"
for i in $base_file
do
if [ ! -f $i ]
then
echo " Could not find the file $i "
exit 0
fi
done
package=`(cat package)`
arch=`(cat arch)`
if [ ! -d $package ]
then
exit 0
fi
# Update installation scripts
cp sflphone.preinst $package/DEBIAN/preinst
cp sflphone.postrm $package/DEBIAN/postrm
cp sflphone.prerm $package/DEBIAN/prerm
# Rebuild the debian package
dpkg --build $package ${package}_${arch}.deb 2> /dev/null
echo "Done!"
i386
sflphoned (@VERSION@-1) unstable; urgency=low
sflphone (@VERSION@-1) unstable; urgency=low
* Initial Release.
* Internationalization of the GTK GUI
* English / French
* STUN support
* Slight modifications of the graphical interface ( tooltips, dialpad, ...)
-- Jean-Philippe Barrette-LaPierre <jean-philippe.barrette-lapierre@savoirfairelinux.com> Thu, 10 Nov 2005 11:37:53 -0500
-- Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> Fri, 21 Mar 2008 11:37:53 -0500
Source: sflphoned
Section: unknown
Package: sflphone
Version: 0.8.2-3
Section: gnome
Priority: optional
Maintainer: Yan Morin <yan.morin@savoirfairelinux.com>
Build-Depends: debhelper (>= 4.0.0), libcommoncpp2-dev (>= 1.3.14), libosip2-dev (>= 2.2.0), libccrtp-dev (>= 1.3.1), g++-4.0
Standards-Version: 3.6.1
Package: sflphoned
Architecture: any
Depends: ${shlibs:Depends}, libcommoncpp2-1.3c2, libosip2-3 (>= 2.2.0), libccrtp1-1.3c2 (>= 1.3.1)
Recommends: sflphone-qt
Description: SFLPhoned is a VoIP daeamon with SIP protocol
SFLPhoned is a VoIP daemon with SIP and IAX protocols. It is controlled
by either a graphical user interface (sflphone-qt) or an interactive
command-line interface (sflphone-cli).
It is developped by Savoir-faire Linux Inc, Montreal, Quebec, Canada.
Architecture: i386
Essential: no
Depends: libgcc1 , libsamplerate0 (>=0.1.2) , libdbus-glib-1-2 (>= 0.73), libexpat1 , libgtk2.0-0 , gnome-common , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) , libosip2-3, libexosip2-5, libcommoncpp2-1.5.3-0 , libccrtp1-1.5-1 , libiax0 , libgtkglext1
Homepage: http://www.sflphone.org
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Description: SFLphone - Answer the call
SFLphone is meant to be a robust enterprise-class desktop phone. It is design with a hundred-calls-a-day receptionist in mind. It can work for you, too.
.
SFLphone is released under the GNU General Public License.
.
SFLphone is being developed by the global community, and maintained by Savoir-faire Linux, a Montreal, Quebec, Canada-based Linux consulting company.
This package was debianized by Jean-Philippe Barrette-LaPierre <jean-philippe.barrette-lapierre@savoirfairelinux.com> on
Thu, 10 Nov 2005 11:37:53 -0500.
This package was debianized by Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Fri, 21 Mar 2008 11:37:53 -0500.
It was downloaded from http://www.sflphone.org/releases/
It was downloaded from the git repository of SFLphone: git://sflphone.org/git/sflphone.git
Copyright:
Upstream Author(s): Jean-Philippe Barrette-LaPierre <jean-philippe.barrette-lapierre@savoirfairelinux.com>
SavoirFaire Linux Inc.
License:
This software is copyright (c) 2004-2005 Savoir-Faire Linux inc.
This software is copyright (c) 2004-2008 Savoir-Faire Linux inc.
You are free to distribute this software under the terms of
the GNU General Public License.
the GNU General Public License version 3.
On Debian systems, the complete text of the GNU General Public
License can be found in the file `/usr/share/common-licenses/GPL'.
usr/bin
usr/sbin
usr/lib/sflphone/codecs
usr/share/applications
usr/share/dbus-1/services
usr/share/pixmaps
usr/share/sflphone/ringtones
usr/share/locale/fr/LC_MESSAGES
sflphoned_0.7-1_i386.deb unknown optional
sflphoned_0.8-2_i386.deb
?package(sflphoned):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\
title="sflphoned" command="/usr/bin/sflphoned"
sflphone_0.8.2-3
#!/bin/sh
# debian/postrm postremoval script for SFLphone
if [ "$1" = "purge" ]
then
# remove the user config file
rm -f $HOME/.sflphone/sflphonedrc
fi
exit 0
## -------------------------------------------------
#!/bin/sh
# Debian pre-installation script for sflphone
# exit 0
#!/bin/sh
# DEBIAN/prerm - Preremoval script for SFLphone
if [ "$1" = "remove" ]
then
killall sflphoned
fi
exit 0
!#/bin/sh
scp $1 sflphone_org@gpl.savoirfairelinux.net:/var/www/vhosts/sflphone.org/htdocs/debian/dists/unstable/main/binary-i386
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment