From: Peter van Dijk Date: Mon, 23 Nov 2020 10:00:55 +0000 (+0100) Subject: generate-repo-files: add raspbian support X-Git-Tag: auth-4.5.0-alpha0~11^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9759%2Fhead;p=thirdparty%2Fpdns.git generate-repo-files: add raspbian support --- 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 }