freebsd-dev/etc/mail/Makefile
Robert Watson c6b23672b0 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
2000-03-12 22:08:35 +00:00

32 lines
702 B
Makefile

# $FreeBSD$
all: access.db mailertable.db virtusertable.db \
# /etc/aliases.db
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