summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDevan Carpenter <git@dvn.me>2020-01-04 00:37:38 +0100
committerDevan Carpenter <git@dvn.me>2020-01-04 00:37:38 +0100
commitdee0d325bf549ab79c019b233648e827eb9ce308 (patch)
tree917985f392896c3edcf05e447a8dde52c9caccc5 /contrib
parent9b33cb121ded68247bc7a9388bf41e46063cd812 (diff)
contrib: update debian 10 build script in
thanks for the patch from anadahz
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/build-install-gnunet-debian10.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/scripts/build-install-gnunet-debian10.sh b/contrib/scripts/build-install-gnunet-debian10.sh
index 863ed5e2d..8ac7ce8bb 100755
--- a/contrib/scripts/build-install-gnunet-debian10.sh
+++ b/contrib/scripts/build-install-gnunet-debian10.sh
@@ -2,13 +2,15 @@
set -exo
set -u pipefail
-if test -z "$USER" = "root"; then
+if [ "$USER" = "root" ]; then
export SUDO_CMD=""
else
SUDO_CMD="sudo"
fi
-$SUDO_CMD apt update && $SUDO_CMD apt install -y git libtool autoconf \
+$SUDO_CMD apt update
+
+$SUDO_CMD apt install -y git libtool autoconf \
autopoint libmicrohttpd-dev build-essential libgcrypt-dev \
libidn11-dev zlib1g-dev libunistring-dev libglpk-dev miniupnpc \
libextractor-dev libjansson-dev libcurl4-gnutls-dev gnutls-bin \
@@ -24,7 +26,7 @@ cd ~/gnunet_installation/gnunet
./bootstrap
-export GNUNET_PREFIX=/usr/local
+export GNUNET_PREFIX=/usr
export CFLAGS="-g -Wall -O0"
./configure --prefix=$GNUNET_PREFIX --enable-logging=verbose --disable-documentation