Mike Meyer stated:
: [EMAIL PROTECTED] types:
: > At 29 Jan 2001 11:49:36 +0100,
: > Dag-Erling Smorgrav <[EMAIL PROTECTED]> wrote:
: > > No. Mergemaster doesn't care about the contents of the file, only
: > > about its $FreeBSD$ tag. As long as this stays the same, it'll leave
: > > the file alone. If you remove the $FreeBSD$ tag in the installed file
: > > or someone commits to src/etc/shells, mergemaster will prompt you.
: > I want mergemaster(8) to have a list not to compare. It is not
: > necessary for mergemaster(8) to compare host specific files, for
: > example, /etc/hosts, /etc/printcap and /etc/shells, to their
: > originals in /usr/src. I want that system managers for local
: > hosts can decide which files follow the source and which files
: > do not.
:
: There was some discussion of about this on -questions (I think it was)
: a while back, and the author commented on some things he was working
: on. You might look through those, then nudge him about it.
You have been able to do it with mergemaster for quite some time
now. How I do this is to add
MM_PRE_COMPARE_SCRIPT='/path/to/my/mmprecompare.sh'
to my (and hence root .. I use sudo) .mergemasterrc file. And
mmprecompare.sh consists of:
<----------------- snip ---------------------------->
#! /bin/sh
# Create a log file ??
DATE=`date +%Y%m%d`
LOGFILE="/tmp/mergemaster-${DATE}"
# Ignore these files
IGNORE_LIST="/.cshrc \
/etc/mail/aliases \
/etc/csh.cshrc \
/etc/csh.login \
/etc/dhclient.conf \
/etc/group \
/etc/hosts \
/etc/hosts.allow \
/etc/hosts.equiv \
/etc/hosts.lpd \
/etc/mail/sendmail.cf \
/etc/master.passwd \
/etc/namedb/PROTO.localhost.rev \
/etc/namedb/make-localhost \
/etc/namedb/named.conf \
/etc/namedb/named.root \
/etc/newsyslog.conf \
/etc/printcap \
/etc/ssh/ssh_config \
/etc/ssh/sshd_config \
/etc/syslog.conf \
/etc/ttys \
/root/.cshrc \
/root/.login"
#
# remove w/o complaint the files in question
#
for IGNORE in ${IGNORE_LIST}
do
#
IDENT1=`ident "${DESTDIR}${IGNORE}" 2>&1`
IDENT2=`ident "${TEMPROOT}${IGNORE}" 2>&1`
case "${IDENT2}" in
*'no id keywords'*)
;;
."${IDENT1}")
# No worries ???
# echo " *** ${DESTDIR}${IGNORE} is the same ***" | tee "${LOGFILE}"
;;
*)
# Ruh-Roh!
echo " *** ${DESTDIR}${IGNORE} has changed! ***" | tee "${LOGFILE}"
;;
esac
#
rm "${TEMPROOT}${IGNORE}"
done
#
<----------------- snip ---------------------------->
--
1--------01---------01--------01--------01--------01--------01--------0
Sean O'Connell [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message