svn commit: r548796 - in head/mail/pflogsumm: . files

Florian Smeets flo at FreeBSD.org
Wed Sep 16 20:00:12 UTC 2020


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 at 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*$/;


More information about the svn-ports-all mailing list