Re: make doesn't see changes in /etc/mail/freebsd.mc

2010-01-28 Thread Giorgos Keramidas
On Thu, 28 Jan 2010 16:59:16 +, Anton Shterenlikht  
wrote:
> I've seen this behaviour for years, but never bothered
> to ask why.
>
> Imagine I already have in /etc/mail local .mc and .cf files. Imagine I
> then update freebsd.mc. When I run make nothing happens. What I think
> should happen is that local .mc should be updated and then .cf
> generated.
>
> Because of this behaviour I have to manually delete local .mc files
> and all .cf files before running make.

Or merge your local changes *into* the "local.mc" file.  For example, I
have several dozen lines of local customizations in "HOSTNAME.mc" here:

r...@kobe:/etc/mail# diff -u freebsd.mc kobe.mc | diffstat -p1
 kobe.mc |  167
 
 1 file changed, 126 insertions(+), 41 deletions(-)

I would be very annoyed if updating freebsd.mc clobbered these :-)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: make doesn't see changes in /etc/mail/freebsd.mc

2010-01-28 Thread Chuck Swiger
On Jan 28, 2010, at 9:11 AM, Anton Shterenlikht wrote:
>> Because your carefully crafted local .mc files shouldn't be clobbered
>> whenever freebsd.mc is updated?
> 
> I see.. so you are saying that freebsd.mc shouldn't even be
> touched at all, all local chages should be made straight
> to local .mc?

Please see /etc/mail/Makefile:

# 
# This Makefile uses `.mc' as the default MTA .mc file.  This
# can be changed by defining SENDMAIL_MC in /etc/make.conf, e.g.:
#
#   SENDMAIL_MC=/etc/mail/myconfig.mc
#
# If '.mc' does not exist, it is created using 'freebsd.mc'
# as a template.

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: make doesn't see changes in /etc/mail/freebsd.mc

2010-01-28 Thread Anton Shterenlikht
On Thu, Jan 28, 2010 at 05:03:26PM +, Chris Rees wrote:
> On 28 January 2010 16:59, Anton Shterenlikht  wrote:
> > I've seen this behaviour for years, but never bothered
> > to ask why.
> >
> > Imagine I already have in /etc/mail local .mc and .cf
> > files. Imagine I then update freebsd.mc. When I run make
> > nothing happens. What I think should happen is that
> > local .mc should be updated and then .cf generated.
> >
> > Because of this behaviour I have to manually delete
> > local .mc files and all .cf files before running make.
> >
> > Any comments?
> >
> > many thanks
> > anton
> >
> 
> Because your carefully crafted local .mc files shouldn't be clobbered
> whenever freebsd.mc is updated?

I see.. so you are saying that freebsd.mc shouldn't even be
touched at all, all local chages should be made straight
to local .mc?

thank you

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: make doesn't see changes in /etc/mail/freebsd.mc

2010-01-28 Thread Chris Rees
On 28 January 2010 16:59, Anton Shterenlikht  wrote:
> I've seen this behaviour for years, but never bothered
> to ask why.
>
> Imagine I already have in /etc/mail local .mc and .cf
> files. Imagine I then update freebsd.mc. When I run make
> nothing happens. What I think should happen is that
> local .mc should be updated and then .cf generated.
>
> Because of this behaviour I have to manually delete
> local .mc files and all .cf files before running make.
>
> Any comments?
>
> many thanks
> anton
>

Because your carefully crafted local .mc files shouldn't be clobbered
whenever freebsd.mc is updated?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"