Advertisement
Guest User

Cal Leeming

a guest
Jun 26th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.25 KB | None | 0 0
  1. foxx@dev1 ~ $ sudo debootstrap wheezy wheezy http://ftp.uk.debian.org/debian/
  2. foxx@dev1 ~ $ sudo mount -t proc proc wheezy/proc/
  3. foxx@dev1 ~ $ sudo mount -t sysfs sys wheezy/sys
  4. foxx@dev1 ~ $ sudo mount -o bind /dev wheezy/dev
  5. foxx@dev1 ~ $ sudo chroot wheezy/
  6.  
  7. # lol for some reason devscripts insisted on installing exim4.. wtf? lol.
  8. root@dev1:~# apt-get install git build-essential g++ cpp make automake flex bison locales-all devscripts
  9. root@dev1:~# git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git
  10.  
  11. root@dev1:~/freeswitch# DISTRO=`lsb_release -cs`
  12. root@dev1:~/freeswitch# DCH_DISTRO=stable
  13. root@dev1:~/freeswitch# FS_VERSION="$(cat build/next-release.txt | sed -e 's/-/~/g')~n$(date +%Y%m%dT%H%M%SZ)-1~${DISTRO}+1"
  14. root@dev1:~/freeswitch# echo $FS_VERSION
  15. 1.2.11~n20130626T195851Z-1~+1
  16. root@dev1:~/freeswitch# echo $DISTRO
  17. wheezy
  18. root@dev1:~/freeswitch# build/set-fs-version.sh $FS_VERSION
  19. root@dev1:~/freeswitch# dch -b -m -v "$FS_VERSION" --force-distribution -D "$DCH_DISTRO" "Custom build."
  20. root@dev1:~/freeswitch# (cd debian; ./bootstrap.sh -c ${DISTRO})
  21. Bootstrapping debian/ for wheezy
  22. --- snip ---
  23. Done bootstrapping debian/
  24. root@dev1:~/freeswitch# mk-build-deps -i debian/control
  25. root@dev1:~/freeswitch# dpkg-buildpackage -b -uc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement