summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2016-02-20 11:33:14 +0100
committerDirkjan Ochtman <djc@gentoo.org>2016-02-20 11:34:48 +0100
commit008a22bc4248ba012a6d9830f534344b323d24b0 (patch)
treeaf3c8bec2d80ebd406ea0c2ef552ce1a0e7f90a9 /mail-filter/rspamd
parentapp-dicts/dictd-wn: Old. (diff)
downloadgentoo-008a22bc4248ba012a6d9830f534344b323d24b0.tar.gz
gentoo-008a22bc4248ba012a6d9830f534344b323d24b0.tar.bz2
gentoo-008a22bc4248ba012a6d9830f534344b323d24b0.zip
mail-filter/rspamd: version bump to 1.1.3 (fixed luajit configuration)
Package-Manager: portage-2.2.26
Diffstat (limited to 'mail-filter/rspamd')
-rw-r--r--mail-filter/rspamd/Manifest1
-rw-r--r--mail-filter/rspamd/rspamd-1.1.3.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest
index 0f256421dbe..5e36267429c 100644
--- a/mail-filter/rspamd/Manifest
+++ b/mail-filter/rspamd/Manifest
@@ -1,2 +1,3 @@
DIST rspamd-1.1.1.tar.xz 1291968 SHA256 3c4bda66b533861a84d82ea26bd7c19ccd1b1befe8b3e33a0fc211c036569a06 SHA512 c971000f9e6c09ae8c4a175fcd96471efa3f5e73689b038a45cc2212dcf296babfd4000fa41f0451b2fdd989e00192cbb234a73cef026c16466bfe78b04b5385 WHIRLPOOL e1ef4042e9a38bcff20a2a3ea0e9fa29fa813adede28867e176d3aeff952fe243fd4a083a60d810fe16c1ad22e6489583b50a38825bc20c338ddf1710f9294da
DIST rspamd-1.1.2.tar.xz 1351768 SHA256 211a0ff0c83d3ef4b586f59b0d3d6e12b9e10b2a2c72894c5f9116e649fb6d41 SHA512 78bbcd0130f3449b5e50f57049b1a0bca48bcfda808e08108c8dc2bfe2bb4a286b2d74084b8b9619299499105e3bf7085d086cc4cb929eb03e427c80aa49021c WHIRLPOOL 953b2d4dbe13d14c45adf445a3b7a4e039083cd44b7ea90a0bedb039962cc1f82b664ab12f6eebb2c7c5783c2433c5d955973bd333f894d4075b58ef1d07e6a5
+DIST rspamd-1.1.3.tar.xz 1357696 SHA256 8604e980a81d6586d18d02f90236c83384754ef1debce0b4f0ca32f87e1ec135 SHA512 42152dd64f6265e3a17d6d53b041ded3b4a262e4d63237bc11e21dca96a4946334ab33c13fffa779b95717ed48629a9cc7a79f1af897d4dd3a831f7c121061ed WHIRLPOOL f9164ff3373bc928414b49d27fedff1d2990f4e01646f4959d759d9b3e4737aa77cced4de9bd9f8548145729fbdb765da78295b2d2e610c0f2bedb29b29ebd73
diff --git a/mail-filter/rspamd/rspamd-1.1.3.ebuild b/mail-filter/rspamd/rspamd-1.1.3.ebuild
new file mode 100644
index 00000000000..5656b031ce3
--- /dev/null
+++ b/mail-filter/rspamd/rspamd-1.1.3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils user
+
+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
+ 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
+ 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
+}