Allow multiple aliases files to be rebuilt
PR: bin/40540 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net> MFC after: 3 days
This commit is contained in:
parent
26085e0d27
commit
a4d1b9a3c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110576
@ -163,9 +163,11 @@ M4FILES!= find ${SENDMAIL_CF_DIR} -type f -name '*.m4' -print
|
|||||||
# Aliases are handled separately since they normally reside in /etc
|
# Aliases are handled separately since they normally reside in /etc
|
||||||
# and can be rebuild without the help of makemap.
|
# and can be rebuild without the help of makemap.
|
||||||
#
|
#
|
||||||
${SENDMAIL_ALIASES}.db: ${SENDMAIL_ALIASES}
|
.for _f in ${SENDMAIL_ALIASES}
|
||||||
${SENDMAIL} -bi
|
${_f}.db: ${_f}
|
||||||
|
${SENDMAIL} -bi -OAliasFile=${.ALLSRC}
|
||||||
chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
|
chmod ${SENDMAIL_MAP_PERMS} ${.TARGET}
|
||||||
|
.endfor
|
||||||
|
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
@ -203,7 +205,7 @@ install-submit-cf: ${INSTALL_SUBMIT_CF}
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
aliases: ${SENDMAIL_ALIASES}.db
|
aliases: ${SENDMAIL_ALIASES:%=%.db}
|
||||||
|
|
||||||
maps: ${SENDMAIL_MAP_OBJ}
|
maps: ${SENDMAIL_MAP_OBJ}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user