2011-02-02 16:40:58 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rspamd
|
2013-06-10 15:16:53 +02:00
|
|
|
PORTVERSION= 0.5.6
|
2011-02-02 16:40:58 +01:00
|
|
|
CATEGORIES= mail
|
2012-08-24 18:31:07 +02:00
|
|
|
MASTER_SITES= http://cdn.bitbucket.org/vstakhov/rspamd/downloads/
|
2011-02-02 16:40:58 +01:00
|
|
|
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
|
|
COMMENT= Fast spam filtering system
|
|
|
|
|
2012-06-09 15:03:54 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-06-07 17:23:01 +02:00
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre \
|
|
|
|
gmime-2:${PORTSDIR}/mail/gmime2 \
|
|
|
|
event-1:${PORTSDIR}/devel/libevent
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
OPTIONS_DEFINE= GPERF JUDY REDIRECTOR
|
|
|
|
GPERF_DESC= google perf-tools profiling
|
|
|
|
JUDY_DESC= Judy arrays usage for performance
|
|
|
|
REDIRECTOR_DESC= Install HTTP redirector
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2011-02-07 17:53:04 +01:00
|
|
|
USE_RC_SUBR= rspamd
|
2011-02-02 16:40:58 +01:00
|
|
|
|
|
|
|
PLIST_SUB+= ETCDIR=etc/rspamd \
|
|
|
|
RSPAMDVERSION=${PORTVERSION}
|
|
|
|
CMAKE_ARGS+= -DETC_PREFIX=${PREFIX}/etc -DPREFIX=${PREFIX} \
|
2013-06-07 17:23:01 +02:00
|
|
|
-DBUILD_PORT=yes -DNO_SHARED=ON
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
USES= cmake gettext iconv pkgconfig
|
2011-02-02 16:40:58 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
USE_GNOME= glib20
|
|
|
|
USE_LUA= 5.1-
|
2012-06-09 15:03:54 +02:00
|
|
|
USE_SQLITE= yes
|
|
|
|
USE_OPENSSL= yes
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2011-02-07 17:53:04 +01:00
|
|
|
MAN8= rspamd.8
|
|
|
|
MAN1= rspamc.1
|
|
|
|
|
2013-09-20 21:59:12 +02:00
|
|
|
NO_STAGE= yes
|
2013-05-24 07:47:16 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MGPERF}
|
2011-02-02 16:40:58 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_GPERF_TOOLS=ON
|
2011-02-27 14:01:19 +01:00
|
|
|
LIB_DEPENDS+= profiler.1:${PORTSDIR}/devel/google-perftools
|
2011-02-02 16:40:58 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MJUDY}
|
2011-02-02 16:40:58 +01:00
|
|
|
LIB_DEPENDS+= Judy:${PORTSDIR}/devel/judy
|
|
|
|
.endif
|
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MREDIRECTOR}
|
2012-12-16 07:12:28 +01:00
|
|
|
USE_PERL5= yes
|
2011-02-02 16:40:58 +01:00
|
|
|
CMAKE_ARGS+= -DENABLE_REDIRECTOR=ON
|
|
|
|
PLIST_SUB+= REDIRECTOR=""
|
2011-02-07 17:53:04 +01:00
|
|
|
USE_RC_SUBR+= rspamd_redirector
|
2011-02-02 16:40:58 +01:00
|
|
|
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
|
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.include <bsd.port.mk>
|