Browse Source

Update trusty build script

- Move Build-Depends dh-autoreconf dh-systemd to debian/control
- Also change debian/compat to 9 (debhelper 9)
pull/1379/head
Roger Shimizu 8 years ago
committed by Max Lv
parent
commit
4c0f33e33d
1 changed files with 4 additions and 3 deletions
  1. 7
      scripts/deb4trusty.sh

7
scripts/deb4trusty.sh

@ -6,7 +6,7 @@
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
DEPS="git-buildpackage equivs dh-autoreconf dh-systemd"
DEPS="git-buildpackage equivs"
sudo apt-get install -y $DEPS
gbp_build() {
@ -55,8 +55,9 @@ sudo dpkg -i libsodium*.deb
gbp clone --pristine-tar https://anonscm.debian.org/git/collab-maint/shadowsocks-libev.git
# Add patch to work with ubuntu trusty (14.04)
cd shadowsocks-libev
sed -i s/--with\ systemd/--with\ systemd\ --with\ autoreconf/ debian/rules
sed -i s/debhelper\ \(\>=\ 10\)/debhelper\ \(\>=\ 9\)/ debian/control
sed -i 's/dh $@/dh $@ --with systemd,autoreconf/' debian/rules
sed -i 's/debhelper (>= 10)/debhelper (>= 9), dh-systemd, dh-autoreconf/' debian/control
echo 9 > debian/compat
git add -u
git commit -m "Patch to work with ubuntu trusty (14.04)"
cd -

Loading…
Cancel
Save