Skip to content

Instantly share code, notes, and snippets.

@prufrock
Created March 28, 2011 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prufrock/890612 to your computer and use it in GitHub Desktop.
Save prufrock/890612 to your computer and use it in GitHub Desktop.
packages installed into a bare ubuntu chroot to build sflphone
#!/bin/sh
package=sflphone_20110328-1_amd64.deb
packageDir=sflphone_20110328-1_amd64
apt-get install libtool autoconf pkg-config libasound2-dev libpulse-dev libsamplerate0-dev libcommoncpp2-dev libccrtp-dev libzrtpcpp-dev libssl-dev libexpat1-dev libpcre3-dev libgsm1-dev libspeex-dev libspeexdsp-dev libyaml-dev
cd /opt/SFLWebService/sflphone-0.9.11/sflphone-common/libs/pjproject
./autogen.sh
./configure
make dep && make
cd /opt/SFLWebService/sflphone-0.9.11/sflphone-common
./autogen.sh
./configure --prefix=/usr
apt-get install checkinstall
checkinstall -D -pakdir sflphone-0.9.11 --install=no
#need to automate checkinstall responses
cd sflphone-0.9.11
mkdir $packageDir
mv $package $packageDir
ar -x $package
mkdir DEBIAN
tar -xvf control.tar.gz
mv conffiles DEBIAN/
mv control DEBIAN/
sed "s/Depends:/Depends: libasound2-dev, libpulse-dev, libsamplerate0-dev, libcommoncpp2-dev, libccrtp-dev, libzrtpcpp-dev, libssl-dev, libexpat1-dev, libpcre3-dev, libgsm1-dev, libspeex-dev, libspeexdsp-dev, libyaml-dev/" DEBIAN/control > DEBIAN/control.new
cat DEBIAN/control.new > DEBIAN/control
rm DEBIAN/control.new
rm control.tar.gz
tar -xvf data.tar.gz
rm data.tar.gz
rm $package
cd ..
dpkg $packageDir
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment