From fd76a39ef45e789d6d9cbb4424cd4c803d9d163c Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 23 Nov 2020 11:00:55 +0100 Subject: [PATCH] generate-repo-files: add raspbian support --- build-scripts/docker/generate-repo-files.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build-scripts/docker/generate-repo-files.sh b/build-scripts/docker/generate-repo-files.sh index f19f7512db..492ee2f03a 100755 --- a/build-scripts/docker/generate-repo-files.sh +++ b/build-scripts/docker/generate-repo-files.sh @@ -87,8 +87,16 @@ write_debian_or_ubuntu() PKG=$3 CMD=$4 + ARCHSTRING='[arch=amd64]' + + OSIMG=$OS + if [ "$OS" = "raspbian" ]; then + OSIMG=resin/rpi-raspbian + ARCHSTRING='' + fi + cat < pdns.list.$RELEASE.$OS-$VERSION -deb [arch=amd64] http://repo.powerdns.com/$OS $VERSION-$RELEASE main +deb $ARCHSTRING http://repo.powerdns.com/$OS $VERSION-$RELEASE main EOF # For the following two maybe only create depending on package, but @@ -109,7 +117,7 @@ Pin-Priority: 600 EOF cat < Dockerfile.$RELEASE.$OS-$VERSION -FROM $OS:$VERSION +FROM $OSIMG:$VERSION RUN apt-get update RUN apt-get install -y curl gnupg dnsutils apt-transport-https @@ -141,6 +149,7 @@ EOF write_debian() { write_debian_or_ubuntu debian $1 $2 $3 + write_debian_or_ubuntu raspbian $1 $2 $3 } -- 2.47.2