Date: Sun, 14 Jul 2002 02:02:03 +0200 (CEST) From: Cyrille Lefevre <cyrille.lefevre@laposte.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Gregory Neil Shapiro <gshapiro@FreeBSD.org> Subject: bin/40540: Message-ID: <200207140002.g6E023PG055767@gits.gits.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 40540 >Category: bin >Synopsis: >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jul 13 17:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Cyrille Lefevre >Release: FreeBSD 4.6-STABLE i386 >Organization: ACME >Environment: System: FreeBSD gits 4.6-STABLE FreeBSD 4.6-STABLE #16: Sat Jul 6 19:06:54 CEST 2002 root@gits:/disk2/freebsd/stable/src/sys/compile/CUSTOM i386 >Description: this patch allow multiple alias file to be defined in SENDMAIL_ALIASES. >How-To-Repeat: make SENDMAIL_ALIASES="/etc/mail/aliases /etc/mail/majordomo" kaboum! >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/src/etc/mail/Makefile,v retrieving revision 1.9.2.19 diff -u -r1.9.2.19 Makefile --- Makefile 24 May 2002 15:41:04 -0000 1.9.2.19 +++ Makefile 13 Jul 2002 23:54:54 -0000 @@ -89,6 +89,8 @@ SENDMAIL_CF_DIR?= /usr/src/contrib/sendmail/cf .endif +M4FLAGS= -D_CF_DIR_=${SENDMAIL_CF_DIR}/ + # # The sendmail startup script # @@ -156,16 +158,18 @@ .SUFFIXES: .cf .mc .mc.cf: ${M4FILES} - ${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \ + ${M4} ${M4FLAGS} ${SENDMAIL_M4_FLAGS} \ ${SENDMAIL_CF_DIR}/m4/cf.m4 ${@:R}.mc > ${.TARGET} # # Aliases are handled separately since they normally reside in /etc # and can be rebuild without the help of makemap. # -${SENDMAIL_ALIASES}.db: ${SENDMAIL_ALIASES} - ${SENDMAIL} -bi +.for _f in ${SENDMAIL_ALIASES} +${_f}.db: ${_f} + ${SENDMAIL} -bi -OAliasFile=${.ALLSRC} chmod ${SENDMAIL_MAP_PERMS} ${.TARGET} +.endfor # # ------------------------------------------------------------------------ @@ -203,7 +207,7 @@ .endif .endif -aliases: ${SENDMAIL_ALIASES}.db +aliases: ${SENDMAIL_ALIASES:%=%.db} maps: ${SENDMAIL_MAP_OBJ} >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207140002.g6E023PG055767>