aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dk-milter/Makefile
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-10-01 23:08:24 +0800
committeralepulver <alepulver@FreeBSD.org>2006-10-01 23:08:24 +0800
commit76505660a7e7c1d865c8317518a133a0f2f756fe (patch)
tree2eb7b6a84eca2c25d10c4ebf9adbeaf57805e913 /mail/dk-milter/Makefile
parent1e47a33e2f2f6e71386124fd4413dae83e19d758 (diff)
downloadfreebsd-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/Makefile')
-rw-r--r--mail/dk-milter/Makefile16
1 files changed, 14 insertions, 2 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}