blob: 5f5e1d715a9eea3a78cc52107047a8c79a0bc0de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $FreeBSD$
PORTNAME= rspamd
PORTVERSION= 0.5.6
CATEGORIES= mail
MASTER_SITES= http://cdn.bitbucket.org/vstakhov/rspamd/downloads/
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Fast spam filtering system
LICENSE= BSD
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre \
gmime-2:${PORTSDIR}/mail/gmime2 \
event-1:${PORTSDIR}/devel/libevent
OPTIONS_DEFINE= GPERF JUDY REDIRECTOR
GPERF_DESC= google perf-tools profiling
JUDY_DESC= Judy arrays usage for performance
REDIRECTOR_DESC= Install HTTP redirector
USE_RC_SUBR= rspamd
PLIST_SUB+= ETCDIR=etc/rspamd \
RSPAMDVERSION=${PORTVERSION}
CMAKE_ARGS+= -DETC_PREFIX=${PREFIX}/etc -DPREFIX=${PREFIX} \
-DBUILD_PORT=yes -DNO_SHARED=ON
USES= cmake gettext iconv pkgconfig
USE_LDCONFIG= yes
USE_GNOME= glib20
USE_LUA= 5.1-
USE_SQLITE= yes
USE_OPENSSL= yes
MAN8= rspamd.8
MAN1= rspamc.1
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGPERF}
CMAKE_ARGS+= -DENABLE_GPERF_TOOLS=ON
LIB_DEPENDS+= profiler.1:${PORTSDIR}/devel/google-perftools
.endif
.if ${PORT_OPTIONS:MJUDY}
LIB_DEPENDS+= Judy:${PORTSDIR}/devel/judy
.endif
.if ${PORT_OPTIONS:MREDIRECTOR}
USE_PERL5= yes
CMAKE_ARGS+= -DENABLE_REDIRECTOR=ON
PLIST_SUB+= REDIRECTOR=""
USE_RC_SUBR+= rspamd_redirector
RUN_DEPENDS+= \
p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
p5-IO-String>=0:${PORTSDIR}/devel/p5-IO-String \
p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \
p5-POE-Component-Client-DNS>=0:${PORTSDIR}/dns/p5-POE-Component-Client-DNS \
p5-POE-Component-Client-HTTP>=0:${PORTSDIR}/www/p5-POE-Component-Client-HTTP \
p5-POE-Component-Server-HTTP>=0:${PORTSDIR}/www/p5-POE-Component-Server-HTTP \
p5-Cache-Memcached-Fast>=0:${PORTSDIR}/databases/p5-Cache-Memcached-Fast \
p5-Proc-PidUtil>=0:${PORTSDIR}/sysutils/p5-Proc-PidUtil \
p5-Proc-Daemon>=0:${PORTSDIR}/devel/p5-Proc-Daemon \
p5-SWF-File>=0:${PORTSDIR}/graphics/p5-SWF-File
.else
PLIST_SUB+= REDIRECTOR="@comment "
.endif
.include <bsd.port.mk>
|