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

[#2181] Cleaning

parent be9f233b
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 2339 deletions
# register image
VBoxManage registerimage disk VDI/ubuntu-9.04.vdi -type normal
# check registration
VBoxManage showvdiinfo VDI/ubuntu-9.04.vdi
# create VM
VBoxManage createvm -name "ubuntu-9.04" -register
# check vm creation
VBoxManage list vms
# update configuration
VBoxManage modifyvm "ubuntu-9.04" -hda "VDI/ubuntu-9.04.vdi" -memory "1024MB" -acpi on -nic1 nat
#si 64 bits
# VBoxManage modifyvm ubuntu-9.04-64 --ostype Ubuntu_64
# VBoxManage modifyvm ubuntu-9.04-64 --hwvirtex on
VBoxManage setextradata "ubuntu-9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP
VBoxManage setextradata "ubuntu-9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 50001
VBoxManage setextradata "ubuntu-9.04" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22
# start vm
VBoxHeadless -startvm "ubuntu-9.04" -p 50000
# install ssh support
sudo apt-get install openssh-server
# add office-srv-01 sflphone user ssh key in authorized_keys of vm
ssh -o LogLevel=ERROR -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 50001 sflphone@127.0.0.1 "mkdir ~/.ssh/"
scp -o LogLevel=ERROR -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P 50001 /home/projects/sflphone/.ssh/id_dsa.pub sflphone@127.0.0.1:~/.ssh/authorized_keys
ssh -o LogLevel=ERROR -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p 50001 sflphone@127.0.0.1 "chmod 0600 ~/.ssh/authorized_keys"
# si nécessaire
# scp -o LogLevel=ERROR -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P 50001 /home/projects/sflphone/build-system/git-buildpackage_0.4.45_all.deb sflphone@127.0.0.1:
# update /etc/sudoers
sflphone ALL = NOPASSWD: /sbin/shutdown, /usr/bin/apt-get, /usr/bin/dpkg
# stop vm
VBoxManage controlvm "ubuntu-9-04" poweroff
#!/bin/bash
#####################################################
# File Name: build-packages.sh
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-29
# Last Modified: 2009-06-01 17:27:25 -0400
#####################################################
. ./globals
if [ "$?" -ne 0 ]; then
echo "!! Cannot source global file"
exit -1
fi
cd ${PACKAGING_DIR}
if [ ! ${PACKAGING_DIR} ];then
echo "!! Cannot go to working directory"
exit -1
fi
# check if version is ok
if [ ! ${VERSION} ]; then
echo "!! Cannot detect current version"
exit -1
fi
# open log file
exec 3<>${LOG_FILE}
# redirect outputs (stdout & stderr)
exec 1>&3
exec 2>&3
echo "SFLPhone version is ${VERSION}"
# check user
if [ "${WHOAMI}" != "${USER}" ]; then
echo "!! Please use user ${USER} to run this script"
exit -1;
fi
if [ ${RELEASE_MODE} ]; then
echo "Release mode : ${RELEASE_MODE}"
else
echo "Snapshot mode"
fi
# decompress repository
echo "Untar repository"
cd ${BUILD_DIR} && tar xf ${REPOSITORY_ARCHIVE} >/dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo " !! Cannot untar repository"
exit -1
fi
# launch distribution specific script
if [ "${DISTRIBUTION}" = "ubuntu" ];then
echo "Launch packaging for Ubuntu (hardy/intrepid/jaunty)"
cd ${UBUNTU_DIR} && ./build-packages-ubuntu.sh $*
elif [ "${DISTRIBUTION}" = "opensuse" ]; then
echo "Launch packaging for openSUSE 11"
cd ${OPENSUSE_DIR} && ./build-packages-opensuse.sh $*
elif [ "${DISTRIBUTION}" = "mandriva" ]; then
echo "Launch packaging for Mandriva 2009.1"
cd ${MANDRIVA_DIR} && ./build-packages-mandriva.sh $*
elif [ "${DISTRIBUTION}" = "fedora" ]; then
echo "Launch packaging for Fedora 11"
cd ${FEDORA_DIR} && ./build-packages-fedora.sh $*
else
echo "!! Cannot detect distribution"
exit -1
fi
if [ "$?" -ne 0 ]; then
echo "!! Error in subprocess"
exit -1
fi
echo "All done"
# close file descriptor
exec 3>&-
exit 0
#####################################################
# File Name: globals
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-28
# Last Modified: 2009-05-28 15:55:14 -0400
#####################################################
# general
RELEASE_MODE="$1"
ROOT_DIR="/home/sflphone"
PACKAGING_DIR="${ROOT_DIR}/sflphone-packaging"
# distributions
UBUNTU_DIR="${PACKAGING_DIR}/ubuntu"
OPENSUSE_DIR="${PACKAGING_DIR}/opensuse"
MANDRIVA_DIR="${PACKAGING_DIR}/mandriva"
FEDORA_DIR="${PACKAGING_DIR}/fedora"
# where packaging will be donne
BUILD_DIR="${PACKAGING_DIR}/build"
REPOSITORY_ARCHIVE="${BUILD_DIR}/sflphone.tar.gz"
REPOSITORY_DIR="${BUILD_DIR}/sflphone"
# target directories
DEB_RESULT_DIR="${PACKAGING_DIR}/deb/dists"
RPM_RESULT_DIR="${PACKAGING_DIR}/rpm"
# system information
ARCH_FLAG=`getconf -a|grep LONG_BIT | sed -e 's/LONG_BIT\s*//'`
OS_VERSION=`lsb_release -d -s -c | sed -e '1d'`
DISTRIBUTION=`lsb_release -s -d | sed 's/"//g' | tr 'A-Z' 'a-z' | cut -d " " -f1`
VERSION=`cat ${BUILD_DIR}/VERSION`
# other stuff
EDITOR=echo
export EDITOR
RELEASE_MODE=$1
USER="sflphone"
WHOAMI=`whoami`
# packages we will build
PACKAGES=('sflphone-common sflphone-client-gnome' 'sflphone-client-kde')
# log file
LOG_ID="${OS_VERSION}"
if [ "${LOG_ID}" = "" ]; then
LOG_ID="${DISTRIBUTION}"
fi
LOG_FILE=${PACKAGING_DIR}/sflphone-${LOG_ID}-${ARCH_FLAG}.log
#!/bin/bash
#####################################################
# File Name: build-packages-mandriva.sh
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-06-04 16:29:34 -0400
#####################################################
. ../globals
cd ${MANDRIVA_DIR}
if [ "$?" -ne "0" ]; then
echo " !! Cannot cd to Mandriva directory"
exit -1
fi
echo "Do updates"
sudo /usr/sbin/urpmi --auto-update --auto >/dev/null
# create build directories
echo "Create directories"
mkdir -p ${BUILD_DIR}/BUILD
mkdir -p ${RPM_RESULT_DIR}
mkdir -p ${BUILD_DIR}/SOURCES
mkdir -p ${BUILD_DIR}/SPECS
# create rpm macros
echo "Create RPM macros"
cat > ~/.rpmmacros << STOP
%packager Julien Bonjean (julien.bonjean@savoirfairelinux.com)
%distribution Savoir-faire Linux
%vendor Savoir-faire Linux
%_signature gpg
%_gpg_name Julien Bonjean
%_topdir ${BUILD_DIR}
%_builddir %{_topdir}/BUILD
%_rpmdir ${RPM_RESULT_DIR}
%_sourcedir %{_topdir}/SOURCES
%_specdir %{_topdir}/SPECS
%_srcrpmdir ${RPM_RESULT_DIR}
STOP
# create packages
for PACKAGE in ${PACKAGES[@]}
do
echo "Prepare ${PACKAGE}"
cd ${REPOSITORY_DIR}
echo " -> create source archive"
mv ${PACKAGE} ${PACKAGE}-${VERSION} 2>/dev/null && \
tar cf ${PACKAGE}.tar.gz ${PACKAGE}-${VERSION} >/dev/null && \
mv ${PACKAGE}-${VERSION} ${PACKAGE}
if [ "$?" -ne "0" ]; then
echo "!! Cannot create source archive"
exit -1
fi
echo " -> move archive to source directory"
mv ${PACKAGE}.tar.gz ${BUILD_DIR}/SOURCES
if [ "$?" -ne "0" ]; then
echo "!! Cannot move archive"
exit -1
fi
cd ${PACKAGING_DIR}
echo " -> update spec file"
sed "s/VERSION/${VERSION}/g" mandriva/${PACKAGE}.spec > ${BUILD_DIR}/SPECS/${PACKAGE}.spec
if [ "$?" -ne "0" ]; then
echo "!! Cannot update spec file"
exit -1
fi
done
# launch build
echo "Launch build"
rpmbuild -ba ${BUILD_DIR}/SPECS/*.spec
if [ "$?" -ne "0" ]; then
echo "!! Cannot build packages"
exit -1
fi
#####################################################
# File Name: sflphone-client-gnome.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-client-gnome
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: GNOME client for SFLphone
Version: VERSION
Release: mandriva
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-client-gnome.tar.gz
BuildRequires: gtk2-devel
BuildRequires: libnotify-devel
BuildRequires: libsexy-devel
BuildRequires: evolution-data-server-devel
BuildRequires: check-devel
BuildRequires: libdbus-glib-devel
BuildRequires: log4c-devel
Requires: sflphone-common = %{version}
Requires: dbus-1-glib
Requires: gtk2
Requires: glib2
Requires: dbus-1-glib
Requires: libnotify
Requires: librsvg
Requires: log4c
Requires: libsexy
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a GNOME client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
./autogen.sh
./configure --prefix=%{_prefix}
make -j
%install
make DESTDIR=%{buildroot} install
%clean
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%doc AUTHORS COPYING README
%changelog
#####################################################
# File Name: sflphone-client-kde.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-client-kde
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: KDE client for SFLphone
Version: VERSION
Release: mandriva
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-client-kde.tar.gz
Requires: sflphone-common = %{version}
Requires: commoncpp2
Requires: libkdepimlibs4
Requires: libqt4-dbus-1
Requires: libqt4-svg
Requires: libqt4-x11
BuildRequires: cmake
BuildRequires: libcommoncpp-devel
BuildRequires: kdepimlibs4-devel
BuildRequires: libqt4-devel >= 4.3
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a KDE client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make
%install
make DESTDIR=%{buildroot} install
%clean
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%doc AUTHORS COPYING README
%changelog
#####################################################
# File Name: sflphone-common.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-common
License: GNU General Public License (GPL)
Group: System Environment/Daemons
Summary: SIP and IAX2 compatible softphone - Core
Version: VERSION
Release: mandriva
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-common.tar.gz
BuildRequires: glibc-devel
BuildRequires: libccrtp-devel
BuildRequires: libsamplerate-devel
BuildRequires: libdbus-1-devel
BuildRequires: libexpat-devel
BuildRequires: libgsm-devel
BuildRequires: speex-devel
BuildRequires: libcppunit-devel
BuildRequires: libcommoncpp-devel
BuildRequires: libalsa2-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libext2fs-devel
Requires: libsamplerate
Requires: libexpat1
Requires: commoncpp2
Requires: libgsm1
Requires: libspeex
Requires: dbus-1
Requires: libasound2
Requires: libpulse0
Requires: libccrtp1
Conflicts: sflphone
Prefix: %{_prefix}
%description
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%prep
%setup -q
%build
cd libs/pjproject
./autogen.sh
./configure --prefix=%{_prefix}
make dep
make clean
make
cd -
./autogen.sh
./configure --prefix=%{_prefix}
make -j
%install
cd libs/pjproject
make DESTDIR=%{buildroot} install
cd -
make DESTDIR=%{buildroot} install
%clean
cd libs/pjproject
make clean
cd -
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%exclude %{_prefix}/include
%doc AUTHORS COPYING README TODO
%changelog
#!/bin/bash
#####################################################
# File Name: build-packages-opensuse.sh
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-09-11 11:22:27 -0400
#####################################################
. ../globals
cd ${OPENSUSE_DIR}
if [ "$?" -ne "0" ]; then
echo " !! Cannot cd to openSUSE directory"
exit -1
fi
echo "Do updates"
sudo /usr/bin/zypper -n update --auto-agree-with-licenses >/dev/null
# create build directories
echo "Create directories"
mkdir -p ${BUILD_DIR}/BUILD
mkdir -p ${RPM_RESULT_DIR}
mkdir -p ${BUILD_DIR}/SOURCES
mkdir -p ${BUILD_DIR}/SPECS
# create rpm macros
echo "Create RPM macros"
cat > ~/.rpmmacros << STOP
%packager Julien Bonjean (julien.bonjean@savoirfairelinux.com)
%distribution Savoir-faire Linux
%vendor Savoir-faire Linux
%_signature gpg
%_gpg_name Julien Bonjean
%_topdir ${BUILD_DIR}
%_builddir %{_topdir}/BUILD
%_rpmdir ${RPM_RESULT_DIR}
%_sourcedir %{_topdir}/SOURCES
%_specdir %{_topdir}/SPECS
%_srcrpmdir ${RPM_RESULT_DIR}
STOP
# create packages
for PACKAGE in ${PACKAGES[@]}
do
echo "Prepare ${PACKAGE}"
cd ${REPOSITORY_DIR}
echo " -> create source archive"
mv ${PACKAGE} ${PACKAGE}-${VERSION} 2>/dev/null && \
tar cf ${PACKAGE}.tar.gz ${PACKAGE}-${VERSION} >/dev/null && \
mv ${PACKAGE}-${VERSION} ${PACKAGE}
if [ "$?" -ne "0" ]; then
echo "!! Cannot create source archive"
exit -1
fi
echo " -> move archive to source directory"
mv ${PACKAGE}.tar.gz ${BUILD_DIR}/SOURCES
if [ "$?" -ne "0" ]; then
echo "!! Cannot move archive"
exit -1
fi
cd ${PACKAGING_DIR}
echo " -> update spec file"
sed "s/VERSION/${VERSION}/g" opensuse/${PACKAGE}.spec > ${BUILD_DIR}/SPECS/${PACKAGE}.spec
if [ "$?" -ne "0" ]; then
echo "!! Cannot update spec file"
exit -1
fi
done
# launch build
echo "Launch build"
rpmbuild -ba ${BUILD_DIR}/SPECS/*.spec
if [ "$?" -ne "0" ]; then
echo "!! Cannot build packages"
exit -1
fi
#####################################################
# File Name: sflphone-client-gnome.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-client-gnome
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: GNOME client for SFLphone
Version: VERSION
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-client-gnome.tar.gz
BuildRequires: liblog4c-devel
BuildRequires: gtk2-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: libnotify-devel
BuildRequires: libsexy-devel
BuildRequires: evolution-data-server-devel
BuildRequires: check-devel
Requires: sflphone-common = %{version}
Requires: dbus-1-glib
Requires: gtk2
Requires: glib2
Requires: dbus-1-glib
Requires: libnotify
Requires: librsvg
Requires: liblog4c3
Requires: libsexy
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a GNOME client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
./autogen.sh
./configure --prefix=%{_prefix}
make -j
%install
make DESTDIR=%{buildroot} install
%clean
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%doc AUTHORS COPYING README
%changelog
#####################################################
# File Name: sflphone-client-kde.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-client-kde
License: GNU General Public License (GPL)
Group: Productivity/Networking/System
Summary: KDE client for SFLphone
Version: VERSION
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-client-kde.tar.gz
Requires: sflphone-common = %{version}
Requires: commoncpp2
Requires: libkdepimlibs4
Requires: libqt4-dbus-1
Requires: libqt4-svg
Requires: libqt4-x11
BuildRequires: cmake
BuildRequires: libkdepimlibs4-devel
BuildRequires: commoncpp2-devel
BuildRequires: libqt4-devel >= 4.3
BuildRequires: gettext-tools
Conflicts: sflphone
Prefix: %{_prefix}
%description
Provide a KDE client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%lang_package
%prep
%setup -q
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make
%install
make DESTDIR=%{buildroot} install
%clean
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%doc AUTHORS COPYING README
%changelog
#####################################################
# File Name: sflphone-common.spec
#
# Purpose :
#
# Author: Julien Bonjean (julien@bonjean.info)
#
# Creation Date: 2009-05-27
# Last Modified: 2009-05-27 17:23:32 -0400
#####################################################
Name: sflphone-common
License: GNU General Public License (GPL)
Group: System Environment/Daemons
Summary: SIP and IAX2 compatible softphone - Core
Version: VERSION
Release: opensuse
URL: http://www.sflphone.org/
Vendor: Savoir-faire Linux
Packager: Julien Bonjean <julien.bonjean@savoirfairelinux.com>
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: sflphone-common.tar.gz
BuildRequires: libpulse-devel
BuildRequires: commoncpp2-devel
BuildRequires: libccrtp-devel
BuildRequires: libsamplerate-devel
BuildRequires: dbus-1-devel
BuildRequires: libexpat-devel
BuildRequires: libgsm-devel
BuildRequires: speex-devel
BuildRequires: libcppunit-devel
BuildRequires: alsa-devel
BuildRequires: libuuid-devel
Requires: libsamplerate
Requires: libexpat1
Requires: commoncpp2
Requires: libgsm1
Requires: libspeex
Requires: dbus-1
Requires: libasound2
Requires: libpulse0
Requires: libccrtp1
Conflicts: sflphone
Prefix: %{_prefix}
%description
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Authors:
--------
Julien Bonjean <julien.bonjean@savoirfairelinux.com>
%prep
%setup -q
%build
cd libs/pjproject
./autogen.sh
./configure --prefix=%{_prefix}
make dep
make clean
make
cd -
./autogen.sh
./configure --prefix=%{_prefix}
make -j
%install
cd libs/pjproject
make DESTDIR=%{buildroot} install
cd -
make DESTDIR=%{buildroot} install
%clean
cd libs/pjproject
make clean
cd -
make clean
%files
%defattr(-, root, root)
%{_prefix}/*
%exclude %{_prefix}/include
%doc AUTHORS COPYING README TODO
%changelog
#!/bin/bash
#
# @author: Yun Liu <yun.liu@savoirfairelinux.com>, Julien Bonjean <julien.bonjean@savoirfairelinux.com>
#
# Refer to http://www.sflphone.org for futher information
#
. ../globals
cd ${UBUNTU_DIR}
if [ "$?" -ne "0" ]; then
echo " !! Cannot cd to Ubuntu directory"
exit -1
fi
PACKAGE_SYSVER="0ubuntu1"
FULL_VERSION="${VERSION}-${PACKAGE_SYSVER}"
#########################
# BEGIN
#########################
DIST="${OS_VERSION}"
if [ ${RELEASE_MODE} ]; then
if [ "${RELEASE_MODE}" != "release" ]; then
DIST="${DIST}-testing"
fi
else
DIST="${DIST}-daily"
fi
echo "Do updates and dependencies build"
sudo apt-get update >/dev/null
sudo apt-get upgrade -y >/dev/null
sudo apt-get build-dep sflphone-common >/dev/null
sudo apt-get build-dep sflphone-client-gnome >/dev/null
sudo apt-get build-dep sflphone-client-kde >/dev/null
for PACKAGE in ${PACKAGES[@]}
do
echo "Process ${PACKAGE}"
echo " -> prepare debian directories"
mv ${UBUNTU_DIR}/debian-${PACKAGE} ${REPOSITORY_DIR}/${PACKAGE}/debian
# generate the changelog
echo " -> generate changelog"
sed -i 's/SYSTEM/'${OS_VERSION}'/g' ${REPOSITORY_DIR}/${PACKAGE}/debian/changelog && \
sed -i 's/SYSVER/'${PACKAGE_SYSVER}'/g' ${REPOSITORY_DIR}/${PACKAGE}/debian/changelog
if [ "$?" -ne "0" ]; then
echo "!! Cannot generate changelog"
exit -1
fi
# copy the appropriate control file based on architecture
echo " -> generate control file"
if [ ! -e ${REPOSITORY_DIR}/${PACKAGE}/debian/control.$OS_VERSION ];then
echo " -> no control file, skipping"
continue
fi
cp ${REPOSITORY_DIR}/${PACKAGE}/debian/control.$OS_VERSION ${REPOSITORY_DIR}/${PACKAGE}/debian/control && \
sed -i "s/VERSION/${FULL_VERSION}/g" ${REPOSITORY_DIR}/${PACKAGE}/debian/control
if [ "$?" -ne "0" ]; then
echo "!! Cannot generate control file"
exit -1
fi
# provide prerequisite directories used by debuild
echo " -> prepare directories"
cp -r ${REPOSITORY_DIR}/${PACKAGE} ${REPOSITORY_DIR}/${PACKAGE}-${FULL_VERSION}.orig && \
mv ${REPOSITORY_DIR}/${PACKAGE} ${REPOSITORY_DIR}/${PACKAGE}-${FULL_VERSION}
# build package sflphone-common
cd ${REPOSITORY_DIR}/${PACKAGE}-${FULL_VERSION}/debian && \
debuild -us -uc
if [ "$?" -ne "0" ]; then
echo "!! Cannot generate package ${PACKAGE}"
exit -1
fi
done
# move to dist
echo "Deploy files in dist directories"
BINARY_DIR=""
if [ "${ARCH_FLAG}" -eq "32" ]; then
BINARY_DIR="binary-i386"
else
BINARY_DIR="binary-amd64"
fi
mkdir -p ${DEB_RESULT_DIR}/${DIST}/universe/source
mkdir -p ${DEB_RESULT_DIR}/${DIST}/universe/${BINARY_DIR}
mv ${REPOSITORY_DIR}/sflphone*.deb ${DEB_RESULT_DIR}/${DIST}/universe/${BINARY_DIR} && \
mv ${REPOSITORY_DIR}/sflphone*.dsc ${DEB_RESULT_DIR}/${DIST}/universe/source/ && \
mv ${REPOSITORY_DIR}/sflphone*.build ${DEB_RESULT_DIR}/${DIST}/universe/source/ && \
mv ${REPOSITORY_DIR}/sflphone*.changes ${DEB_RESULT_DIR}/${DIST}/universe/source/ && \
mv ${REPOSITORY_DIR}/sflphone*.orig.tar.gz ${DEB_RESULT_DIR}/${DIST}/universe/source/ && \
mv ${REPOSITORY_DIR}/sflphone*.diff.gz ${DEB_RESULT_DIR}/${DIST}/universe/source/
if [ "$?" -ne "0" ]; then
echo "!! Cannot copy dist files"
exit -1
fi
Source: sflphone-client-gnome
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), libgcc1, autoconf, automake, libtool, libgtk2.0-dev, libsexy-dev, libdbus-glib-1-dev, libnotify-dev, libebook1.2-dev, check, liblog4c-dev
Standards-Version: 3.7.3
Package: sflphone-client-gnome
Priority: optional
Architecture: any
Depends: sflphone-common (=VERSION), libdbus-glib-1-2 (>= 0.73), libgtk2.0-0 , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0), libdbus-glib-1-2, libnotify1 (>= 0.4), libsexy2 (>= 0.1), librsvg2-common (>=2.22.2), liblog4c3
Replaces: sflphone
Conflicts: sflphone
Homepage: http://www.sflphone.org
Description: GNOME client for SFLphone
Provide a GNOME client to SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Source: sflphone-client-gnome
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), libgcc1, autoconf, libtool, libgtk2.0-dev, libsexy-dev, libdbus-glib-1-dev, libnotify-dev, libebook1.2-dev, check, liblog4c-dev
Standards-Version: 3.8.0
Package: sflphone-client-gnome
Priority: optional
Architecture: any
Depends: sflphone-common (=VERSION), libdbus-glib-1-2 (>= 0.73), libgtk2.0-0 , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0), libdbus-glib-1-2, libnotify1 (>= 0.4), libsexy2 (>= 0.1), librsvg2-common (>= 2.22.2), liblog4c3
Replaces: sflphone
Conflicts: sflphone
Homepage: http://www.sflphone.org
Description: GNOME client for SFLphone
Provide a GNOME client to SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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.
Source: sflphone-client-gnome
Maintainer: SavoirFaireLinux Inc <emmanuel.milou@savoirfairelinux.com>
Section: gnome
Priority: optional
Build-Depends: debhelper (>= 5), libgcc1, autoconf, automake, libtool, libgtk2.0-dev (>=2.16), libdbus-glib-1-dev, libnotify-dev, libebook1.2-dev, check, liblog4c-dev, libgnomeui-dev
Standards-Version: 3.7.3
Package: sflphone-client-gnome
Priority: optional
Architecture: any
Depends: sflphone-common (=VERSION), libdbus-glib-1-2 (>= 0.73), libgtk2.0-0 (>=2.16) , libc6 (>= 2.3.6-6) , libglib2.0-0 (>= 2.12.0) ,libdbus-glib-1-2, libnotify1 (>= 0.4), librsvg2-common (>=2.22.2), liblog4c3
Replaces: sflphone
Conflicts: sflphone
Homepage: http://www.sflphone.org
Description: GNOME client for SFLphone
Provide a GNOME client for SFLphone.
SFLphone is meant to be a robust enterprise-class desktop phone.
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 Emmanuel Milou <emmanuel.milou@savoirfairelinux.com> on
Fri, 3 Apr 2009 09:47:53 -0500.
It was downloaded from the git repository of SFLphone: git://sflphone.org/git/sflphone.git
Upstream Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Copyright:
Savoir-Faire Linux Inc.
License:
This software is copyright (c) 2004-2009 Savoir-Faire Linux inc.
You are free to distribute this software under the terms of
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'.
This program 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
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/share/applications
usr/share/pixmaps
usr/share/sflphone
usr/share/locale
usr/share/doc
usr/share/man
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment