diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2016-12-18 16:41:44 +0100 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2016-12-18 16:41:44 +0100 |
commit | 322dc520f4d40d077ff42fc79010401463075523 (patch) | |
tree | 909a7b6355a5ef80924439b7b34d7105c14f301f /mail-filter | |
parent | app-text/wgetpaste: merge "Add SSL support" (diff) | |
download | gentoo-322dc520f4d40d077ff42fc79010401463075523.tar.gz gentoo-322dc520f4d40d077ff42fc79010401463075523.tar.bz2 gentoo-322dc520f4d40d077ff42fc79010401463075523.zip |
mail-filter/rspamd: version bump to 1.4.1 (fixes bug 602980)
Package-Manager: portage-2.3.0
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/rspamd/Manifest | 1 | ||||
-rw-r--r-- | mail-filter/rspamd/files/rspamd.init-r3 | 50 | ||||
-rw-r--r-- | mail-filter/rspamd/rspamd-1.4.1.ebuild | 71 |
3 files changed, 122 insertions, 0 deletions
diff --git a/mail-filter/rspamd/Manifest b/mail-filter/rspamd/Manifest index f0a95189fcbe..ae5b36c33a28 100644 --- a/mail-filter/rspamd/Manifest +++ b/mail-filter/rspamd/Manifest @@ -1,2 +1,3 @@ DIST rspamd-1.3.5.tar.xz 1483044 SHA256 d4413ccfc238c3023e2b8a9441b101a6437f521f333fc9db2dd924d473fee696 SHA512 6d7223c6be6e49296a5228d3d05a5f8dfd4a4002df9d247740bce75f2f652a01d86c30456b8475d08d529d2787aa30191713961ffc82c380c00612cae371b61c WHIRLPOOL 4017484d4653a23b5a987ab0bdd40a709cd5d116dea5c02a767c5cad94bd5399d6319aa8f75e726cec5d0bd7ae9e0722786cacc33963e2f9b8fbdd0fb0986729 DIST rspamd-1.4.0.tar.xz 1769860 SHA256 30c9acf93bdcc6c009524c8b2770931475929c6c9e948faa90d7412306055a1c SHA512 39bfccee070b829f3ea5019ebde0020a850abf7fe92f7e5bb5b9212088d4c98544e6f55228984d3422c09c31f356b209237da6a6eb9c18e3feb7940429de663a WHIRLPOOL 449a15148067e4af38ca7d4218dca69064679d1a064c53d0edf99e63418d6a898fd80cdfce8707f706f19da659d44efadedab3a7ea8c3dcd54c65794f695e3d0 +DIST rspamd-1.4.1.tar.xz 1779492 SHA256 11e39e4b44a85feaf546696d28a72ffc32e35c01a028a251d5175ba58343eb28 SHA512 bc3be3f20a9692a5d188d9a254ad459dba4ca01ae3c917689943be7eed85e17ab638e0d0b9f4dd574864b4f39eb7a728b7b0ecf3088727a92dfb99a2df4a5a6d WHIRLPOOL 1cbe02c664596cd467f2f955691ec79c70ccf23a89cadf8853a1881264d555af248a1503a58da1df59142c73193074af556ca768aad349b832b95314f61615d5 diff --git a/mail-filter/rspamd/files/rspamd.init-r3 b/mail-filter/rspamd/files/rspamd.init-r3 new file mode 100644 index 000000000000..974696b76f58 --- /dev/null +++ b/mail-filter/rspamd/files/rspamd.init-r3 @@ -0,0 +1,50 @@ +#!/sbin/openrc-run +# Copyright 2015-2016 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 --signal HUP --quiet --pidfile $PIDFILE + eend $? +} diff --git a/mail-filter/rspamd/rspamd-1.4.1.ebuild b/mail-filter/rspamd/rspamd-1.4.1.ebuild new file mode 100644 index 000000000000..c10e32e373db --- /dev/null +++ b/mail-filter/rspamd/rspamd-1.4.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils pax-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 libressl" + +RDEPEND="!libressl? ( dev-libs/openssl:0[-bindist] ) + libressl? ( dev-libs/libressl:0 ) + 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 + pax-mark m "${ED}"/usr/bin/rspamadm-* + pax-mark m "${ED}"/usr/bin/rspamd-* + newinitd "${FILESDIR}/rspamd.init-r3" 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 +} |