mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 00:04:14 -05:00
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
31 lines
702 B
Makefile
31 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
|