From 48d4be119d75fab0920370c9fe45481c0cc7f1bb Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 26 Apr 2016 21:29:09 +0200 Subject: [PATCH] mail-filter/rspamd: version bump to 1.2.5 (see bug 580826) Package-Manager: portage-2.2.26 --- mail-filter/rspamd/Manifest | 1 + mail-filter/rspamd/rspamd-1.2.5.ebuild | 62 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 mail-filter/rspamd/rspamd-1.2.5.ebuild diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest index 6c79ea1be5d7c..0eb7268eff687 100644 --- a/mail-filter/rspamd/Manifest +++ b/mail-filter/rspamd/Manifest @@ -4,3 +4,4 @@ DIST rspamd-1.2.0.tar.xz 1406832 SHA256 1a287608787bfdd59137ae511bafeaca3c4d2faf DIST rspamd-1.2.1.tar.xz 1407348 SHA256 fa4379d047c2b8f029500db69a6c2e8e2ca36f6b187ea49ee5e8892c5236392a SHA512 95666417eb4f3dd3e5153b5b578efdf926014f084be556c7e471c50e386d7bb453f8c11935bcb8af2e0a86550452d39d54fb6630762ca621c6179af4977a5386 WHIRLPOOL 03b0dcc44b9c7718764c6fc81a2109e99cae16734dd5edcb5c49e6047d2877e37e005814e7390b1a3d5fa8991b4f3e50f5d42f9b6a550b753b5dc9dbb871aa1f DIST rspamd-1.2.2.tar.xz 1409272 SHA256 3e46509194f28ac36dc1d9a24d68afffed6e20e1a5e0cdb8573ec4fdd80eec73 SHA512 ef2c425d279a1c5d16c7b319d859bf3c8546a9705f313a194d1e536a2cc2adf139f44b95578ca44195845de158783035af3c0424e60b864ccfa233b041cce68f WHIRLPOOL 0443f8e1d4193ad220411c744429137b84aea9679bb54b218b96f4f00f8205e8134255501a10e5c37770ba0c8171e38201ecee365ee928885d6c43c88ac76459 DIST rspamd-1.2.3.tar.xz 1419080 SHA256 18d41ee46993c51a5aed41b6734304b15e7b98bf0ab3c5855a57851eeb08b724 SHA512 f1b41d8cbd23f609e70031418eca726505f78f5e1cbf6b84ae34386c3635fb8e5786976816c1437524f02f6ba1abd714c9e90cf0fb05990b3ef0f5e49a296618 WHIRLPOOL cd13dc649fd861e4dc990a4ca983d5a2e38adb236e50f043deafa5082261bc0cd85081cc8e7adbbece98b11b8f8c7ccb718308342892f6a1424c663a2541f828 +DIST rspamd-1.2.5.tar.xz 1421372 SHA256 d31cd2d3c0d3511dda61d277b1c782d17f45ff45048e25f0d89f77fb8fe78748 SHA512 8b967f962aab12afe20854ba66d6f98128b1069473a35b88920f2cb429d4c5ea955040ad58fe49c5b4a18243eb42926f92ae6027b3099b3c0469799db82e4bd1 WHIRLPOOL 622e875488fb19ce1e080f06adae2fcb1b6776a813bdcb13d1c6e4e7c5735d17ea47c2d4cc9bbcc632cda714a2bc33241f8fbe0f57e0d0438538610b8c6d16a3 diff --git a/mail-filter/rspamd/rspamd-1.2.5.ebuild b/mail-filter/rspamd/rspamd-1.2.5.ebuild new file mode 100644 index 0000000000000..5656b031ce368 --- /dev/null +++ b/mail-filter/rspamd/rspamd-1.2.5.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 +}