summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-02-07 14:39:19 +0000
committerwiedi <wiedi@pkgsrc.org>2014-02-07 14:39:19 +0000
commit6b2524c4ae6dad2d01f845ce48ac678e8aaee3b9 (patch)
tree00d54e1aa274e9e9869d06ebfc82da46a08a3896 /mail
parentacbe00f924d79830d7009523b2060383adb34c72 (diff)
downloadpkgsrc-6b2524c4ae6dad2d01f845ce48ac678e8aaee3b9.tar.gz
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.
Diffstat (limited to 'mail')
-rw-r--r--mail/rspamd/DESCR3
-rw-r--r--mail/rspamd/Makefile51
-rw-r--r--mail/rspamd/PLIST55
-rw-r--r--mail/rspamd/distinfo5
4 files changed, 114 insertions, 0 deletions
diff --git a/mail/rspamd/DESCR b/mail/rspamd/DESCR
new file mode 100644
index 00000000000..1a571c9fc71
--- /dev/null
+++ b/mail/rspamd/DESCR
@@ -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.
diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile
new file mode 100644
index 00000000000..bdeea20333b
--- /dev/null
+++ b/mail/rspamd/Makefile
@@ -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"
diff --git a/mail/rspamd/PLIST b/mail/rspamd/PLIST
new file mode 100644
index 00000000000..a53a9aa0a07
--- /dev/null
+++ b/mail/rspamd/PLIST
@@ -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
diff --git a/mail/rspamd/distinfo b/mail/rspamd/distinfo
new file mode 100644
index 00000000000..f3e33b0db20
--- /dev/null
+++ b/mail/rspamd/distinfo
@@ -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