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

(-)Makefile (+13 lines)
Lines 31-36 Link Here
31
31
32
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
33
33
34
.if exists(${LOCALBASE}/lib/libldap.so)
35
WITH_LDAP=yes
36
.endif
37
38
.if !defined(WITHOUT_LDAP) && defined(WITH_LDAP)
39
USE_OPENLDAP=		yes
40
.endif
41
34
.if !defined(WITH_SENDMAIL_BASE) && \
42
.if !defined(WITH_SENDMAIL_BASE) && \
35
    !defined(WITH_SENDMAIL_PORT) && \
43
    !defined(WITH_SENDMAIL_PORT) && \
36
    !exists(${LOCALBASE}/lib/libmilter.a)
44
    !exists(${LOCALBASE}/lib/libmilter.a)
Lines 57-62 Link Here
57
GNU_CONFIGURE=	yes
65
GNU_CONFIGURE=	yes
58
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
66
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
59
67
68
USE_REINPLACE=	yes
69
60
USE_RC_SUBR=	yes
70
USE_RC_SUBR=	yes
61
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
71
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
62
72
Lines 67-72 Link Here
67
		${FILESDIR}/activation.txt > ${WRKDIR}/activation.txt
77
		${FILESDIR}/activation.txt > ${WRKDIR}/activation.txt
68
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
78
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
69
		${FILESDIR}/spamass-milter.sh > ${WRKDIR}/spamass-milter.sh
79
		${FILESDIR}/spamass-milter.sh > ${WRKDIR}/spamass-milter.sh
80
.if defined(WITH_LDAP)
81
	@${REINPLACE_CMD} -e 's|-lmilter|-lmilter -lldap|g' ${WRKSRC}/configure
82
.endif
70
83
71
post-install:
84
post-install:
72
	@${INSTALL_SCRIPT} ${WRKDIR}/spamass-milter.sh ${PREFIX}/etc/rc.d/spamass-milter.sh
85
	@${INSTALL_SCRIPT} ${WRKDIR}/spamass-milter.sh ${PREFIX}/etc/rc.d/spamass-milter.sh

Return to bug 73519