From: Devan Carpenter Date: Fri, 3 Jan 2020 16:01:36 +0000 (+0100) Subject: add build/install script for Debian 10 to contrib X-Git-Tag: v0.12.2~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9b33cb121ded68247bc7a9388bf41e46063cd812;p=oweals%2Fgnunet.git add build/install script for Debian 10 to contrib --- diff --git a/contrib/scripts/build-install-gnunet-debian10.sh b/contrib/scripts/build-install-gnunet-debian10.sh new file mode 100755 index 000000000..863ed5e2d --- /dev/null +++ b/contrib/scripts/build-install-gnunet-debian10.sh @@ -0,0 +1,38 @@ +#!/bin/sh +set -exo +set -u pipefail + +if test -z "$USER" = "root"; then + export SUDO_CMD="" +else + SUDO_CMD="sudo" +fi + +$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 \ +libsqlite3-dev openssl libnss3-tools libopus-dev libpulse-dev libogg-dev + +mkdir ~/gnunet_installation || true + +cd ~/gnunet_installation + +git clone --depth 1 https://gnunet.org/git/gnunet.git || true + +cd ~/gnunet_installation/gnunet + +./bootstrap + +export GNUNET_PREFIX=/usr/local +export CFLAGS="-g -Wall -O0" + +./configure --prefix=$GNUNET_PREFIX --enable-logging=verbose --disable-documentation + +$SUDO_CMD addgroup gnunet || true + +$SUDO_CMD usermod -aG gnunet $USER || true + +make -j$(nproc || echo -n 1) + +$SUDO_CMD make install