-# $OpenBSD: Makefile,v 1.374 2014/07/15 09:11:18 deraadt Exp $
+# $OpenBSD: Makefile,v 1.375 2014/07/15 09:27:04 ajacoutot Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
distribution:
exec ${SUDO} ${MAKE} distribution-etc-root-var
cd .. && exec ${SUDO} ${MAKE} install
- touch ${DESTDIR}/var/db/sysmerge/etcsum
- touch ${DESTDIR}/var/db/sysmerge/examplessum
+ touch ${DESTDIR}/usr/share/sysmerge/etcsum
+ touch ${DESTDIR}/usr/share/sysmerge/examplessum
ETCLIST=`mktemp /tmp/_etclist.XXXXXXXXXX` || exit 1; \
sort ../distrib/sets/lists/etc/{mi,md.${MACHINE}} > $${ETCLIST}; \
cd ${DESTDIR} && \
- xargs sha256 -h ${DESTDIR}/var/db/sysmerge/etcsum < $${ETCLIST} || true; \
+ xargs sha256 -h ${DESTDIR}/usr/share/sysmerge/etcsum < $${ETCLIST} || true; \
rm -f $${ETCLIST}
EGLIST=`mktemp /tmp/_eglist.XXXXXXXXXX` || exit 1; \
grep -h '/etc/examples/' ../distrib/sets/lists/base/{mi,md.${MACHINE}} | sort > $${EGLIST}; \
cd ${DESTDIR} && \
- xargs sha256 -h ${DESTDIR}/var/db/sysmerge/examplessum < $${EGLIST} || true; \
+ xargs sha256 -h ${DESTDIR}/usr/share/sysmerge/examplessum < $${EGLIST} || true; \
rm -f $${EGLIST}
distrib-dirs:
-# $OpenBSD: BSD.x11.dist,v 1.33 2014/07/10 07:12:28 espie Exp $
+# $OpenBSD: BSD.x11.dist,v 1.34 2014/07/15 09:27:04 ajacoutot Exp $
/set type=dir uname=root gname=wheel mode=0755
.
..
..
db
- sysmerge
- ..
xkb
..
..
-.\" $OpenBSD: hier.7,v 1.124 2014/07/14 09:12:43 ajacoutot Exp $
+.\" $OpenBSD: hier.7,v 1.125 2014/07/15 09:27:04 ajacoutot Exp $
.\" $NetBSD: hier.7,v 1.7 1994/11/30 19:07:10 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993
.\"
.\" @(#)hier.7 8.1 (Berkeley) 6/5/93
.\"
-.Dd $Mdocdate: July 14 2014 $
+.Dd $Mdocdate: July 15 2014 $
.Dt HIER 7
.Os
.Sh NAME
Management Information Base (MIB) definitions.
.El
.Pp
+.It sysmerge/
+.Xr sysmerge 8
+checksum files.
+.Pp
.It tabset/
Tab description files for a variety of terminals; used in
the termcap file (see
-.\" $OpenBSD: sysmerge.8,v 1.49 2014/07/13 07:12:41 ajacoutot Exp $
+.\" $OpenBSD: sysmerge.8,v 1.50 2014/07/15 09:27:04 ajacoutot Exp $
.\"
.\" Copyright (c) 2008 Antoine Jacoutot <ajacoutot@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 13 2014 $
+.Dd $Mdocdate: July 15 2014 $
.Dt SYSMERGE 8
.Os
.Sh NAME
.Pa /etc/motd ,
.Pa /etc/myname ,
.Pa /var/db/locate.database ,
-.Pa /var/db/sysmerge/etcsum ,
-.Pa /var/db/sysmerge/examplessum ,
-.Pa /var/db/sysmerge/xetcsum ,
+.Pa /usr/share/sysmerge/etcsum ,
+.Pa /usr/share/sysmerge/examplessum ,
+.Pa /usr/share/sysmerge/xetcsum ,
.Pa /var/mail/root .
.Pp
The
.It Ev DBDIR
Directory in which checksum files are stored.
If unset, this defaults to
-.Pa /var/db/sysmerge .
+.Pa /usr/share/sysmerge .
.It Ev DESTDIR
Directory in which to merge and install files.
If unset, this defaults to
#!/bin/ksh -
#
-# $OpenBSD: sysmerge.sh,v 1.139 2014/07/13 07:12:41 ajacoutot Exp $
+# $OpenBSD: sysmerge.sh,v 1.140 2014/07/15 09:27:04 ajacoutot Exp $
#
# Copyright (c) 2008-2014 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 1998-2003 Douglas Barton <DougB@FreeBSD.org>
# sysmerge specific variables (overridable)
MERGE_CMD="${MERGE_CMD:=sdiff -as -w ${SWIDTH} -o}"
REPORT="${REPORT:=${WRKDIR}/sysmerge.log}"
-DBDIR="${DBDIR:=/var/db/sysmerge}"
+DBDIR="${DBDIR:=/usr/share/sysmerge}"
# system-wide variables (overridable)
PAGER="${PAGER:=/usr/bin/more}"
[[ ${_set} == etc ]] && _tgz=${WRKDIR}/${TGZ##*/}
[[ ${_set} == xetc ]] && _tgz=${WRKDIR}/${XTGZ##*/}
- tar -tzf "${_tgz}" ./var/db/sysmerge/${_set}sum >/dev/null ||
- error_rm_wrkdir "${_tgz##*/}: badly formed \"${_set}\" set, lacks ./var/db/sysmerge/${_set}sum"
+ tar -tzf "${_tgz}" .${DBDIR}/sysmerge/${_set}sum >/dev/null ||
+ error_rm_wrkdir "${_tgz##*/}: badly formed \"${_set}\" set, lacks .${DBDIR}/sysmerge/${_set}sum"
(cd ${TEMPROOT} && tar -xzphf "${_tgz}" && \
find . -type f -and ! -type l | xargs sha256 -h ${WRKDIR}/${_set}sum) || \
/etc/passwd
/etc/motd
/etc/myname
+ /usr/share/sysmerge/{etc,examples,xetc}sum
/var/db/locate.database
- /var/db/sysmerge/{etc,examples,xetc}sum
/var/mail/root"
CF_FILES="/etc/mail/localhost.cf /etc/mail/sendmail.cf /etc/mail/submit.cf"
for cf in ${CF_FILES}; do