From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2DEA158973 for ; Wed, 27 Jan 2016 14:20:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 192BE21C007; Wed, 27 Jan 2016 14:20:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B741221C007 for ; Wed, 27 Jan 2016 14:20:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 976F9340AA7 for ; Wed, 27 Jan 2016 14:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50534E5F for ; Wed, 27 Jan 2016 14:20:18 +0000 (UTC) From: "Dirkjan Ochtman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dirkjan Ochtman" Message-ID: <1453904396.874208a76e2a02d6a911f5612ffa1dbdc34248fb.djc@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/rspamd/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/rspamd/rspamd-1.1.1-r1.ebuild X-VCS-Directories: mail-filter/rspamd/ X-VCS-Committer: djc X-VCS-Committer-Name: Dirkjan Ochtman X-VCS-Revision: 874208a76e2a02d6a911f5612ffa1dbdc34248fb X-VCS-Branch: master Date: Wed, 27 Jan 2016 14:20:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 69d22980-640f-4454-8577-713908f5a0e8 X-Archives-Hash: d63c759f1de20ba5cef6e86c58789f66 commit: 874208a76e2a02d6a911f5612ffa1dbdc34248fb Author: Dirkjan Ochtman gentoo org> AuthorDate: Wed Jan 27 14:19:34 2016 +0000 Commit: Dirkjan Ochtman gentoo org> CommitDate: Wed Jan 27 14:19:56 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=874208a7 mail-filter/rspamd: add jit USE flag (fixes bug 572682) mail-filter/rspamd/rspamd-1.1.1-r1.ebuild | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/mail-filter/rspamd/rspamd-1.1.1-r1.ebuild b/mail-filter/rspamd/rspamd-1.1.1-r1.ebuild new file mode 100644 index 0000000..c5ecabb --- /dev/null +++ b/mail-filter/rspamd/rspamd-1.1.1-r1.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="BSD-2" +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) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/rspamd.init" 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 +}