diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2003-07-06 19:17:04 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2003-07-06 19:17:04 +0000 |
commit | 60f4a2b5009f6283c25fa7018df26ef994e304a8 (patch) | |
tree | ee197af21d8ec446134781c94e4df576ba967546 /etc | |
parent | 86d8c5a60907280534a37ff35e88e3dc2effc12c (diff) | |
download | FreeBSD-src-60f4a2b5009f6283c25fa7018df26ef994e304a8.zip FreeBSD-src-60f4a2b5009f6283c25fa7018df26ef994e304a8.tar.gz |
Bow to popular demand and default SENDMAIL_SUBMIT_MC to
`hostname`.submit.mc which is templated from freebsd.submit.mc if the
default file does not exist. This makes the building of the submit.cf
behavior identical to that of the the sendmail.cf.
PR: 44256
Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
MFC after: 5 days
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mail/Makefile | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile index 2ce4394..5fd7204 100644 --- a/etc/mail/Makefile +++ b/etc/mail/Makefile @@ -49,11 +49,14 @@ # If '<HOSTNAME>.mc' does not exist, it is created using 'freebsd.mc' # as a template. # -# It also uses 'freebsd.submit.mc' as the default mail submission .mc file. -# This can be changed by defining SENDMAIL_SUBMIT_MC in /etc/make.conf, -# e.g.: +# It also uses '<HOSTNAME>.submit.mc' as the default mail submission .mc +# file. This can be changed by defining SENDMAIL_SUBMIT_MC in +# /etc/make.conf, e.g.: # # SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc +# +# If '<HOSTNAME>.submit.mc' does not exist, it is created using +# 'freebsd.submit.mc' as a template. # ------------------------------------------------------------------------ # # The Makefile knows about the following maps: @@ -69,7 +72,13 @@ ${SENDMAIL_MC}: cp freebsd.mc ${SENDMAIL_MC} .endif -SENDMAIL_SUBMIT_MC?= freebsd.submit.mc +.ifndef SENDMAIL_SUBMIT_MC +SENDMAIL_SUBMIT_MC!= hostname +SENDMAIL_SUBMIT_MC:= ${SENDMAIL_SUBMIT_MC}.submit.mc + +${SENDMAIL_SUBMIT_MC}: + cp freebsd.submit.mc ${SENDMAIL_SUBMIT_MC} +.endif INSTALL_CF= ${SENDMAIL_MC:R}.cf |