summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2016-07-25 21:08:12 +0200
committerDirkjan Ochtman <djc@gentoo.org>2016-07-25 21:08:43 +0200
commit1a9de2caed70c22fd16024695d5a428bad43ba43 (patch)
treedbbcf4c55a4c70b2c11d65463baa5a51f4f70d4a /mail-filter/rspamd
parentmail-filter/rmilter: version bump to 1.9.0 (diff)
downloadgentoo-1a9de2caed70c22fd16024695d5a428bad43ba43.tar.gz
gentoo-1a9de2caed70c22fd16024695d5a428bad43ba43.tar.bz2
gentoo-1a9de2caed70c22fd16024695d5a428bad43ba43.zip
mail-filter/rspamd: version bump to 1.3.0
Package-Manager: portage-2.2.28
Diffstat (limited to 'mail-filter/rspamd')
-rw-r--r--mail-filter/rspamd/Manifest1
-rw-r--r--mail-filter/rspamd/rspamd-1.3.0.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest
index 002e0de9bd40..5cec9d09a387 100644
--- a/mail-filter/rspamd/Manifest
+++ b/mail-filter/rspamd/Manifest
@@ -1,2 +1,3 @@
DIST rspamd-1.2.7.tar.xz 1423600 SHA256 7a19b2f49cb39d5839785d261a2d6d0d9cca24e760d5adb2b597b1eeb0831c3a SHA512 e87d1b4689224e340035d9e8faa60db9070edc6656235279c2e561ad25a0c87f3d4401dc5a05045fc7ab7bb3fd0333a10dea973a910ca228acc6336074b3d7d9 WHIRLPOOL 9db654d14cf2012ae79580f54a7c124d900b548a93971e2c04210eb18142f733bad3a66a5e7e723f6b2c300676abd7189a25e22cdc22d7e03f9b2ebef972b259
DIST rspamd-1.2.8.tar.xz 1423888 SHA256 485438d8c38ada1a6e95c9ea1298d2c899d4ec618f1dd5f539663522c506eb2b SHA512 21ca76636ce1482233cb3631343e827678d07e0db21e8c0b3961a8124aba4260f2c4f1a4dc110c5689b02707951f28c2ee0e72d1e8cd5c49d9b73fbf688a6056 WHIRLPOOL cdbefbfa3f76b58229c945efc875321950d4981364eb942b83c8a3f12f3e482c83f969b26ebbbddfe6a49d6e72c7c5dee505ba54ac570fb22bbd40a21c17aa53
+DIST rspamd-1.3.0.tar.xz 1461004 SHA256 42a15ab3507e50beb10f35b7db5ae1fcdb35d47f5cae51c83713a241ff730b1b SHA512 abbacc635a98bd17b148f173859557c47ff9e25561928dbb3d67c8ab3102d9a03793d14152bae3b1c36131b1983a601799db11a8018593d5796e511f907d67ef WHIRLPOOL 3ee8ba1d7cda2ca0fc4a2c031e8fbbd4ec14a58aaaa00dfb2b7716c07931160bf516d0b2e68dcba99f89ac83c8441cf4263956ac6f1ef97e05a5a3695b6da0bd
diff --git a/mail-filter/rspamd/rspamd-1.3.0.ebuild b/mail-filter/rspamd/rspamd-1.3.0.ebuild
new file mode 100644
index 000000000000..473c9bdd460f
--- /dev/null
+++ b/mail-filter/rspamd/rspamd-1.3.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils user systemd
+
+DESCRIPTION="Rapid spam filtering system"
+SRC_URI="https://rspamd.com/downloads/${P}.tar.xz"
+HOMEPAGE="https://github.com/vstakhov/rspamd"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+jit"
+
+DEPEND="dev-libs/openssl:0[-bindist]
+ jit? (
+ dev-libs/libpcre[jit]
+ dev-lang/luajit:2
+ )
+ !jit? (
+ dev-libs/libpcre[-jit]
+ >=dev-lang/lua-5.1:0
+ )
+ dev-libs/libevent
+ dev-db/sqlite:3
+ dev-libs/glib:2
+ dev-libs/gmime
+ dev-util/ragel
+ sys-apps/file
+ virtual/libiconv"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup rspamd
+ enewuser rspamd -1 -1 /var/lib/rspamd rspamd
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCONFDIR=/etc/rspamd
+ -DRUNDIR=/var/run/rspamd
+ -DDBDIR=/var/lib/rspamd
+ -DLOGDIR=/var/log/rspamd
+ -DENABLE_LUAJIT=$(usex jit ON OFF)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}/rspamd.init-r1" rspamd
+
+ dodir /var/lib/rspamd
+ dodir /var/log/rspamd
+
+ fowners rspamd:rspamd /var/lib/rspamd /var/log/rspamd
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/rspamd.logrotate" rspamd
+
+ systemd_newunit rspamd.service rspamd.service
+ systemd_newunit rspamd.socket rspamd.socket
+}