aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-05-15 16:01:40 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-05-15 16:01:40 +0000
commitf3850b5461f8d66da9e664e48a69ca0a28215fc5 (patch)
tree56bdd1ec0eb19fe5a7a9cc4e71b01a68ab0dadec /etc
parenta00856a88cdb770e9b9606069957d00c687bd769 (diff)
Notes
Diffstat (limited to 'etc')
-rw-r--r--etc/mail/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index b04c73a6740f..930efeeda1a7 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -25,11 +25,13 @@
#
# ------------------------------------------------------------------------
#
-# This makefile uses `freebsd.mc' as the default .mc file. This can
+# This makefile uses `<HOSTNAME>.mc' as the default .mc file. This can
# be changed by defining SENDMAIL_MC in /etc/make.conf, e.g.:
#
# SENDMAIL_MC=/etc/mail/myconfig.mc
#
+# If '<HOSTNAME>.mc' does not exist, it is created using 'freebsd.mc'
+# as a template.
# ------------------------------------------------------------------------
#
# The Makefile knows about the following maps:
@@ -37,7 +39,14 @@
# uucpdomain, virtusertable
#
-SENDMAIL_MC?= freebsd.mc
+.ifndef SENDMAIL_MC
+SENDMAIL_MC!= hostname
+SENDMAIL_MC:= ${SENDMAIL_MC}.mc
+
+${SENDMAIL_MC}: freebsd.mc
+ cp freebsd.mc ${SENDMAIL_MC}
+.endif
+
INSTALL_CF= ${SENDMAIL_MC:R}.cf
SENDMAIL_ALIASES?= /etc/mail/aliases