+@IF [ ! -z "$M_authoritative" ]
RUN if $(echo ${BUILDER_VERSION} | grep -q -E '^0\.0\.'); then \
# make sure we don't break dependencies for master releases \
sed -i '/pdns-server (<< .*/d' pdns-${BUILDER_VERSION}/debian/control; \
RUN PDNS_TEST_NO_IPV6=1 builder/helpers/build-debs.sh pdns-${BUILDER_VERSION}
RUN mv pdns*${BUILDER_VERSION}*.deb /dist
+@ENDIF
FROM dist-base as package-builder
ARG APT_URL
-RUN apt-get -y install devscripts dpkg-dev build-essential python3
+RUN apt-get -y install devscripts dpkg-dev build-essential python3 equivs
RUN mkdir /dist /pdns
WORKDIR /pdns
COPY --from=sdist /sdist /sdist
+@IF [ ! -z "$M_authoritative" ]
RUN tar xvf /sdist/pdns-${BUILDER_VERSION}.tar.bz2
+@ENDIF
--- /dev/null
+# First do the source builds
+@INCLUDE Dockerfile.target.sdist
+
+FROM ubuntu:artful as dist-base
+ARG APT_URL
+RUN apt-get update && apt-get -y dist-upgrade
+
+@INCLUDE Dockerfile.debbuild-prepare
+
+ADD builder-support/debian/debian-stretch/ pdns-${BUILDER_VERSION}/debian/
+
+@INCLUDE Dockerfile.debbuild
+
+# Do a test install and verify
+# Can be skipped with skiptests=1 in the environment
+# @EXEC [ "$skiptests" = "" ] && include Dockerfile.debtest