Stop producing MD5SUMS and SHA1SUMS files by default
This commit is contained in:
parent
23bdbedbb5
commit
41f1383b5c
10
CONF.sh
10
CONF.sh
|
@ -191,9 +191,9 @@ export CONTRIB=1
|
||||||
# that will burn correctly onto a CD and also can be written raw to a
|
# that will burn correctly onto a CD and also can be written raw to a
|
||||||
# USB stick. xorriso 0.6.5 and later has working support for this.
|
# USB stick. xorriso 0.6.5 and later has working support for this.
|
||||||
#export i386_MKISOFS="xorriso"
|
#export i386_MKISOFS="xorriso"
|
||||||
#export i386_MKISOFS_OPTS="-as mkisofs -r -checksum_algorithm_iso md5,sha1"
|
#export i386_MKISOFS_OPTS="-as mkisofs -r -checksum_algorithm_iso sha256,sha512"
|
||||||
#export amd64_MKISOFS="xorriso"
|
#export amd64_MKISOFS="xorriso"
|
||||||
#export amd64_MKISOFS_OPTS="-as mkisofs -r -checksum_algorithm_iso md5,sha1"
|
#export amd64_MKISOFS_OPTS="-as mkisofs -r -checksum_algorithm_iso sha256,sha512"
|
||||||
|
|
||||||
# Keyring (defaults):
|
# Keyring (defaults):
|
||||||
#ARCHIVE_KEYRING_PACKAGE=debian-archive-keyring
|
#ARCHIVE_KEYRING_PACKAGE=debian-archive-keyring
|
||||||
|
@ -261,12 +261,12 @@ export VARIANTS=
|
||||||
# package on the CD. The default is 'true'.
|
# package on the CD. The default is 'true'.
|
||||||
# export NOSUGGESTS=1
|
# export NOSUGGESTS=1
|
||||||
|
|
||||||
# Set to 1 to generate MD5/SHA1/SHA256/SHA512 sums for generated images
|
# Set to 1 to generate checksum files for generated images
|
||||||
export IMAGESUMS=1
|
export IMAGESUMS=1
|
||||||
|
|
||||||
# And define the set of checksum algorithms you want here. Default is
|
# And define the set of checksum algorithms you want here. Default is
|
||||||
# all of: md5 sha1 sha512 sha256
|
# sha512 sha256
|
||||||
# export CHECKSUMS="md5 sha1 sha512 sha256"
|
# export CHECKSUMS="sha512 sha256"
|
||||||
|
|
||||||
# We may have to extract files from packages to put them onto the CD
|
# We may have to extract files from packages to put them onto the CD
|
||||||
# (e.g. bootloader files). If you make those packages (and their
|
# (e.g. bootloader files). If you make those packages (and their
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -23,7 +23,7 @@ endif
|
||||||
ifndef MKISOFS
|
ifndef MKISOFS
|
||||||
ifneq (,$(filter i386 amd64 arm64 hppa,$(ARCHES)))
|
ifneq (,$(filter i386 amd64 arm64 hppa,$(ARCHES)))
|
||||||
export MKISOFS=xorriso
|
export MKISOFS=xorriso
|
||||||
export MKISOFS_OPTS=-as mkisofs -r -checksum_algorithm_iso md5,sha1
|
export MKISOFS_OPTS=-as mkisofs -r -checksum_algorithm_iso sha256,sha512
|
||||||
else
|
else
|
||||||
export MKISOFS=$(shell which genisoimage mkisofs | head -1)
|
export MKISOFS=$(shell which genisoimage mkisofs | head -1)
|
||||||
endif
|
endif
|
||||||
|
@ -497,7 +497,7 @@ check-number-given:
|
||||||
# Generate only one image number $(CD)
|
# Generate only one image number $(CD)
|
||||||
image: check-number-given images
|
image: check-number-given images
|
||||||
|
|
||||||
# Calculate the md5sums for the images (if available), or get from templates
|
# Calculate the checksums for the images (if available), or get from templates
|
||||||
imagesums:
|
imagesums:
|
||||||
$(Q)$(BASEDIR)/tools/imagesums $(OUT) $(SUMS_EXTENSION)
|
$(Q)$(BASEDIR)/tools/imagesums $(OUT) $(SUMS_EXTENSION)
|
||||||
|
|
||||||
|
|
13
README
13
README
|
@ -213,7 +213,7 @@ The process of building a CD is composed of the following steps:
|
||||||
with some dependencies on targets that you already launched
|
with some dependencies on targets that you already launched
|
||||||
(make bootable packages sources).
|
(make bootable packages sources).
|
||||||
|
|
||||||
- if you want to generate a MD5SUMS file with the md5sums of the
|
- if you want to generate checkum files with the checksums of the
|
||||||
images you can do it with:
|
images you can do it with:
|
||||||
|
|
||||||
$ make imagesums
|
$ make imagesums
|
||||||
|
@ -277,11 +277,12 @@ To generate the jigdo files and templates, you need an
|
||||||
appropriately-patched version of mkisofs/genisoimage, as shipped in
|
appropriately-patched version of mkisofs/genisoimage, as shipped in
|
||||||
Debian Etch.
|
Debian Etch.
|
||||||
|
|
||||||
The MD5SUMS file generated by the "imagesums" target will contain the MD5
|
The checksums files generated by the "imagesums" target will contain
|
||||||
checksums of all generated images, regardless of the DOJIGDO setting. If
|
the checksums of all generated images, regardless of the DOJIGDO
|
||||||
no full iso image is available, the MD5sum will be extracted from the
|
setting. If no full iso image is available, the checksums will be
|
||||||
.template file. A note in the Makefile shows how the original file size
|
extracted from the .template files. A note in the Makefile shows how
|
||||||
can be extracted from the .template in a similar way.
|
the original file size can be extracted from the .template in a
|
||||||
|
similar way.
|
||||||
|
|
||||||
About jigdo "fallback servers":
|
About jigdo "fallback servers":
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ The following variables that define paths *must* be set in CONF.sh:
|
||||||
|
|
||||||
You may also want to change the following variables:
|
You may also want to change the following variables:
|
||||||
- CONTRIB: comment out if you only want to include packages from main
|
- CONTRIB: comment out if you only want to include packages from main
|
||||||
- IMAGESUMS: comment out to skip creating MD5/SHA5 sums for images
|
- IMAGESUMS: comment out to skip creating checksums for images
|
||||||
- OMIT_MANUAL
|
- OMIT_MANUAL
|
||||||
- OMIT_RELEASE_NOTES / RELEASE_NOTES_LOCATION
|
- OMIT_RELEASE_NOTES / RELEASE_NOTES_LOCATION
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ debian-cd (3.1.25) UNRELEASED; urgency=medium
|
||||||
list
|
list
|
||||||
* Start bullseye development, copy the buster dirs to bullseye as a
|
* Start bullseye development, copy the buster dirs to bullseye as a
|
||||||
start.
|
start.
|
||||||
|
* Stop producing MD5SUMS and SHA1SUMS files by default
|
||||||
|
|
||||||
[ Holger Levsen ]
|
[ Holger Levsen ]
|
||||||
* Bump standards version to 4.4.0, no changes needed.
|
* Bump standards version to 4.4.0, no changes needed.
|
||||||
|
|
|
@ -14,7 +14,7 @@ if [ "$2"x != ""x ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CHECKSUMS"x = ""x ] ; then
|
if [ "$CHECKSUMS"x = ""x ] ; then
|
||||||
CHECKSUMS="sha1 md5 sha512 sha256"
|
CHECKSUMS="sha512 sha256"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for SUM in $CHECKSUMS; do
|
for SUM in $CHECKSUMS; do
|
||||||
|
|
|
@ -42,7 +42,5 @@ cd ..
|
||||||
find firmware | cpio --quiet -o -H newc | gzip -9 > firmware.cpio.gz
|
find firmware | cpio --quiet -o -H newc | gzip -9 > firmware.cpio.gz
|
||||||
ls -l $PWD/firmware.cpio.gz $PWD/firmware.tar.gz $PWD/firmware.zip
|
ls -l $PWD/firmware.cpio.gz $PWD/firmware.tar.gz $PWD/firmware.zip
|
||||||
|
|
||||||
md5sum firmware.* > MD5SUMS
|
|
||||||
sha1sum firmware.* > SHA1SUMS
|
|
||||||
sha256sum firmware.* > SHA256SUMS
|
sha256sum firmware.* > SHA256SUMS
|
||||||
sha512sum firmware.* > SHA512SUMS
|
sha512sum firmware.* > SHA512SUMS
|
||||||
|
|
14
update-cd
14
update-cd
|
@ -25,7 +25,7 @@ OFFICIAL=Official
|
||||||
# OFFICIAL="Unofficial snapshot"
|
# OFFICIAL="Unofficial snapshot"
|
||||||
|
|
||||||
# Path to use with mkisofs/mkhybrid
|
# Path to use with mkisofs/mkhybrid
|
||||||
MKISOFS="genisoimage -jigdo-template-compress bzip2 -r -checksum_algorithm_iso md5,sha1,sha256,sha512"
|
MKISOFS="genisoimage -jigdo-template-compress bzip2 -r -checksum_algorithm_iso sha256,sha512"
|
||||||
|
|
||||||
# Use JTE extensions to mkisofs to make jigdo files?
|
# Use JTE extensions to mkisofs to make jigdo files?
|
||||||
JTE=1
|
JTE=1
|
||||||
|
@ -183,17 +183,7 @@ make_cd () {
|
||||||
gzip -9 ${JIGDODIR}/${BASENAME}.jigdo
|
gzip -9 ${JIGDODIR}/${BASENAME}.jigdo
|
||||||
mv ${JIGDODIR}/${BASENAME}.jigdo.gz ${JIGDODIR}/${BASENAME}.jigdo
|
mv ${JIGDODIR}/${BASENAME}.jigdo.gz ${JIGDODIR}/${BASENAME}.jigdo
|
||||||
|
|
||||||
MD5=`zcat ${JIGDODIR}/${BASENAME}.jigdo | \
|
for SHA_SIZE in 256 512; do
|
||||||
awk '/Image Hex MD5Sum/ {print $5}'`
|
|
||||||
echo "$MD5 ${BASENAME}.iso" >> ${JIGDODIR}/MD5SUMS.update
|
|
||||||
echo "$MD5 ${BASENAME}.iso" >> ${ISODIR}/MD5SUMS.update
|
|
||||||
(cd ${JIGDODIR} && md5sum ${BASENAME}.jigdo ${BASENAME}.template >> MD5SUMS.update)
|
|
||||||
if [ $BT = 1 ]; then
|
|
||||||
~/build.${CODENAME}/mktorrent ${ISODIR}/${BASENAME}.iso
|
|
||||||
echo "$MD5 ${BASENAME}.iso" >> ${BTDIR}/MD5SUMS.update
|
|
||||||
(cd ${BTDIR} && md5sum ${BASENAME}.iso.torrent >> MD5SUMS.update)
|
|
||||||
fi
|
|
||||||
for SHA_SIZE in 1 256 512; do
|
|
||||||
SHA=`zcat ${JIGDODIR}/${BASENAME}.jigdo | \
|
SHA=`zcat ${JIGDODIR}/${BASENAME}.jigdo | \
|
||||||
awk "/Image Hex SHA${SHA_SIZE}Sum/ {print \\$5}"`
|
awk "/Image Hex SHA${SHA_SIZE}Sum/ {print \\$5}"`
|
||||||
if [ "$SHA"x = ""x ] ; then
|
if [ "$SHA"x = ""x ] ; then
|
||||||
|
|
Loading…
Reference in New Issue