- Fix starting up multiple instance.
- Fix RUN_DEPENDS does not work correctly by mistake. - Support mail/postfix-current like security/amavisd-milter port does. PR: ports/103802 Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp> (maintainer)
This commit is contained in:
parent
c2ea70edc9
commit
0354487115
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174244
3 changed files with 16 additions and 5 deletions
|
@ -23,10 +23,15 @@ COMMENT= Domainkeys milter for Sendmail
|
|||
|
||||
USE_RC_SUBR= milter-dkim.sh
|
||||
|
||||
.if defined(WITH_POSTFIX_MILTER)
|
||||
.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
|
||||
SENDMAIL_MILTER_IN_BASE= yes
|
||||
RUN_DEPENDS+= postfix>=2[3-9]*:${PORTSDIR}/mail/postfix
|
||||
PKGMESSAGE= pkg-message.postfix
|
||||
|
||||
.if defined(WITH_POSTFIX_CURRENT)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
|
||||
.else
|
||||
RUN_DEPENDS+= ${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
|
@ -52,6 +57,13 @@ SITE+= ${FILESDIR}/site.config.m4.milter
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# .sh suffix is stripped in recent releases.
|
||||
.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101 ))
|
||||
SUB_LIST= "RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR:S/.sh$//}"
|
||||
.else
|
||||
SUB_LIST= "RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR}"
|
||||
.endif
|
||||
|
||||
.if defined(SENDMAIL_WITHOUT_MILTER)
|
||||
pre-fetch:
|
||||
@${ECHO_MSG}
|
||||
|
|
|
@ -76,7 +76,7 @@ else
|
|||
if [ "x$1" != "xrestart" ]; then
|
||||
for profile in ${milterdkim_profiles}; do
|
||||
echo "===> milterdkim profile: ${profile}"
|
||||
$0 $1 ${profile}
|
||||
%%RC_SCRIPT%% $1 ${profile}
|
||||
retcode="$?"
|
||||
if [ "0${retcode}" -ne 0 ]; then
|
||||
failed="${profile} (${retcode}) ${failed:-}"
|
||||
|
|
|
@ -10,7 +10,6 @@ your /etc/rc.conf.
|
|||
Extra options can be found in startup script.
|
||||
|
||||
Note: milter sockets must be accessible from postfix/smtpd;
|
||||
setting milterdkim_user appropriate or using inet sockets might be
|
||||
required.
|
||||
using inet sockets might be preferred.
|
||||
|
||||
************************************************************************
|
||||
|
|
Loading…
Reference in a new issue