On Fri, 01 Feb 2008 17:51:06 -0600, Aaron wrote:
> ...When i update or upgrade my system, am i going to need to
> manually go back every time and recreate the steps to get my mail
> system working again? Does the openbsd-proto.mc get overwritten
> every time i update the source via cvs. I just need this for
> sendmail now, but as a general question:
>
> What changes to configs/files etc, in the base system would dictate
> that a separate rebuild of that component after an update or upgrade?
Then again, on Fri, 01 Feb 2008 20:40:01 -0600, Aaron wrote:
> ...Albeit i don't have to alter my /etc config files, the .mc files
> that have to be edited lie in the /usr/src directory and these files
> are edited to compile the new sendmail.cf files, so whenever I
> update/upgrade (I know the difference, but ty for being clear in
> case i didn't) do edited files within src get overwritten or
> ......????
>
> Along the same lines.... Lets say i'm following -stable.. a fix
> comes out, i do an update but the fix had nothing to do with
> sendmail. Does cvs do anything to the sendmail files, and how do i
> see what stuff was actually altered? {find -ctime ? } ??
First: the cf/mc files are not in /usr/src, they are in /usr/share.
Second: you can avoid any overlay of openbsd-proto.mc/.cf by creating your
*own* .mc file, e.g.:
# cd /usr/share/sendmail/cf
# cp openbsd-proto.mc aaron.mc
# $EDITOR aaron.mc
# make aaron.cf
# cp aaron.cf /etc/mail
You then copy sendmail_flags from /etc/rc.conf into /etc/rc.conf.local and set
-C to /etc/mail/aaron.cf.
Third: Architectural changes don't happen in -stable; that's why it uses that
name. openbsd-proto.mc should never change between -release and -stable. If
you run -current, you should subscribe to source-changes@, and you can easily
automate checks for cvs updates to files of special interest with some basic
scripting, taking advantage of ls(1) and diff(1), perhaps.
Fourth: SASL, if needed, does not require any source changes, just the
cyrus-sasl package, an environment variable in /etc/mk.conf, and a rebuild (#
make build install clean) of sendmail. See
/usr/src/gnu/usr.sbin/sendmail/sendmail/Makefile if interested.