Import rspamd-0.6.8 as mail/rspamd

Rspamd is fast, modular and lightweight spam filter. It is designed to work
with big ammount of mail and can be easily extended with own filters written in
lua.
This commit is contained in:
wiedi 2014-02-07 14:39:19 +00:00
parent 3985736b90
commit 965e100f4f
4 changed files with 114 additions and 0 deletions

3
mail/rspamd/DESCR Normal file
View file

@ -0,0 +1,3 @@
Rspamd is fast, modular and lightweight spam filter. It is designed to work
with big ammount of mail and can be easily extended with own filters written in
lua.

51
mail/rspamd/Makefile Normal file
View file

@ -0,0 +1,51 @@
# $NetBSD: Makefile,v 1.1 2014/02/07 14:39:19 wiedi Exp $
DISTNAME= rspamd-0.6.8
CATEGORIES= mail
MASTER_SITES= https://rspamd.com/downloads/
MAINTAINER= wiedi@frubar.net
HOMEPAGE= https://www.rspamd.com/
COMMENT= Fast, free and open-source spam filtering system
LICENSE= 2-clause-bsd
USE_CMAKE= yes
USE_TOOLS+= perl
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/rspamd
PKG_SYSCONFSUBDIR= rspamd
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CMAKE_ARGS+= -DMANDIR:PATH=${PREFIX}/${PKGMANDIR}
CMAKE_ARGS+= -DCONFDIR:PATH=${EGDIR}
MAKE_DIRS+= ${PKG_SYSCONFDIR}/lua
MAKE_DIRS+= ${PKG_SYSCONFDIR}/lua/regexp
CONF_FILES= ${EGDIR}/2tld.inc ${PKG_SYSCONFDIR}/2tld.inc
CONF_FILES+= ${EGDIR}/composites.conf ${PKG_SYSCONFDIR}/composites.conf
CONF_FILES+= ${EGDIR}/logging.conf ${PKG_SYSCONFDIR}/logging.conf
CONF_FILES+= ${EGDIR}/lua/hfilter.lua ${PKG_SYSCONFDIR}/lua/hfilter.lua
CONF_FILES+= ${EGDIR}/lua/regexp/drugs.lua ${PKG_SYSCONFDIR}/lua/regexp/drugs.lua
CONF_FILES+= ${EGDIR}/lua/regexp/fraud.lua ${PKG_SYSCONFDIR}/lua/regexp/fraud.lua
CONF_FILES+= ${EGDIR}/lua/regexp/headers.lua ${PKG_SYSCONFDIR}/lua/regexp/headers.lua
CONF_FILES+= ${EGDIR}/lua/regexp/lotto.lua ${PKG_SYSCONFDIR}/lua/regexp/lotto.lua
CONF_FILES+= ${EGDIR}/lua/rspamd.classifiers.lua ${PKG_SYSCONFDIR}/lua/rspamd.classifiers.lua
CONF_FILES+= ${EGDIR}/lua/rspamd.lua ${PKG_SYSCONFDIR}/lua/rspamd.lua
CONF_FILES+= ${EGDIR}/metrics.conf ${PKG_SYSCONFDIR}/metrics.conf
CONF_FILES+= ${EGDIR}/modules.conf ${PKG_SYSCONFDIR}/modules.conf
CONF_FILES+= ${EGDIR}/options.conf ${PKG_SYSCONFDIR}/options.conf
CONF_FILES+= ${EGDIR}/rspamd.conf ${PKG_SYSCONFDIR}/rspamd.conf
CONF_FILES+= ${EGDIR}/statistic.conf ${PKG_SYSCONFDIR}/statistic.conf
CONF_FILES+= ${EGDIR}/surbl-whitelist.inc ${PKG_SYSCONFDIR}/surbl-whitelist.inc
CONF_FILES+= ${EGDIR}/workers.conf ${PKG_SYSCONFDIR}/workers.conf
post-extract:
cd ${WRKSRC} && chmod 644 conf/*
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../mail/gmime/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

55
mail/rspamd/PLIST Normal file
View file

@ -0,0 +1,55 @@
@comment $NetBSD: PLIST,v 1.1 2014/02/07 14:39:19 wiedi Exp $
bin/rspamc
bin/rspamc-${PKGVERSION}
bin/rspamd
bin/${PKGNAME}
include/rspamd/librspamdclient.h
lib/rspamd/librspamd-cdb.so
lib/rspamd/librspamd-cdb.so.${PKGVERSION}
lib/rspamd/librspamd-http-parser.so
lib/rspamd/librspamd-http-parser.so.${PKGVERSION}
lib/rspamd/librspamd-json.so
lib/rspamd/librspamd-json.so.${PKGVERSION}
lib/rspamd/librspamd-lua.so
lib/rspamd/librspamd-lua.so.${PKGVERSION}
lib/rspamd/librspamd-mime.so
lib/rspamd/librspamd-mime.so.${PKGVERSION}
lib/rspamd/librspamd-server.so
lib/rspamd/librspamd-server.so.${PKGVERSION}
lib/rspamd/librspamd-ucl.so
lib/rspamd/librspamd-ucl.so.${PKGVERSION}
lib/rspamd/librspamd-util.so
lib/rspamd/librspamd-util.so.${PKGVERSION}
lib/rspamd/librspamdclient.so
lib/rspamd/librspamdclient.so.${PKGVERSION}
lib/rspamd/librspamdclient_static.a
man/man1/rspamc.1
man/man8/rspamd.8
share/examples/rspamd/2tld.inc
share/examples/rspamd/composites.conf
share/examples/rspamd/logging.conf
share/examples/rspamd/lua/hfilter.lua
share/examples/rspamd/lua/regexp/drugs.lua
share/examples/rspamd/lua/regexp/fraud.lua
share/examples/rspamd/lua/regexp/headers.lua
share/examples/rspamd/lua/regexp/lotto.lua
share/examples/rspamd/lua/rspamd.classifiers.lua
share/examples/rspamd/lua/rspamd.lua
share/examples/rspamd/metrics.conf
share/examples/rspamd/modules.conf
share/examples/rspamd/options.conf
share/examples/rspamd/rspamd.conf
share/examples/rspamd/statistic.conf
share/examples/rspamd/surbl-whitelist.inc
share/examples/rspamd/workers.conf
share/rspamd/lua/emails.lua
share/rspamd/lua/forged_recipients.lua
share/rspamd/lua/ip_score.lua
share/rspamd/lua/maillist.lua
share/rspamd/lua/multimap.lua
share/rspamd/lua/once_received.lua
share/rspamd/lua/phishing.lua
share/rspamd/lua/ratelimit.lua
share/rspamd/lua/rbl.lua
share/rspamd/lua/trie.lua
share/rspamd/lua/whitelist.lua

5
mail/rspamd/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2014/02/07 14:39:19 wiedi Exp $
SHA1 (rspamd-0.6.8.tar.gz) = 23c0fcfb7adad9449d1c9aea06b180c166cd80e1
RMD160 (rspamd-0.6.8.tar.gz) = 42a76efe9a6b788463a81c18b41a251c42ba5723
Size (rspamd-0.6.8.tar.gz) = 1088445 bytes