-@IF [ ! -z "$M_authoritative$M_all" ]
+@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 mv pdns*.deb /dist; mv pdns*.ddeb /dist || true
@ENDIF
-@IF [ ! -z "$M_recursor$M_all" ]
+@IF [ ! -z "$M_recursor" ]
RUN builder/helpers/build-debs.sh pdns-recursor-${BUILDER_VERSION}
RUN mv pdns-recursor*.deb /dist; mv pdns-recursor*.ddeb /dist || true
@ENDIF
-@IF [ ! -z "$M_dnsdist$M_all" ]
+@IF [ ! -z "$M_dnsdist" ]
RUN builder/helpers/build-debs.sh dnsdist-${BUILDER_VERSION}
RUN mv dnsdist*.deb /dist; mv dnsdist*.ddeb /dist || true
ADD builder-support/specs/ /pdns/builder-support/specs
RUN find /pdns/builder-support/specs/ -not -name '*.spec' -exec ln -s {} /root/rpmbuild/SOURCES/ \;
-@IF [ ! -z "$M_authoritative$M_all" ]
+@IF [ ! -z "$M_authoritative" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
scl enable devtoolset-7 -- builder/helpers/build-specs.sh builder-support/specs/pdns.spec; \
else \
fi
@ENDIF
-@IF [ ! -z "$M_recursor$M_all" ]
+@IF [ ! -z "$M_recursor" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
scl enable devtoolset-7 -- builder/helpers/build-specs.sh builder-support/specs/pdns-recursor.spec; \
else \
fi
@ENDIF
-@IF [ ! -z "$M_dnsdist$M_all" ]
+@IF [ ! -z "$M_dnsdist" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
true ; \
else \
-@IF [ ! -z "$M_authoritative$M_all" ]
+@IF [ ! -z "$M_authoritative" ]
@INCLUDE Dockerfile.authoritative
@ENDIF
-@IF [ ! -z "$M_recursor$M_all" ]
+@IF [ ! -z "$M_recursor" ]
@INCLUDE Dockerfile.recursor
@ENDIF
-@IF [ ! -z "$M_dnsdist$M_all" ]
+@IF [ ! -z "$M_dnsdist" ]
@INCLUDE Dockerfile.dnsdist
@ENDIF
FROM alpine:3.10 as sdist
ARG BUILDER_CACHE_BUSTER=
-@IF [ -z "$M_all$M_authoritative$M_recursor$M_dnsdist"]
-RUN echo "no valid modules specified!" ; exit 1
+@IF [ -z "$M_authoritative$M_recursor$M_dnsdist"]
+RUN echo "no valid module specified! - please pick just one using -m {authoritative|recursor|dnsdist}" ; exit 1
@ENDIF
@IF [ ! -z "$M_authoritative$M_all" ]