Browse Source

Create the examples checksum for sysmerge at release time.

"move ahead" deraadt@
OPENBSD_5_6
ajacoutot 10 years ago
parent
commit
04b73346bd
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/etc/Makefile

+ 7
- 2
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.362 2014/07/12 03:52:39 deraadt Exp $
# $OpenBSD: Makefile,v 1.363 2014/07/12 15:38:42 ajacoutot Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -254,11 +254,16 @@ distribution:
exec ${SUDO} ${MAKE} distribution-etc-root-var exec ${SUDO} ${MAKE} distribution-etc-root-var
cd .. && exec ${SUDO} ${MAKE} install cd .. && exec ${SUDO} ${MAKE} install
touch ${DESTDIR}/var/db/sysmerge/etcsum touch ${DESTDIR}/var/db/sysmerge/etcsum
touch ${DESTDIR}/var/db/sysmerge/egsum
TMPSUM=`mktemp /tmp/_etcsum.XXXXXXXXXX` || exit 1; \ TMPSUM=`mktemp /tmp/_etcsum.XXXXXXXXXX` || exit 1; \
EGSUM=`mktemp /tmp/_egsum.XXXXXXXXXX` || exit 1; \
sort ../distrib/sets/lists/etc/{mi,md.${MACHINE}} > $${TMPSUM}; \ sort ../distrib/sets/lists/etc/{mi,md.${MACHINE}} > $${TMPSUM}; \
grep -h '/etc/examples/' ../distrib/sets/lists/base/{mi,md.${MACHINE}} > $${EGSUM}; \
cd ${DESTDIR} && \ cd ${DESTDIR} && \
xargs cksum < $${TMPSUM} > ${DESTDIR}/var/db/sysmerge/etcsum; \ xargs cksum < $${TMPSUM} > ${DESTDIR}/var/db/sysmerge/etcsum; \
rm -f $${TMPSUM}
cd ${DESTDIR} && \
xargs sha256 < $${EGSUM} > ${DESTDIR}/var/db/sysmerge/egsum; \
rm -f $${TMPSUM} $${EGSUM}
distrib-dirs: distrib-dirs:
if [ ! -d ${DESTDIR}/. ]; then \ if [ ! -d ${DESTDIR}/. ]; then \


Loading…
Cancel
Save