Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= Mail-SpamAssassin |
8 |
PORTNAME= Mail-SpamAssassin |
9 |
PORTVERSION= 3.2.0 |
9 |
PORTVERSION= 3.2.1 |
10 |
CATEGORIES= mail perl5 |
10 |
CATEGORIES= mail perl5 |
11 |
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} |
11 |
MASTER_SITES= ${MASTER_SITE_APACHE:S/$/:apache/} ${MASTER_SITE_PERL_CPAN:S/$/:cpan/} |
12 |
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan |
12 |
MASTER_SITE_SUBDIR= spamassassin/source/:apache Mail/:cpan |
Lines 19-31
Link Here
|
19 |
BUILD_DEPENDS= p5-Net-DNS>=0.58:${PORTSDIR}/dns/p5-Net-DNS \ |
19 |
BUILD_DEPENDS= p5-Net-DNS>=0.58:${PORTSDIR}/dns/p5-Net-DNS \ |
20 |
p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \ |
20 |
p5-IO-Zlib>=1.04:${PORTSDIR}/archivers/p5-IO-Zlib \ |
21 |
p5-HTML-Parser>=3.43:${PORTSDIR}/www/p5-HTML-Parser \ |
21 |
p5-HTML-Parser>=3.43:${PORTSDIR}/www/p5-HTML-Parser \ |
|
|
22 |
p5-IO-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-IO-Compress-Zlib \ |
22 |
p5-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-Compress-Zlib \ |
23 |
p5-Compress-Zlib>=2.04:${PORTSDIR}/archivers/p5-Compress-Zlib \ |
23 |
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools |
24 |
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools |
24 |
|
25 |
|
25 |
RUN_DEPENDS= ${BUILD_DEPENDS} \ |
26 |
RUN_DEPENDS= ${BUILD_DEPENDS} \ |
26 |
${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww \ |
27 |
${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww \ |
27 |
p5-Archive-Tar>=1.23:${PORTSDIR}/archivers/p5-Archive-Tar \ |
28 |
p5-Archive-Tar>=1.23:${PORTSDIR}/archivers/p5-Archive-Tar |
28 |
${SITE_PERL}/mach/Encode/Detect.pm:${PORTSDIR}/converters/p5-Encode-Detect |
|
|
29 |
|
29 |
|
30 |
PERL_CONFIGURE= yes |
30 |
PERL_CONFIGURE= yes |
31 |
CONFIGURE_ARGS= SYSCONFDIR="${PREFIX}/etc" \ |
31 |
CONFIGURE_ARGS= SYSCONFDIR="${PREFIX}/etc" \ |
Lines 49-54
Link Here
|
49 |
|
49 |
|
50 |
.include <bsd.port.pre.mk> |
50 |
.include <bsd.port.pre.mk> |
51 |
|
51 |
|
|
|
52 |
USE_LDCONFIG=yes |
53 |
|
54 |
.if ${OSVERSION} > 500000 |
55 |
RUN_DEPENDS+= ${SITE_PERL}/mach/Encode/Detect.pm:${PORTSDIR}/converters/p5-Encode-Detect |
56 |
.else |
57 |
WITH_SACOMPILE='' |
58 |
.endif |
59 |
|
52 |
.if defined (WITH_SPAMC) |
60 |
.if defined (WITH_SPAMC) |
53 |
CONFIGURE_ARGS+= BUILD_SPAMC=yes |
61 |
CONFIGURE_ARGS+= BUILD_SPAMC=yes |
54 |
.else |
62 |
.else |
Lines 58-63
Link Here
|
58 |
.endif |
66 |
.endif |
59 |
|
67 |
|
60 |
.if defined(WITH_SPF_QUERY) |
68 |
.if defined(WITH_SPF_QUERY) |
|
|
69 |
RUN_DEPENDS+= p5-NetAddr-IP>=4.00.7:${PORTSDIR}/net-mgmt/p5-NetAddr-IP |
70 |
# see http://www.freebsd.org/cgi/query-pr.cgi?pr=113638 |
61 |
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF |
71 |
RUN_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF |
62 |
.endif |
72 |
.endif |
63 |
|
73 |
|
Lines 85-93
Link Here
|
85 |
.endif |
95 |
.endif |
86 |
|
96 |
|
87 |
.if defined(WITH_RAZOR) |
97 |
.if defined(WITH_RAZOR) |
88 |
RUN_DEPENDS+= razor-agents>=2.81:${PORTSDIR}/mail/razor-agents |
98 |
RUN_DEPENDS+= razor-agents>=2.84:${PORTSDIR}/mail/razor-agents |
89 |
# see http://www.freebsd.org/cgi/query-pr.cgi?pr=112522 |
99 |
# see http://www.freebsd.org/cgi/query-pr.cgi?pr=112522 |
90 |
# really needs razor-agents>=2.82_1 |
|
|
91 |
.endif |
100 |
.endif |
92 |
|
101 |
|
93 |
.if defined(WITH_DKIM) |
102 |
.if defined(WITH_DKIM) |
Lines 217-227
Link Here
|
217 |
${REINPLACE_CMD} -e '/DCC/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v310.pre |
226 |
${REINPLACE_CMD} -e '/DCC/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v310.pre |
218 |
.endif |
227 |
.endif |
219 |
.if defined(WITH_SACOMPILE) |
228 |
.if defined(WITH_SACOMPILE) |
220 |
${REINPLACE_CMD} -e '/Rule2XSBody/s/^#loadplugin/loadplugin/' ${WRKSRC}/rules/v320.pre |
229 |
${REINPLACE_CMD} -e '/Rule2XSBody/s/^# loadplugin/loadplugin/' ${WRKSRC}/rules/v320.pre |
|
|
230 |
.endif |
231 |
|
232 |
post-build: |
233 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} spamc/libspamc.so) |
234 |
.if !defined(WITHOUT_SSL) |
235 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} spamc/libsslspamc.so) |
221 |
.endif |
236 |
.endif |
222 |
|
237 |
|
223 |
pre-install: |
238 |
pre-install: |
224 |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
239 |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
|
|
240 |
${INSTALL_DATA} ${WRKSRC}/spamc/libspamc.so ${PREFIX}/lib |
241 |
${INSTALL_DATA} ${WRKSRC}/spamc/libspamc.h ${PREFIX}/include |
242 |
.if !defined(WITHOUT_SSL) |
243 |
${INSTALL_DATA} ${WRKSRC}/spamc/libsslspamc.so ${PREFIX}/lib |
244 |
.endif |
245 |
|
246 |
.if ${OSVERSION} < 500000 |
247 |
@${SED} -i "" "s| /etc/rc.subr| ${PREFIX}/etc/rc.subr|" work/sa-spamd.sh |
248 |
.endif |
225 |
|
249 |
|
226 |
post-install: |
250 |
post-install: |
227 |
@${STRIP_CMD} ${PREFIX}/bin/spamc |
251 |
@${STRIP_CMD} ${PREFIX}/bin/spamc |