diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-10-01 23:08:24 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-10-01 23:08:24 +0800 |
commit | 76505660a7e7c1d865c8317518a133a0f2f756fe (patch) | |
tree | 2eb7b6a84eca2c25d10c4ebf9adbeaf57805e913 /mail/dk-milter | |
parent | 1e47a33e2f2f6e71386124fd4413dae83e19d758 (diff) | |
download | freebsd-ports-graphics-76505660a7e7c1d865c8317518a133a0f2f756fe.tar.gz freebsd-ports-graphics-76505660a7e7c1d865c8317518a133a0f2f756fe.tar.zst freebsd-ports-graphics-76505660a7e7c1d865c8317518a133a0f2f756fe.zip |
- 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/103803
Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp>
Diffstat (limited to 'mail/dk-milter')
-rw-r--r-- | mail/dk-milter/Makefile | 16 | ||||
-rw-r--r-- | mail/dk-milter/files/milter-dk.sh.in | 2 |
2 files changed, 15 insertions, 3 deletions
diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile index 8108bb90b4d..a441e5fec92 100644 --- a/mail/dk-milter/Makefile +++ b/mail/dk-milter/Makefile @@ -17,10 +17,15 @@ COMMENT= Domainkeys milter for Sendmail USE_RC_SUBR= milter-dk.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) @@ -45,6 +50,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} diff --git a/mail/dk-milter/files/milter-dk.sh.in b/mail/dk-milter/files/milter-dk.sh.in index 25d103de584..0f7ded3b6d7 100644 --- a/mail/dk-milter/files/milter-dk.sh.in +++ b/mail/dk-milter/files/milter-dk.sh.in @@ -75,7 +75,7 @@ else if [ "x$1" != "xrestart" ]; then for profile in ${milterdk_profiles}; do echo "===> milterdk profile: ${profile}" - $0 $1 ${profile} + %%RC_SCRIPT%% $1 ${profile} retcode="$?" if [ "0${retcode}" -ne 0 ]; then failed="${profile} (${retcode}) ${failed:-}" |