summaryrefslogtreecommitdiffstats
path: root/etc/mail/Makefile
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-03-12 22:08:35 +0000
committerrwatson <rwatson@FreeBSD.org>2000-03-12 22:08:35 +0000
commitb680890228275589cbf296a51cca5bd5fd2e1ce4 (patch)
treec783429787e04cfb36f732c559c7e74dc0a41077 /etc/mail/Makefile
parent4f641923fca928ef7104ded58de62940c0dcba1f (diff)
downloadFreeBSD-src-b680890228275589cbf296a51cca5bd5fd2e1ce4.zip
FreeBSD-src-b680890228275589cbf296a51cca5bd5fd2e1ce4.tar.gz
Add sample databases for sendmail (access, mailertable, virtusertable),
as well as rename access.txt back to the standard access. Also modify the Makefile to know how to build hashes for each of these databases. If one of the databases is missing when Make is run, use a commented out version of the sample. Reviewed by: peter Approved by: jkh
Diffstat (limited to 'etc/mail/Makefile')
-rw-r--r--etc/mail/Makefile31
1 files changed, 28 insertions, 3 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index fbce06e..b912a05 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -1,6 +1,31 @@
# $FreeBSD$
-install:
- /usr/sbin/makemap hash /etc/mail/access < /etc/mail/access.txt
+all: access.db mailertable.db virtusertable.db \
+# /etc/aliases.db
-all: install
+access.db: access
+ /usr/sbin/makemap hash access < access
+
+virtusertable.db: virtusertable
+ /usr/sbin/makemap hash virtusertable < virtusertable
+
+mailertable.db: mailertable
+ /usr/sbin/makemap hash mailertable < mailertable
+
+#/etc/aliases.db: /etc/aliases
+# newaliases
+
+mailertable:
+ @echo Generating empty mailertable
+ sed -e 's/^/#/' < mailertable.sample > mailertable
+
+access:
+ @echo Generating empty access
+ sed -e 's/^/#/' < access.sample > access
+
+virtusertable:
+ @echo Generating empty virtusertable
+ sed -e 's/^/#/' < virtusertable.sample > virtusertable
+
+clean:
+ rm -f access.db virtusertable.db mailertable.db
OpenPOWER on IntegriCloud