View | Details | Raw Unified | Return to bug 103803
Collapse All | Expand All

(-)ports/mail/dk-milter/Makefile (-2 / +14 lines)
Lines 17-26 COMMENT= Domainkeys milter for Sendmail Link Here
17
17
18
USE_RC_SUBR=	milter-dk.sh
18
USE_RC_SUBR=	milter-dk.sh
19
19
20
.if defined(WITH_POSTFIX_MILTER)
20
.if defined(WITH_POSTFIX_MILTER) || defined(WITH_POSTFIX) || defined(WITH_POSTFIX_CURRENT)
21
SENDMAIL_MILTER_IN_BASE=	yes
21
SENDMAIL_MILTER_IN_BASE=	yes
22
RUN_DEPENDS+=	postfix>=2[3-9]*:${PORTSDIR}/mail/postfix
23
PKGMESSAGE=	pkg-message.postfix
22
PKGMESSAGE=	pkg-message.postfix
23
24
.if defined(WITH_POSTFIX_CURRENT)
25
RUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix-current
26
.else
27
RUN_DEPENDS+=	${LOCALBASE}/libexec/postfix/smtpd:${PORTSDIR}/mail/postfix
28
.endif
24
.endif
29
.endif
25
30
26
.if !defined(SENDMAIL_MILTER_IN_BASE)
31
.if !defined(SENDMAIL_MILTER_IN_BASE)
Lines 44-49 SITE+= ${FILESDIR}/site.config.m4.milte Link Here
44
.endif
49
.endif
45
50
46
.include <bsd.port.pre.mk>
51
.include <bsd.port.pre.mk>
52
53
# .sh suffix is stripped in recent releases.
54
.if (${OSVERSION} >= 700007 || ( ${OSVERSION} < 700000 && ${OSVERSION} >= 600101 ))
55
SUB_LIST=	"RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR:S/.sh$//}"
56
.else
57
SUB_LIST=	"RC_SCRIPT=${PREFIX}/etc/rc.d/${USE_RC_SUBR}"
58
.endif
47
59
48
.if defined(SENDMAIL_WITHOUT_MILTER)
60
.if defined(SENDMAIL_WITHOUT_MILTER)
49
pre-fetch:
61
pre-fetch:
(-)ports/mail/dk-milter/files/milter-dk.sh.in (-1 / +1 lines)
Lines 75-81 else Link Here
75
	if [ "x$1" != "xrestart" ]; then
75
	if [ "x$1" != "xrestart" ]; then
76
	    for profile in ${milterdk_profiles}; do
76
	    for profile in ${milterdk_profiles}; do
77
		echo "===> milterdk profile: ${profile}"
77
		echo "===> milterdk profile: ${profile}"
78
		$0 $1 ${profile}
78
		%%RC_SCRIPT%% $1 ${profile}
79
		retcode="$?"
79
		retcode="$?"
80
		if [ "0${retcode}" -ne 0 ]; then
80
		if [ "0${retcode}" -ne 0 ]; then
81
		    failed="${profile} (${retcode}) ${failed:-}"
81
		    failed="${profile} (${retcode}) ${failed:-}"

Return to bug 103803