Browse Source

Create sysmerge etcsum file at release time for etc set inclusion.

This way, the first time sysmerge is run on a new box, it will already
have reference sums needed for automatic processing.
Original idea from and discussed with deraadt@
"commit it" deraadt@, tweaks and ok millert
OPENBSD_4_7
ajacoutot 15 years ago
parent
commit
198efe259d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/Makefile

+ 6
- 1
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.282 2009/10/25 05:23:58 dtucker Exp $
# $OpenBSD: Makefile,v 1.283 2009/12/22 14:13:14 ajacoutot Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
@ -254,6 +254,11 @@ distribution-etc-root-var: distrib-dirs
distribution:
exec ${SUDO} ${MAKE} distribution-etc-root-var
cd .. && exec ${SUDO} ${MAKE} install
TMPSUM=`mktemp /tmp/_etcsum.XXXXXXXXXX` || exit 1; \
sort ../distrib/sets/lists/etc/{mi,md.${MACHINE}} > $${TMPSUM}; \
cd ${DESTDIR} && \
xargs cksum < $${TMPSUM} > ${DESTDIR}/var/db/sysmerge/etcsum; \
rm -f $${TMPSUM}
distrib-dirs:
if [ ! -d ${DESTDIR}/. ]; then \


Loading…
Cancel
Save