*.gcov
modules/geoipbackend/regression-tests/GeoLiteCity.dat
modules/geoipbackend/regression-tests/GeoLiteCity.mmdb
+built_pkgs
-Subproject commit 620e8e74032009c7044da7a1eb45c248fd89c778
+Subproject commit 5181becf38d564399e6ffaa8d041b123d8418f8c
-@IF [ ! -z "$M_authoritative" ]
+@IF [ ! -z "$M_authoritative$M_all" ]
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
@ENDIF
-@IF [ ! -z "$M_recursor" ]
+@IF [ ! -z "$M_recursor$M_all" ]
RUN builder/helpers/build-debs.sh pdns-recursor-${BUILDER_VERSION}
RUN mv pdns-recursor*.deb /dist
@ENDIF
-@IF [ ! -z "$M_dnsdist" ]
+@IF [ ! -z "$M_dnsdist$M_all" ]
RUN builder/helpers/build-debs.sh dnsdist-${BUILDER_VERSION}
RUN mv dnsdist*.deb /dist
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" ]
+@IF [ ! -z "$M_authoritative$M_all" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
scl enable devtoolset-3 -- builder/helpers/build-specs.sh builder-support/specs/pdns.spec; \
else \
fi
@ENDIF
-@IF [ ! -z "$M_recursor" ]
+@IF [ ! -z "$M_recursor$M_all" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
scl enable devtoolset-3 -- builder/helpers/build-specs.sh builder-support/specs/pdns-recursor.spec; \
else \
fi
@ENDIF
-@IF [ ! -z "$M_dnsdist" ]
+@IF [ ! -z "$M_dnsdist$M_all" ]
RUN if $(grep -q 'release 6' /etc/redhat-release); then \
scl enable devtoolset-3 -- builder/helpers/build-specs.sh builder-support/specs/dnsdist.spec; \
else \
-@IF [ ! -z "$M_authoritative" ]
+@IF [ ! -z "$M_authoritative$M_all" ]
@INCLUDE Dockerfile.authoritative
@ENDIF
-@IF [ ! -z "$M_recursor" ]
+@IF [ ! -z "$M_recursor$M_all" ]
@INCLUDE Dockerfile.recursor
@ENDIF
-@IF [ ! -z "$M_dnsdist" ]
+@IF [ ! -z "$M_dnsdist$M_all" ]
@INCLUDE Dockerfile.dnsdist
@ENDIF
FROM alpine:3.6 as sdist
-@IF [ ! -z "$M_authoritative" ]
+@IF [ ! -z "$M_authoritative$M_all" ]
COPY --from=pdns-authoritative /sdist/ /sdist/
@ENDIF
-@IF [ ! -z "$M_recursor" ]
+@IF [ ! -z "$M_recursor$M_all" ]
COPY --from=pdns-recursor /sdist/ /sdist/
@ENDIF
-@IF [ ! -z "$M_dnsdist" ]
+@IF [ ! -z "$M_dnsdist$M_all" ]
COPY --from=dnsdist /sdist/ /sdist/
@ENDIF
--- /dev/null
+#!/bin/bash
+
+SRCDIR="${BUILDER_TMP}/${BUILDER_VERSION}/${BUILDER_TARGET}"
+DESTDIR="built_pkgs/"
+
+mkdir -p ${DESTDIR}
+
+for prog in pdns-recursor dnsdist pdns; do
+ if [ $(find ${SRCDIR}/dist -name "${prog}*" 2>/dev/null | wc -l) -ne 0 ]; then
+ dst=${DESTDIR}/${prog}/${BUILDER_VERSION}
+ mkdir -p ${dst}
+ cp ${BUILDER_TMP}/${BUILDER_VERSION}/sdist/${prog}*.tar.bz2 ${dst}
+ if [ "${prog}" = "pdns" ]; then
+ rm -f ${dst}/pdns-recursor*
+ fi
+ tardirname=${prog}-${BUILDER_VERSION}-${BUILDER_TARGET}
+ tar -cjf ${dst}/${tardirname}.tar.bz2 --transform="s,.*/,${tardirname}/,g" $(find ${SRCDIR} -type f)
+ fi
+done