summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2025-05-19 09:21:03 -0400
committerJoe Marcus Clarke <marcus@FreeBSD.org>2025-05-19 09:21:03 -0400
commitedd8241043811a949b6c3d8b0277cc6b8907d6f0 (patch)
tree40598644f43128c010ba05ed74616b1b398e95f5
parentnet/bird3: Update to 3.1.1 (diff)
net-mgmt/rancid3: Be less verbose with EdgeMax devices
Ignore a few transient lines in EdgeMax device output to cut down on the noise.
-rw-r--r--net-mgmt/rancid3/Makefile1
-rw-r--r--net-mgmt/rancid3/files/patch-lib_edgemax.pm.in17
2 files changed, 18 insertions, 0 deletions
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