Date: Thu, 25 May 2017 10:35:56 +0000 (UTC) From: Vsevolod Stakhov <vsevolod@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441675 - in head/mail/rspamd: . files Message-ID: <201705251035.v4PAZuCj058060@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vsevolod Date: Thu May 25 10:35:55 2017 New Revision: 441675 URL: https://svnweb.freebsd.org/changeset/ports/441675 Log: - Update to 1.5.8 - Backport IPv6 bugfix from the upstream - Remove obsoleted redirector support Added: head/mail/rspamd/files/patch-ipv6-support (contents, props changed) Modified: head/mail/rspamd/Makefile head/mail/rspamd/distinfo head/mail/rspamd/pkg-plist Modified: head/mail/rspamd/Makefile ============================================================================== --- head/mail/rspamd/Makefile Thu May 25 10:29:01 2017 (r441674) +++ head/mail/rspamd/Makefile Thu May 25 10:35:55 2017 (r441675) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= rspamd -PORTVERSION= 1.5.7 +PORTVERSION= 1.5.8 CATEGORIES= mail MAINTAINER= vsevolod@FreeBSD.org @@ -18,10 +18,9 @@ BUILD_DEPENDS= ragel:devel/ragel CONFLICTS_INSTALL= rspamd-devel -OPTIONS_DEFINE= GPERF REDIRECTOR HYPERSCAN GD CGP +OPTIONS_DEFINE= GPERF HYPERSCAN GD CGP OPTIONS_DEFAULT= GD GPERF_DESC= Google perf-tools profiling -REDIRECTOR_DESC= Install HTTP redirector HYPERSCAN_DESC= Use hyperscan optimizations (amd64 only) GD_DESC= Enable libgd support for images fuzzy hashes CGP_DESC= Install Communigate Pro(tm) helper @@ -72,26 +71,6 @@ GH_ACCOUNT= vstakhov ONLY_FOR_ARCHS= amd64 .endif -.if ${PORT_OPTIONS:MREDIRECTOR} - USE_PERL5+= run - CMAKE_ARGS+= -DENABLE_REDIRECTOR=ON - PLIST_SUB+= REDIRECTOR="" - USE_RC_SUBR+= rspamd_redirector - RUN_DEPENDS+= \ - p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL \ - p5-IO-String>=0:devel/p5-IO-String \ - p5-XML-Parser>=0:textproc/p5-XML-Parser \ - p5-Term-ReadKey>=0:devel/p5-Term-ReadKey \ - p5-POE-Component-Client-DNS>=0:dns/p5-POE-Component-Client-DNS \ - p5-POE-Component-Client-HTTP>=0:www/p5-POE-Component-Client-HTTP \ - p5-POE-Component-Server-HTTP>=0:www/p5-POE-Component-Server-HTTP \ - p5-Cache-Memcached-Fast>=0:databases/p5-Cache-Memcached-Fast \ - p5-Proc-PidUtil>=0:sysutils/p5-Proc-PidUtil \ - p5-Proc-Daemon>=0:devel/p5-Proc-Daemon -.else - PLIST_SUB+= REDIRECTOR="@comment " -.endif - .if ${PORT_OPTIONS:MCGP} USE_PERL5+= run PLIST_SUB+= CGP="" Modified: head/mail/rspamd/distinfo ============================================================================== --- head/mail/rspamd/distinfo Thu May 25 10:29:01 2017 (r441674) +++ head/mail/rspamd/distinfo Thu May 25 10:35:55 2017 (r441675) @@ -1,3 +1,3 @@ -TIMESTAMP = 1493732063 -SHA256 (vstakhov-rspamd-1.5.7_GH0.tar.gz) = 73d18b129a072e35c74c9a440abdd0985fa15696d308a5e23736ec007432fd70 -SIZE (vstakhov-rspamd-1.5.7_GH0.tar.gz) = 2384051 +TIMESTAMP = 1495707999 +SHA256 (vstakhov-rspamd-1.5.8_GH0.tar.gz) = 1c414396e02df52b3a31914cad51a4ca8f9947af619db7221b98c9aa04907668 +SIZE (vstakhov-rspamd-1.5.8_GH0.tar.gz) = 2385290 Added: head/mail/rspamd/files/patch-ipv6-support ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/rspamd/files/patch-ipv6-support Thu May 25 10:35:55 2017 (r441675) @@ -0,0 +1,29 @@ +diff --git a/src/libutil/addr.c b/src/libutil/addr.c +index 1687c80bd..ee70a90f4 100644 +--- src/libutil/addr.c ++++ src/libutil/addr.c +@@ -287,8 +287,6 @@ rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **target, + addr->slen = len; + + if (addr->af == AF_UNIX) { +- addr->u.un = g_slice_alloc0 (sizeof (*addr->u.un)); +- /* Get name from the listening socket */ + len = sizeof (su); + + if (getsockname (sock, &su.sa, &len) != -1) { +diff --git a/src/libutil/addr.c b/src/libutil/addr.c +index ee70a90f4..9a278a432 100644 +--- src/libutil/addr.c ++++ src/libutil/addr.c +@@ -280,6 +280,11 @@ rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **target, + sizeof (struct in6_addr)); + } + } ++ else { ++ addr = rspamd_inet_addr_create (AF_INET6); ++ memcpy (&addr->u.in.addr.s6.sin6_addr, &su.s6.sin6_addr, ++ sizeof (struct in6_addr)); ++ } + + } + else { Modified: head/mail/rspamd/pkg-plist ============================================================================== --- head/mail/rspamd/pkg-plist Thu May 25 10:29:01 2017 (r441674) +++ head/mail/rspamd/pkg-plist Thu May 25 10:35:55 2017 (r441675) @@ -5,7 +5,6 @@ bin/rspamadm-%%RSPAMDVERSION%% bin/rspamadm bin/rspamc-%%RSPAMDVERSION%% bin/rspamc -%%REDIRECTOR%%bin/rspamd-redirector %%CGP%%bin/rspamd-cgp-helper @sample %%ETCDIR%%/2tld.inc.sample @sample %%ETCDIR%%/mime_types.inc.sample
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705251035.v4PAZuCj058060>