From 15a54beb8ce56f8228d1035d287bd3bdea59a2c4 Mon Sep 17 00:00:00 2001 From: Roger Shimizu Date: Fri, 28 Jul 2017 20:58:44 +0900 Subject: [PATCH] Minor fix for build_deb.sh script - Install libbloom-dev in backports repository. - Clone libsodium git under "libsodium" directory. - Change to a safer way to check debhelper version. - Remove simple-obfs for jessie/stretch because it's just accepted to backports repository. --- scripts/build_deb.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/build_deb.sh b/scripts/build_deb.sh index c4e37cb2..1feae61b 100755 --- a/scripts/build_deb.sh +++ b/scripts/build_deb.sh @@ -191,11 +191,11 @@ fi build_install_libsodium() { if [ $BUILD_LIB -eq 1 -o $BUILD_BIN -eq 1 ]; then if [ $BUILD_LIB -eq 1 ]; then - git clone https://github.com/gcsideal/debian-libsodium.git $BRANCH - cd debian-libsodium; LIBSODIUM=$(dpkg-parsechangelog --show-field Version); cd - + git clone https://github.com/gcsideal/debian-libsodium.git libsodium + cd libsodium; LIBSODIUM=$(dpkg-parsechangelog --show-field Version); cd - dget -ud http://deb.debian.org/debian/pool/main/libs/libsodium/libsodium_${LIBSODIUM}.dsc - DHVER=$(dpkg -l|grep debhelper|grep -v dh-|awk '{print $3}'|head -n1) - cd debian-libsodium; + DHVER=$(dpkg -l debhelper|grep debhelper|awk '{print $3}'|head -n1) + cd libsodium if dpkg --compare-versions $DHVER lt 10; then sed -i 's/debhelper ( >= 10)/debhelper (>= 9), dh-autoreconf/' debian/control; echo 9 > debian/compat; @@ -393,9 +393,12 @@ esac case "$OSVER" in jessie) - BPO="debhelper libsodium-dev" + BPO="debhelper libbloom-dev" BPOEXTRA=sloppy ;; +stretch) + BPO=libbloom-dev + ;; xenial) BPO=debhelper ;; @@ -442,7 +445,6 @@ buster|testing|unstable|sid) jessie|stretch) build_install_libsodium build_install_sslibev - build_install_simpleobfs ;; zesty) build_install_libsodium