diff options
author | kensmith <kensmith@FreeBSD.org> | 2005-09-28 12:39:00 +0000 |
---|---|---|
committer | kensmith <kensmith@FreeBSD.org> | 2005-09-28 12:39:00 +0000 |
commit | 33c38db5b654921849a06b703881f08220cd4bc1 (patch) | |
tree | 1dca0ff9c4609d1a00e23c7b7c4c4fdde9199f44 /release | |
parent | 86c9a041d367c968076fcabd3108618942a19a5b (diff) | |
download | FreeBSD-src-33c38db5b654921849a06b703881f08220cd4bc1.zip FreeBSD-src-33c38db5b654921849a06b703881f08220cd4bc1.tar.gz |
Add SHA256 checksums to the release build.
Requested by: cperciva (so)
Reviewed/improved by: ru
MFC after: 2 days
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/release/Makefile b/release/Makefile index a01db51..93e97ec 100644 --- a/release/Makefile +++ b/release/Makefile @@ -654,8 +654,10 @@ release.6: -czf ${RD}/dists/ports/ports.tgz -C /usr ports @cp ${.CURDIR}/scripts/ports-install.sh ${RD}/dists/ports/install.sh @(cd ${RD}/dists/ports; \ - rm -f CHECKSUM.MD5; \ - md5 * > CHECKSUM.MD5) + rm -f .CHECKSUM.MD5 CHECKSUM.SHA256; \ + md5 * > .CHECKSUM.MD5; \ + sha256 * > CHECKSUM.SHA256; \ + mv .CHECKSUM.MD5 CHECKSUM.MD5) @echo "ports distribution is finished." .endif touch ${.TARGET} @@ -686,7 +688,11 @@ release.7: fi && shift && shift ; \ done .endif - (cd ${RD}/dists/src; rm -f CHECKSUM.MD5; md5 * > CHECKSUM.MD5) + (cd ${RD}/dists/src; \ + rm -f .CHECKSUM.MD5 CHECKSUM.SHA256; \ + md5 * > .CHECKSUM.MD5; \ + sha256 * > CHECKSUM.SHA256; \ + mv .CHECKSUM.MD5 CHECKSUM.MD5) @echo "src distribution is finished." .endif touch ${.TARGET} @@ -849,8 +855,10 @@ floppies.3: @cp ${RND}/${RELNOTES_LANG}/installation/${TARGET}/article.txt \ ${RD}/floppies/README.TXT @(cd ${RD}/floppies; md5 README.TXT *.flp > CHECKSUM.MD5) + @(cd ${RD}/floppies; sha256 README.TXT *.flp > CHECKSUM.SHA256) .else @(cd ${RD}/floppies; md5 *.flp > CHECKSUM.MD5) + @(cd ${RD}/floppies; sha256 *.flp > CHECKSUM.SHA256) .endif touch ${.TARGET} @@ -1016,8 +1024,9 @@ iso.1: FreeBSD_LiveFS \ ${CD}/${BUILDNAME}-${TARGET}-livefs.iso ${CD_LIVEFS} .endif - @echo "Generating MD5 sums..." + @echo "Generating MD5 and SHA256 sums..." @(cd ${CD} && md5 *.iso > ${BUILDNAME}-${TARGET}-iso.CHECKSUM.MD5) + @(cd ${CD} && sha256 *.iso > ${BUILDNAME}-${TARGET}-iso.CHECKSUM.SHA256) touch ${.TARGET} .else @echo "Do not know how to create an ISO for ${TARGET_ARCH}." @@ -1085,8 +1094,10 @@ doTARBALL: true; \ fi; \ ( cd ${RD}/dists/${TD}; \ - rm -f CHECKSUM.MD5; \ - md5 * > CHECKSUM.MD5 ) \ + rm -f .CHECKSUM.MD5 CHECKSUM.SHA256; \ + md5 * > .CHECKSUM.MD5; \ + sha256 * > CHECKSUM.SHA256; \ + mv .CHECKSUM.MD5 CHECKSUM.MD5) \ ) doRELEASE: release.1 release.2 ${DOCREL} release.3 release.4 \ |