mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-03 02:32:03 +00:00
BUILD: Generate sha256 checksums in publish-release
Currently only md5 signatures are generated. While md5 still is not broken with regard to preimage attacks, sha256 clearly is the current secure solution. This patch should be backported to all supported branches.
This commit is contained in:
parent
4507351a2f
commit
3ce3811a9c
@ -159,14 +159,15 @@ if [ -z "$AUTO" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Archiving sources for version $NEW ..."
|
echo "Archiving sources for version $NEW ..."
|
||||||
rm -f "${TARGET_DIR}/src${DEVEL}/haproxy-${NEW}.tar.gz"{,.md5}
|
rm -f "${TARGET_DIR}/src${DEVEL}/haproxy-${NEW}.tar.gz"{,.md5,.sha256}
|
||||||
if ! git archive --format=tar --prefix="haproxy-${NEW}/" "v$NEW" | \
|
if ! git archive --format=tar --prefix="haproxy-${NEW}/" "v$NEW" | \
|
||||||
gzip -9 > "${TARGET_DIR}/src${DEVEL}/haproxy-${NEW}.tar.gz"; then
|
gzip -9 > "${TARGET_DIR}/src${DEVEL}/haproxy-${NEW}.tar.gz"; then
|
||||||
die "Failed to produce the tar.gz archive"
|
die "Failed to produce the tar.gz archive"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( cd "$TARGET_DIR/src${DEVEL}" ; \
|
( cd "$TARGET_DIR/src${DEVEL}" ; \
|
||||||
md5sum haproxy-$NEW.tar.gz > haproxy-$NEW.tar.gz.md5 )
|
md5sum haproxy-$NEW.tar.gz > haproxy-$NEW.tar.gz.md5 ; \
|
||||||
|
sha256sum haproxy-$NEW.tar.gz > haproxy-$NEW.tar.gz.sha256 )
|
||||||
|
|
||||||
echo "Extracting doc ..."
|
echo "Extracting doc ..."
|
||||||
git show "v$NEW:CHANGELOG" > "$TARGET_DIR/src/CHANGELOG"
|
git show "v$NEW:CHANGELOG" > "$TARGET_DIR/src/CHANGELOG"
|
||||||
@ -178,6 +179,6 @@ done
|
|||||||
|
|
||||||
echo "Done : ls -l ${TARGET_DIR}"
|
echo "Done : ls -l ${TARGET_DIR}"
|
||||||
( cd "$TARGET_DIR" ;
|
( cd "$TARGET_DIR" ;
|
||||||
ls -l src/CHANGELOG "src${DEVEL}/haproxy-${NEW}".tar.gz{,.md5} $(for i in "${DOC[@]}"; do echo "doc/${i#doc/}"{,.gz}; done)
|
ls -l src/CHANGELOG "src${DEVEL}/haproxy-${NEW}".tar.gz{,.md5,.sha256} $(for i in "${DOC[@]}"; do echo "doc/${i#doc/}"{,.gz}; done)
|
||||||
)
|
)
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user