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
This commit is contained in:
parent
86d8c5a609
commit
60f4a2b500
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user