From e886d2ed5f458a1c669b7e01332cb294ae4cbdeb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 17 Apr 2009 03:58:56 +0000 Subject: For SHA256 hashes to be ready to go onto the install media, we must build the sets before we build the media. While there we can get rid of DESTDIR/snapshot too, and simply install straight into RELEASEDIR. (This also ends up saving an astounding amount of traffic/latency in a nfs environment) --- distrib/vax/iso/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'distrib/vax/iso/Makefile') diff --git a/distrib/vax/iso/Makefile b/distrib/vax/iso/Makefile index 5e753602295..9d3563171a1 100644 --- a/distrib/vax/iso/Makefile +++ b/distrib/vax/iso/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2008/08/25 17:18:55 deraadt Exp $ +# $OpenBSD: Makefile,v 1.4 2009/04/17 03:58:55 deraadt Exp $ TOP= ${.CURDIR}/.. @@ -53,6 +53,11 @@ ${CDROM}: ${BASE} ${XBASE} ${BOOT} ${BOOTXX} install: cp ${CDROM} ${RELDIR}/ + # update the SHA256 file + grep -v ${CDROM} ${RELDIR}/SHA256 > ${RELDIR}/SHA256.new + sum -a sha256 ${CDROM} >> ${RELDIR}/SHA256.new + sort ${RELDIR}/SHA256.new > ${RELDIR}/SHA256 + rm ${RELDIR}/SHA256.new clean cleandir: /bin/rm -f ${CDROM} ${.OBJDIR}/image.* -- cgit v1.2.3