From f484abd4476cb50345d516d7ae02fd96573ee56e Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 23 Sep 2024 11:21:13 +0200 Subject: [PATCH] Do not include a stray pdns dir in the recursor artifacts This is caused by pdns-recursor matching pdns*, which is intended to select auth files only. Not terribly happy with the code duplication, but we would end up in quoting hell otherwise. --- builder-support/post-build | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/builder-support/post-build b/builder-support/post-build index 9e7a9c64b2..b2bc088315 100755 --- a/builder-support/post-build +++ b/builder-support/post-build @@ -17,15 +17,20 @@ if ! $tar --version | grep -q GNU; then exit 1 fi -for prog in pdns-recursor dnsdist pdns; do +for prog in pdns-recursor dnsdist; 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 +prog=pdns +if [ $(find ${SRCDIR}/dist -name 'pdns*' -a ! -name 'pdns-recursor*' 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} + tardirname=${prog}-${BUILDER_VERSION}-${BUILDER_TARGET} + "$tar" -cjf ${dst}/${tardirname}.tar.bz2 --transform="s,.*/,${tardirname}/,g" $(find ${SRCDIR} -type f) +fi -- 2.47.2