2011-02-02 16:40:58 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rspamd
|
2014-03-24 11:52:41 +01:00
|
|
|
PORTVERSION= 0.6.9
|
2014-07-18 15:58:10 +02:00
|
|
|
PORTREVISION= 2
|
2011-02-02 16:40:58 +01:00
|
|
|
CATEGORIES= mail
|
2013-12-27 16:16:01 +01:00
|
|
|
MASTER_SITES= http://rspamd.com/downloads/
|
2011-02-02 16:40:58 +01:00
|
|
|
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
|
|
COMMENT= Fast spam filtering system
|
|
|
|
|
2013-12-27 16:16:01 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2012-06-09 15:03:54 +02:00
|
|
|
|
2013-12-02 17:07:53 +01:00
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
|
|
libgmime-2.4.so:${PORTSDIR}/mail/gmime24 \
|
|
|
|
libevent.so:${PORTSDIR}/devel/libevent
|
|
|
|
|
2014-03-24 11:52:41 +01:00
|
|
|
OPTIONS_DEFINE= GPERF REDIRECTOR
|
2013-05-24 07:47:16 +02:00
|
|
|
GPERF_DESC= google perf-tools profiling
|
|
|
|
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}
|
2013-12-02 17:07:53 +01:00
|
|
|
CMAKE_ARGS+= -DCONFDIR=${PREFIX}/etc/rspamd \
|
|
|
|
-DLOGDIR=/var/log/rspamd \
|
2013-12-18 16:41:07 +01:00
|
|
|
-DDBDIR=/var/db/rspamd \
|
2013-12-02 17:07:53 +01:00
|
|
|
-DRUNDIR=/var/run/rspamd \
|
|
|
|
-DMANDIR=${MANPREFIX}/man \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
|
|
|
|
-DBUILD_PORT=yes \
|
2013-12-06 16:47:06 +01:00
|
|
|
-DFORCE_GMIME24=yes \
|
2013-12-02 17:07:53 +01:00
|
|
|
-DLIBDIR=${PREFIX}/lib \
|
|
|
|
-DNO_SHARED=ON
|
2011-02-02 16:40:58 +01:00
|
|
|
|
2014-02-03 18:17:14 +01:00
|
|
|
USES= cmake:outsource gettext iconv pkgconfig lua:51+
|
2011-02-02 16:40:58 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
USE_GNOME= glib20
|
2012-06-09 15:03:54 +02:00
|
|
|
USE_OPENSSL= yes
|
2011-02-02 16:40:58 +01:00
|
|
|
|
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
|
2014-06-23 15:44:39 +02:00
|
|
|
LIB_DEPENDS+= libprofiler.so:${PORTSDIR}/devel/google-perftools
|
2011-02-02 16:40:58 +01:00
|
|
|
.endif
|
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.if ${PORT_OPTIONS:MREDIRECTOR}
|
2014-01-26 17:16:35 +01:00
|
|
|
USES+= perl5
|
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
|
|
|
|
|
2014-07-18 15:58:10 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL} -d \
|
|
|
|
${STAGEDIR}/var/log/rspamd \
|
|
|
|
${STAGEDIR}/var/db/rspamd \
|
|
|
|
${STAGEDIR}/var/run/rspamd
|
|
|
|
|
2013-05-24 07:47:16 +02:00
|
|
|
.include <bsd.port.mk>
|