Deprecate MD5 checksum generation in favor of SHA512.
This was discussed during the 10.2-RELEASE cycle, however since we were nearing the end of the cycle, we decided to defer this change until after 10.2-RELEASE. Reminded by: so (delphij), jmg MFC after: 5 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2ef6d5560f
commit
13af28171f
@ -300,7 +300,7 @@ release-install:
|
||||
${XZ_CMD} -k ${DESTDIR}/${OSRELEASE}-${I}
|
||||
. endif
|
||||
.endfor
|
||||
cd ${DESTDIR} && sha512 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA512
|
||||
cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256
|
||||
cd ${DESTDIR} && md5 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.MD5
|
||||
|
||||
.include "${.CURDIR}/Makefile.vm"
|
||||
|
@ -76,7 +76,7 @@ VM_DIR= ${TLD}/VM-IMAGES/${REVISION}-${BRANCH}/${TARGET_ARCH}
|
||||
.endif
|
||||
|
||||
CLEANFILES+= ${STAGE_TARGETS}
|
||||
CHECKSUM_FILES?= SHA256 MD5
|
||||
CHECKSUM_FILES?= SHA512 SHA256
|
||||
SNAP_SUFFIX!= echo ${_SNAP_SUFFIX:S,^-,,1} | tr -d ' '
|
||||
ISO_DIR= ${TLD}/${TARGET}/${TARGET_ARCH}/ISO-IMAGES/${REVISION}
|
||||
FTP_DIR= ${TLD}/${TARGET}/${TARGET_ARCH}/${REVISION}-${BRANCH}
|
||||
|
@ -68,10 +68,10 @@ cw${_CW:tl}-install:
|
||||
mkdir -p ${DESTDIR}/${_CW:tl}
|
||||
cp -p ${${_CW}IMAGE} \
|
||||
${DESTDIR}/${_CW:tl}/${${_CW}_DISK}
|
||||
cd ${DESTDIR}/${_CW:tl} && sha512 ${${_CW}_DISK}* > \
|
||||
${DESTDIR}/${_CW:tl}/CHECKSUM.SHA512
|
||||
cd ${DESTDIR}/${_CW:tl} && sha256 ${${_CW}_DISK}* > \
|
||||
${DESTDIR}/${_CW:tl}/CHECKSUM.SHA256
|
||||
cd ${DESTDIR}/${_CW:tl} && md5 ${${_CW}_DISK}* > \
|
||||
${DESTDIR}/${_CW:tl}/CHECKSUM.MD5
|
||||
|
||||
cw${_CW:tl}-package:
|
||||
@# Special target to handle packaging cloud images in the formats
|
||||
@ -140,10 +140,10 @@ vm-install:
|
||||
${XZ_CMD} ${DESTDIR}/vmimages/${OSRELEASE}.${FORMAT}
|
||||
. endfor
|
||||
. endif
|
||||
cd ${DESTDIR}/vmimages && sha512 ${OSRELEASE}* > \
|
||||
${DESTDIR}/vmimages/CHECKSUM.SHA512
|
||||
cd ${DESTDIR}/vmimages && sha256 ${OSRELEASE}* > \
|
||||
${DESTDIR}/vmimages/CHECKSUM.SHA256
|
||||
cd ${DESTDIR}/vmimages && md5 ${OSRELEASE}* > \
|
||||
${DESTDIR}/vmimages/CHECKSUM.MD5
|
||||
.endif
|
||||
|
||||
vm-release:
|
||||
|
@ -362,10 +362,10 @@ chroot_arm_armv6_build_release() {
|
||||
chroot ${CHROOTDIR} cp -p ${OBJDIR}/${OSRELEASE}-${KERNEL}.img \
|
||||
/R/${OSRELEASE}-${KERNEL}.img
|
||||
chroot ${CHROOTDIR} xz -T ${XZ_THREADS} /R/${OSRELEASE}-${KERNEL}.img
|
||||
cd ${CHROOTDIR}/R && sha512 ${OSRELEASE}* \
|
||||
> CHECKSUM.SHA512
|
||||
cd ${CHROOTDIR}/R && sha256 ${OSRELEASE}* \
|
||||
> CHECKSUM.SHA256
|
||||
cd ${CHROOTDIR}/R && md5 ${OSRELEASE}* \
|
||||
> CHECKSUM.MD5
|
||||
|
||||
return 0
|
||||
} # chroot_arm_armv6_build_release()
|
||||
|
Loading…
Reference in New Issue
Block a user