From 3c54df4d87d3726263572954de6c26a84329181d Mon Sep 17 00:00:00 2001 From: realmax44 <109950727+realmax44@users.noreply.github.com> Date: Tue, 23 Apr 2024 22:15:31 +0200 Subject: [PATCH] Update dietpi-software-build.bash --- .build/software/dietpi-software-build.bash | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.build/software/dietpi-software-build.bash b/.build/software/dietpi-software-build.bash index b29492cb9c..0cf22defac 100644 --- a/.build/software/dietpi-software-build.bash +++ b/.build/software/dietpi-software-build.bash @@ -138,9 +138,40 @@ mkdir -v /output && mv -v /tmp/*.$EXT /output poweroff _EOF_ +########################################## +# bash-script for building unbound-package +########################################## + +UNBOUND_VERSION="1.19.2-1" +DEBIAN_VERSION=$DISTRO +ARCHITECTURE=$ARCH + +if [ -z "$DEBIAN_VERSION" ] || [ -z "$ARCHITECTURE" ]; then + echo "Usage: $0 " + exit 1 +fi + +# install dependencies +G_EXEC sudo apt-get update +G_EXEC sudo apt-get install -y debhelper devscripts + +# clone Unbound source +G_EXEC git clone --branch debian/$UNBOUND_VERSION --depth=1 https://salsa.debian.org/dns-team/unbound.git +G_EXEC cd unbound + +# add new changelog-entry +G_EXEC dch -l "+dietpi" "Neuer DietPi Build für $DEBIAN_VERSION und $ARCHITECTURE." + +# build package for specific architecture +G_EXEC dpkg-buildpackage -us -uc -b -a$ARCHITECTURE + +# move package +G_EXEC mv ../*.deb ~/dietpi-packages/ + ########################################## # Boot container ########################################## systemd-nspawn -bD rootfs [[ -f rootfs/output/${NAME}_$ARCH.$EXT ]] || Error_Exit "Failed to build package: ${NAME}_$ARCH.$EXT" } +