Skip to content

Commit

Permalink
Update build_deb.sh to add libbloom support
Browse files Browse the repository at this point in the history
Also includes fixes for yakkety.
  • Loading branch information
rogers0 authored and madeye committed Feb 24, 2017
1 parent 997ac83 commit 12c4344
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions scripts/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ build_install_libsodium() {
sudo dpkg -i libsodium*.deb
}

# Build libbloom deb
build_install_libbloom() {
BRANCH=$1
gbp_build https://github.com/rogers0/libbloom $BRANCH
sudo dpkg -i libbloom-dev_*.deb libbloom1_*.deb
}

# Add patch to work on system with debhelper 9 only
patch_sslibev_dh9() {
gbp clone --pristine-tar https://anonscm.debian.org/git/collab-maint/shadowsocks-libev.git
Expand All @@ -116,7 +123,8 @@ patch_sslibev_dh9() {

# Build and install shadowsocks-libev deb
build_install_sslibev() {
gbp_build https://anonscm.debian.org/git/collab-maint/shadowsocks-libev.git master
BRANCH=$1
gbp_build https://anonscm.debian.org/git/collab-maint/shadowsocks-libev.git $BRANCH
sudo dpkg -i shadowsocks-libev_*.deb
sudo apt-get install -fy
}
Expand All @@ -140,12 +148,14 @@ wheezy|precise)
;;
jessie)
apt_init "git-buildpackage equivs" "debhelper libsodium-dev"
build_install_sslibev
build_install_libbloom exp1
build_install_sslibev exp1
apt_clean
;;
stretch|unstable|sid|yakkety)
stretch|unstable|sid)
apt_init "git-buildpackage equivs"
build_install_sslibev
build_install_libbloom exp1
build_install_sslibev exp1
apt_clean
;;
trusty)
Expand All @@ -154,15 +164,25 @@ trusty)
build_install_libcorkipset trusty
build_install_libmbedtls
build_install_libsodium
build_install_libbloom exp1_trusty
patch_sslibev_dh9
build_install_sslibev
build_install_sslibev exp1
apt_clean
;;
xenial)
apt_init "git-buildpackage equivs" debhelper
build_install_libcork debian
build_install_libcorkipset debian
build_install_sslibev
build_install_libbloom exp1
build_install_sslibev exp1
apt_clean
;;
yakkety)
apt_init "git-buildpackage equivs"
build_install_libcork debian
build_install_libcorkipset debian
build_install_libbloom exp1
build_install_sslibev exp1
apt_clean
;;
*)
Expand Down

0 comments on commit 12c4344

Please sign in to comment.