Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2020 20:00:11 +0000 (UTC)
From:      Florian Smeets <flo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r548796 - in head/mail/pflogsumm: . files
Message-ID:  <202009162000.08GK0BBT070816@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: flo
Date: Wed Sep 16 20:00:11 2020
New Revision: 548796
URL: https://svnweb.freebsd.org/changeset/ports/548796

Log:
  Fix warnings when maillog contains IPv6 addresses
  
  PR:		249146
  Submitted by:	Éric Masson <emss@free.fr>
  Obtained from:	https://bugzilla.redhat.com/show_bug.cgi?id=1384871

Added:
  head/mail/pflogsumm/files/
  head/mail/pflogsumm/files/patch-pflogsumm.pl   (contents, props changed)
Modified:
  head/mail/pflogsumm/Makefile

Modified: head/mail/pflogsumm/Makefile
==============================================================================
--- head/mail/pflogsumm/Makefile	Wed Sep 16 19:40:55 2020	(r548795)
+++ head/mail/pflogsumm/Makefile	Wed Sep 16 20:00:11 2020	(r548796)
@@ -3,6 +3,7 @@
 
 PORTNAME=	pflogsumm
 PORTVERSION=	1.1.5
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	mail
 MASTER_SITES=	http://jimsun.LinxNet.com/downloads/ \

Added: head/mail/pflogsumm/files/patch-pflogsumm.pl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/pflogsumm/files/patch-pflogsumm.pl	Wed Sep 16 20:00:11 2020	(r548796)
@@ -0,0 +1,11 @@
+--- pflogsumm.pl.orig	2020-09-06 10:15:06.176055000 +0200
++++ pflogsumm.pl	2020-09-06 10:15:43.839326000 +0200
+@@ -1536,7 +1536,7 @@
+     # split domain/ipaddr into separates
+     # newer versions of Postfix have them "dom.ain[i.p.add.ress]"
+     # older versions of Postfix have them "dom.ain/i.p.add.ress"
+-    unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3})\]/) == 2 ||
++    unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3}|[0-9a-f:]+)\]/o) == 2 ||
+            (($domain, $ipAddr) = /^([^\/]+)\/([0-9a-f.:]+)/i) == 2) {
+ 	# more exhaustive method
+         ($domain, $ipAddr) = /^([^\[\(\/]+)[\[\(\/]([^\]\)]+)[\]\)]?:?\s*$/;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009162000.08GK0BBT070816>