diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2016-09-10 16:55:44 +0200 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-09-10 16:55:56 +0200 |
commit | 052b6bbf6cde1d2808849fffb459c675957dc217 (patch) | |
tree | 752773c00d3f38dc5bd5a8b21e6514f196debae5 /mail-filter/rspamd | |
parent | sys-devel/binutils-apple: bump to EAPI=5 and remove all conditional code from... (diff) | |
download | gentoo-052b6bbf6cde1d2808849fffb459c675957dc217.tar.gz gentoo-052b6bbf6cde1d2808849fffb459c675957dc217.tar.bz2 gentoo-052b6bbf6cde1d2808849fffb459c675957dc217.zip |
mail-filter/rspamd: version bump to 1.3.5 (fixes bug 593020, bug 592966)
Package-Manager: portage-2.2.28
Diffstat (limited to 'mail-filter/rspamd')
-rw-r--r-- | mail-filter/rspamd/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/rspamd/files/rspamd.init-r2 | 50 | ||||
-rw-r--r-- | mail-filter/rspamd/metadata.xml | 3 | ||||
-rw-r--r-- | mail-filter/rspamd/rspamd-1.3.5.ebuild | 68 |
4 files changed, 122 insertions, 0 deletions
diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest index 6c15fef0c1c9..dd9f39dcf722 100644 --- a/mail-filter/rspamd/Manifest +++ b/mail-filter/rspamd/Manifest @@ -2,3 +2,4 @@ DIST rspamd-1.2.8.tar.xz 1423888 SHA256 485438d8c38ada1a6e95c9ea1298d2c899d4ec61 DIST rspamd-1.3.2.tar.xz 1476656 SHA256 283227d8f38fcc4c5d4b913996b52f55370c5445ec6f8dbb550aec2bb2d46c2a SHA512 75a5526852cbd60e0b8f06f9b722a686f3ef59ae2a0f132018465fb9d104ca847d71a5e38343b288149ebc5ba9b4f749ba72551568e338e6509c5d2ac13bd061 WHIRLPOOL 82749f3f2afd3cf3289a6b4862220d2a04d84e0bd59079daa24427b34a754300f8cf0d5e7eea52cba7090cc2c07e005573bd481573f89e1bff59f741889a1ef7 DIST rspamd-1.3.3.tar.xz 1481836 SHA256 1296d3d0d97226e238c5d5954f58f2154bcbde4ba3ed45647b6b75da7a2e2b17 SHA512 9a1be238678bd9379000d2a7298308f7286ee4b8f1abb8c4f199d16a57183f91d29533533ceda244c382180cbdeb5e16c9b473899d3f0b813c8ea8519f8a7833 WHIRLPOOL 84d521746dc4a17648c82e11df56e3931dc37db413569f46bf8e2163c64b89c23700ee3567f4002863c624180b7efc8781b01d842060e7dc0f678e2ec8712709 DIST rspamd-1.3.4.tar.xz 1484632 SHA256 64fcabb3dc6767b5dc22c89f968414d1028f34ab8a21e1b22482aace069d527c SHA512 41a3aa9b699ca1e40d229ebc9c3fd41ef07ad99b0badda44481fe4ff3003000069352f58379fa47013f96d98b08430a3c7bea0d97cab4a7e6db17a9084b082d6 WHIRLPOOL ab5a25d673423e15ae77c704345307a555edcfad502d951da46ece04ef220baab056c80acdf898fa4e3748b644a41e9b9ee64b73333c1bebbc5e514be5c0310d +DIST rspamd-1.3.5.tar.xz 1483044 SHA256 d4413ccfc238c3023e2b8a9441b101a6437f521f333fc9db2dd924d473fee696 SHA512 6d7223c6be6e49296a5228d3d05a5f8dfd4a4002df9d247740bce75f2f652a01d86c30456b8475d08d529d2787aa30191713961ffc82c380c00612cae371b61c WHIRLPOOL 4017484d4653a23b5a987ab0bdd40a709cd5d116dea5c02a767c5cad94bd5399d6319aa8f75e726cec5d0bd7ae9e0722786cacc33963e2f9b8fbdd0fb0986729 diff --git a/mail-filter/rspamd/files/rspamd.init-r2 b/mail-filter/rspamd/files/rspamd.init-r2 new file mode 100644 index 000000000000..bf6f9ca8bcfe --- /dev/null +++ b/mail-filter/rspamd/files/rspamd.init-r2 @@ -0,0 +1,50 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_commands="checkconfig" +extra_started_commands="reload" + +RUNDIR=/var/run/rspamd +PIDFILE=$RUNDIR/rspamd.pid + +depend() { + need net +} + +checkconfig() { + /usr/bin/rspamadm configtest -c /etc/rspamd/rspamd.sysvinit.conf > /dev/null \ + || return 1 +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + + mkdir -m0750 -p $RUNDIR + chown rspamd:rspamd $RUNDIR + chmod g+s $RUNDIR + rm -f $RUNDIR/$SVCNAME.sock + + start-stop-daemon --start --quiet --pidfile $PIDFILE -u rspamd -g rspamd \ + --exec /usr/bin/rspamd + eend $? +} + +stop() { + if [ "${RC_CMD}" = "restart" ] ; then + checkconfig || return 1 + fi + + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE \ + --exec /usr/bin/rspamd + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDFILE + eend $? +} diff --git a/mail-filter/rspamd/metadata.xml b/mail-filter/rspamd/metadata.xml index 99b50408b516..aee0fd268f81 100644 --- a/mail-filter/rspamd/metadata.xml +++ b/mail-filter/rspamd/metadata.xml @@ -8,4 +8,7 @@ <upstream> <remote-id type="github">vstakhov/rspamd</remote-id> </upstream> + <use> + <flag name="fann">Enable neural network plugin (requires <pkg>sci-mathematics/fann</pkg>).</flag> + </use> </pkgmetadata> diff --git a/mail-filter/rspamd/rspamd-1.3.5.ebuild b/mail-filter/rspamd/rspamd-1.3.5.ebuild new file mode 100644 index 000000000000..517936550ad5 --- /dev/null +++ b/mail-filter/rspamd/rspamd-1.3.5.ebuild @@ -0,0 +1,68 @@ +# 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="fann +jit" + +RDEPEND="dev-libs/openssl:0[-bindist] + fann? ( sci-mathematics/fann ) + 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" +DEPEND="dev-util/ragel + ${RDEPEND}" + +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) + -DENABLE_FANN=$(usex fann ON OFF) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + newinitd "${FILESDIR}/rspamd.init-r2" 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 +} |