2011-02-02 16:40:58 +01:00
|
|
|
# New ports collection makefile for: rspamd
|
|
|
|
# Date created: 2010-09-27
|
|
|
|
# Whom: Vsevolod Stakhov <vsevolod@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rspamd
|
2012-08-23 17:06:18 +02:00
|
|
|
PORTVERSION= 0.5.2
|
2011-02-02 16:40:58 +01:00
|
|
|
CATEGORIES= mail
|
2012-08-23 17:06:18 +02:00
|
|
|
MASTER_SITES= https://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
|
|
|
|
|
2012-02-14 13:45:35 +01:00
|
|
|
LIB_DEPENDS= pcre.1:${PORTSDIR}/devel/pcre \
|
2011-02-02 16:40:58 +01:00
|
|
|
gmime-2.0:${PORTSDIR}/mail/gmime2 \
|
|
|
|
event-1.4:${PORTSDIR}/devel/libevent
|
|
|
|
|
|
|
|
OPTIONS= RSPAMD_GPERF "Enable google perf-tools profiling" off \
|
|
|
|
RSPAMD_JUDY "Enable Judy arrays usage for performance" off \
|
|
|
|
RSPAMD_REDIRECTOR "Install HTTP redirector" off
|
|
|
|
|
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} \
|
|
|
|
-DBUILD_PORT=yes
|
|
|
|
|
|
|
|
USE_CMAKE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
USE_GNOME= glib20
|
|
|
|
USE_LUA= 5.1-
|
2012-06-09 15:03:54 +02:00
|
|
|
USE_SQLITE= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GETTEXT= 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
|
|
|
|
|
2011-02-02 16:40:58 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_RSPAMD_GPERF)
|
|
|
|
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
|
|
|
|
|
|
|
|
.if defined(WITH_RSPAMD_JUDY)
|
|
|
|
LIB_DEPENDS+= Judy:${PORTSDIR}/devel/judy
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RSPAMD_REDIRECTOR)
|
2012-02-07 14:29:00 +01:00
|
|
|
USE_PERL5= 5.8+
|
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
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|