summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2016-02-22 20:51:29 +0100
committerDirkjan Ochtman <djc@gentoo.org>2016-02-22 20:51:29 +0100
commit0d16dd1119dcbbc4b7f14dc9e0c27efce74be7a3 (patch)
tree0d1fd75a710eed0816dad1fff20a6463fb69c1f4 /mail-filter/rspamd
parentmail-filter/rmilter: version bump to 1.7.4 (diff)
downloadgentoo-0d16dd1119dcbbc4b7f14dc9e0c27efce74be7a3.tar.gz
gentoo-0d16dd1119dcbbc4b7f14dc9e0c27efce74be7a3.tar.bz2
gentoo-0d16dd1119dcbbc4b7f14dc9e0c27efce74be7a3.zip
mail-filter/rspamd: version bump to 1.1.4
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.4.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest
index c4d65d77ef3..99160f68ca3 100644
--- a/mail-filter/rspamd/Manifest
+++ b/mail-filter/rspamd/Manifest
@@ -1 +1,2 @@
DIST rspamd-1.1.3.tar.xz 1357696 SHA256 8604e980a81d6586d18d02f90236c83384754ef1debce0b4f0ca32f87e1ec135 SHA512 42152dd64f6265e3a17d6d53b041ded3b4a262e4d63237bc11e21dca96a4946334ab33c13fffa779b95717ed48629a9cc7a79f1af897d4dd3a831f7c121061ed WHIRLPOOL f9164ff3373bc928414b49d27fedff1d2990f4e01646f4959d759d9b3e4737aa77cced4de9bd9f8548145729fbdb765da78295b2d2e610c0f2bedb29b29ebd73
+DIST rspamd-1.1.4.tar.xz 1357172 SHA256 7186d0448aaddc1e347af580e7ec14e34ff38859db99bf2173139a6bbc18821d SHA512 de4afb82beba9d8d28a6cf6d7eb222806671fcca51114b9668fe0484c5a2b0680763d3fe6095cb7d4b301991a5f17effef6cfbf70d6d98c8e79476bbdb8b6ee3 WHIRLPOOL 0dab7e399a9319e82c1cacbf856cf4977376f78b12aa7de563912f6a5ed6280a8ec2b2bd0a07fe46dc684112b725717fb4fb9031b9d9d69ac2da59ba98724dea
diff --git a/mail-filter/rspamd/rspamd-1.1.4.ebuild b/mail-filter/rspamd/rspamd-1.1.4.ebuild
new file mode 100644
index 00000000000..5656b031ce3
--- /dev/null
+++ b/mail-filter/rspamd/rspamd-1.1.4.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
+}