Commit 5047107d authored by Emmanuel Milou's avatar Emmanuel Milou

Update debian stuff (preinst script, dependencies, copyright)

parent 096fb425
......@@ -2,7 +2,7 @@ Source: sflphone
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), autoconf, automake, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev
Build-Depends: debhelper (>= 5), autoconf, automake, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev, libebook1.2-dev, uuid-dev
Standards-Version: 3.7.3
Package: sflphone
......
......@@ -2,7 +2,7 @@ Source: sflphone
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), autoconf, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev, libspeexdsp-dev, uuid-dev
Build-Depends: debhelper (>= 5), autoconf, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev, libspeexdsp-dev, uuid-dev, libebook1.2-dev
Standards-Version: 3.8.0
Package: sflphone
......
......@@ -2,7 +2,7 @@ Source: sflphone
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), autoconf, automake, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev, libspeexdsp-dev, uuid-dev
Build-Depends: debhelper (>= 5), autoconf, automake, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libcppunit-dev, libgsm1-dev, libspeex-dev, libtool, libgtk2.0-dev, libsexy-dev, libdbus-1-dev, libdbus-glib-1-dev, libnotify-dev, libasound2-dev, libspeexdsp-dev, uuid-dev, libebook1.2-dev
Standards-Version: 3.7.3
Package: sflphone
......
This package was debianized by Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> on
Wed, 26 Nov 2008 09:47:53 -0500.
Fri, 3 Apr 2009 09:47:53 -0500.
It was downloaded from the git repository of SFLphone: git://sflphone.org/git/sflphone.git
......
#!/bin/sh
# postrm script for sflphone
#
# see: dh_installdeb(1)
set -e
package=sflphone
case "$1" in
install|upgrade)
# Clear the old dbus-c++ and iax2 if presents
rm -rf /usr/lib/libdbus-c++*
rm -rf /usr/lib/libiax2*
;;
esac
exit 0
......@@ -20,10 +20,7 @@ configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
cd libs/dbus-c++; ./autogen.sh; ./configure
cd libs/libiax2; ./gen.sh; ./configure
cd libs/pjproject-1.0.1; ./configure
./autogen.sh --prefix=/usr --with-debug
./autogen.sh --prefix=/usr
cd sflphone-gtk; ./autogen.sh --prefix=/usr
touch configure-stamp
......@@ -34,13 +31,10 @@ build: build-arch build-indep
build-arch: build-arch-stamp
build-arch-stamp: configure-stamp
# Add here commands to compile the arch part of the package.
# Add here commands to compile the arch part of the package.
$(MAKE)
cd sflphone-gtk; make
cd libs/pjproject-1.0.1; $(MAKE) dep; $(MAKE)
touch $@
cd libs/dbus-c++; $(MAKE)
cd libs/libiax2; $(MAKE)
build-indep: build-indep-stamp
build-indep-stamp: configure-stamp
......@@ -80,9 +74,6 @@ install-arch:
# debian/tmp.
$(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
cd sflphone-gtk; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
cd libs/pjproject-1.0.1; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
cd libs/dbus-c++; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
cd libs/libiax2; $(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
rm -rf $(CURDIR)/debian/$(package)/usr/include
dh_install -s
# Must not depend on anything. This is to be called by
......
#!/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!"
!#/bin/sh
scp $1 root@gpl.savoirfairelinux.net:/var/www/vhosts/sflphone.org/htdocs/debian/dists/unstable/universe/binary-i386
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment