diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-01 15:08:24 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-01 15:08:24 +0000 |
commit | 3133dce1763f419ce0d0bed7207e809d920e5590 (patch) | |
tree | 4d5671c1d6ec95742f12548d2ce1d4e53b59b163 /mail/dk-milter/Makefile | |
parent | 035448711553b6fac2d127e3df715273a4f09e8c (diff) | |
download | ports-3133dce1763f419ce0d0bed7207e809d920e5590.tar.gz ports-3133dce1763f419ce0d0bed7207e809d920e5590.zip |
Notes
Diffstat (limited to 'mail/dk-milter/Makefile')
-rw-r--r-- | mail/dk-milter/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mail/dk-milter/Makefile b/mail/dk-milter/Makefile index 8108bb90b4d2..a441e5fec925 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} |