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

update debian build package script

Fetch the code through http anonymous access
Use the control/changelog according the shell value retrieved
Sign the packages always with the same key
parent 72e2813e
No related branches found
No related tags found
No related merge requests found
...@@ -15,41 +15,42 @@ if [ -d "sflphone" ]; then ...@@ -15,41 +15,42 @@ if [ -d "sflphone" ]; then
exit 1 exit 1
fi fi
git clone git+ssh://repos-sflphone-git@sflphone.org/~/sflphone.git # Anonymous git http access
git clone http://sflphone.org/git/sflphone.git
# Get system parameters # Get system parameters
arch_flag=`getconf -a|grep LONG_BIT | sed -e 's/LONG_BIT\s*//'` arch_flag=`getconf -a|grep LONG_BIT | sed -e 's/LONG_BIT\s*//'`
os_version=`lsb_release -d -s -c | sed -e '1d'` os_version=`lsb_release -d -s -c | sed -e '1d'`
# If intrepid(Ubuntu8.10), then use appropriate changelog file # If intrepid(Ubuntu8.10), then use appropriate changelog file
if [ $os_version == "intrepid" ];then cp sflphone/debian/changelog..$os_version sflphone/debian/changelog
cp sflphone/debian/changelog.intrepid sflphone/debian/changelog #if [ $os_version == "intrepid" ];then
else # cp sflphone/debian/changelog.intrepid sflphone/debian/changelog
cp sflphone/debian/changelog.hardy sflphone/debian/changelog #else
fi # cp sflphone/debian/changelog.hardy sflphone/debian/changelog
#fi
# Remove useless git directory # Remove useless git directory
rm sflphone/.git/ -rf rm sflphone/.git/ -rf
# Copy the appropriate control file based on different archtecture # Copy the appropriate control file based on different archtecture
if [ $arch_flag -eq 32 ] && [ $os_version == "intrepid" ];then if [ $arch_flag -eq 32 ];then
cp sflphone/debian/control.intrepid.i386 sflphone/debian/control cp sflphone/debian/control..$os_version..i386 sflphone/debian/control
elif [ $arch_flag -eq 64 ] && [ $os_version == "intrepid" ];then elif [ $arch_flag -eq 64 ];then
cp sflphone/debian/control.intrepid.amd64 sflphone/debian/control cp sflphone/debian/control..$os_version..amd64 sflphone/debian/control
elif [ $arch_flag -eq 32 ] && [ $os_version == "hardy" ];then
cp sflphone/debian/control.hardy.i386 sflphone/debian/control
else
cp sflphone/debian/control.hardy.amd64 sflphone/debian/control
fi fi
echo "Building sflphone package on Ubuntu $os_version $arch_flag bit archetecture...." echo "Building sflphone package on Ubuntu $os_version $arch_flag bit architecture...."
# Provide prerequisite directories used by debuild # Provide prerequisite directories used by debuild
cp sflphone sflphone-0.9.2 -r cp sflphone sflphone-0.9.2 -r
cp sflphone sflphone-0.9.2.orig -r cp sflphone sflphone-0.9.2.orig -r
# Get the public gpg key to sign the packages
wget -q http://www.sflphone.org/downloads/gpg/sflphone.gpg.asc -O- | gpg --import -
# Build packages # Build packages
cd sflphone-0.9.2/debian; debuild cd sflphone-0.9.2/debian; debuild --username "Savoir-Faire Linux Inc."
# Clean # Clean
rm sflphone-0.9.2/ -rf rm sflphone-0.9.2/ -rf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment