Patch for mergemaster [was Re: RFC: Alternate patch to have true new-style rc.d scripts in ports (without touching localpkg)]

Oliver Eikemeier eikemeier at fillmore-labs.com
Fri Aug 27 09:08:40 PDT 2004


Scot Hetzel wrote:

> Several individuals expressed their concern with mergemaster deleting
> scripts from /etc/rc.d.  The main concern is that an administator
> could create their own scripts and place them into /etc/rc.d, then
> either they forget about their script, or another admin is updating
> and they accidently delete the script during the mergemaster process.
>
> Attached is a patch to mergemaster that checks the script files for
> "$FreeBSD: src" during the STALE_RC_FILES check.  If a script has such
> a header, it is assumed to be a stale rc file.  The old behavior of
> checking all scripts is still available when the -s flag is specified
> to mergemaster.

An alternate approach is in PR 64476:
   <http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/64476>

But probably the "$FreeBSD: src" test is more useful, I'm not sure. 
Anyway, you could post this as a follow-up, so that both approaches 
could be compared.
-Oliver



More information about the freebsd-current mailing list