From: Remi Gacogne Date: Fri, 7 Mar 2025 16:02:15 +0000 (+0100) Subject: dnsdist: Compress the tarball containing our packages with `xz` X-Git-Tag: dnsdist-2.0.0-alpha1~30^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9220ca0752305c8a04578bee78077901c966cb0e;p=thirdparty%2Fpdns.git dnsdist: Compress the tarball containing our packages with `xz` --- diff --git a/builder-support/post-build b/builder-support/post-build index bd416455df..35917d054a 100755 --- a/builder-support/post-build +++ b/builder-support/post-build @@ -23,14 +23,16 @@ fi for prog in pdns-recursor dnsdist; do if [ $(find ${SRCDIR}/dist -name "${prog}*" 2>/dev/null | wc -l) -ne 0 ]; then extension="tar.bz2" + tar_compression_flag="j" if [ "$prog" = "dnsdist" ]; then extension="tar.xz" + tar_compression_flag="J" fi dst=${DESTDIR}/${prog}/${BUILDER_VERSION} mkdir -p ${dst} cp ${BUILDER_TMP}/${BUILDER_VERSION}/sdist/${prog}*.${extension} ${dst} tardirname=${prog}-${BUILDER_VERSION}-${BUILDER_TARGET} - "$tar" -cjf ${dst}/${tardirname}.tar.bz2 --transform="s,.*/,${tardirname}/,g" $(find ${SRCDIR} -type f) + "$tar" -c${tar_compression_flag}f ${dst}/${tardirname}.${extension} --transform="s,.*/,${tardirname}/,g" $(find ${SRCDIR} -type f) fi done prog=pdns