git: edd824104381 - main - net-mgmt/rancid3: Be less verbose with EdgeMax devices

From: Joe Marcus Clarke <marcus_at_FreeBSD.org>
Date: Mon, 19 May 2025 13:22:15 UTC
The branch main has been updated by marcus:

URL: https://cgit.FreeBSD.org/ports/commit/?id=edd8241043811a949b6c3d8b0277cc6b8907d6f0

commit edd8241043811a949b6c3d8b0277cc6b8907d6f0
Author:     Joe Marcus Clarke <marcus@FreeBSD.org>
AuthorDate: 2025-05-19 13:21:03 +0000
Commit:     Joe Marcus Clarke <marcus@FreeBSD.org>
CommitDate: 2025-05-19 13:21:03 +0000

    net-mgmt/rancid3: Be less verbose with EdgeMax devices
    
    Ignore a few transient lines in EdgeMax device output to cut down on the
    noise.
---
 net-mgmt/rancid3/Makefile                      |  1 +
 net-mgmt/rancid3/files/patch-lib_edgemax.pm.in | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/net-mgmt/rancid3/Makefile b/net-mgmt/rancid3/Makefile
index aeaf5e9509cb..7fea86fa8003 100644
--- a/net-mgmt/rancid3/Makefile
+++ b/net-mgmt/rancid3/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	rancid
 PORTVERSION=	3.14
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	ftp://ftp.shrubbery.net/pub/rancid/
 PKGNAMESUFFIX=	3
diff --git a/net-mgmt/rancid3/files/patch-lib_edgemax.pm.in b/net-mgmt/rancid3/files/patch-lib_edgemax.pm.in
new file mode 100644
index 000000000000..1e7b176f5f89
--- /dev/null
+++ b/net-mgmt/rancid3/files/patch-lib_edgemax.pm.in
@@ -0,0 +1,17 @@
+--- lib/edgemax.pm.in.orig	2025-05-19 13:16:15 UTC
++++ lib/edgemax.pm.in
+@@ -237,9 +237,11 @@ sub WriteTerm {
+ 	next if (/^\s*$/);
+ 	$linecnt++;
+ 
+-	/^!current configuration\s*:/i && next;
+-	/^!system (description|software|up\s?time)/i && next;
+-	/^!current sntp synch/i && next;
++        /^!\s?current configuration\s*:/i && next;
++        /^!\s?system (description|software|up\s?time)/i && next;
++        /^!\s?current sntp synch/i && next;
++        /^!\s?config created time/i && next;
++        /^show running-config/ && next;
+ 	/^$/ && next;						# blank lines
+ 
+ 	/^ length /		&& next; # kill length on serial lines