FreeBSD Bugzilla – Attachment 238035 Details for
Bug 267731
[NEW PORT] sysutils/egress-monitor: Set network interface groups based on default routes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
egress-monitor.patch
0001-Egress-monitor-initial-port.patch (text/plain), 3.79 KB, created by
Goran Mekić
on 2022-11-12 19:38:15 UTC
(
hide
)
Description:
egress-monitor.patch
Filename:
MIME Type:
Creator:
Goran Mekić
Created:
2022-11-12 19:38:15 UTC
Size:
3.79 KB
patch
obsolete
>From 96d0b77a935d8d4687d1100648b88a05967893f7 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Goran=20Meki=C4=87?= <meka@tilda.center> >Date: Fri, 11 Nov 2022 12:02:30 +0100 >Subject: [PATCH] Egress monitor initial port > >PR: 267731 >--- > sysutils/Makefile | 1 + > sysutils/egress-monitor/Makefile | 22 +++++++++++++++++++ > sysutils/egress-monitor/distinfo | 3 +++ > .../egress-monitor/files/egress-monitor.in | 20 +++++++++++++++++ > sysutils/egress-monitor/files/pkg-message.in | 8 +++++++ > sysutils/egress-monitor/pkg-descr | 4 ++++ > 6 files changed, 58 insertions(+) > create mode 100644 sysutils/egress-monitor/Makefile > create mode 100644 sysutils/egress-monitor/distinfo > create mode 100644 sysutils/egress-monitor/files/egress-monitor.in > create mode 100644 sysutils/egress-monitor/files/pkg-message.in > create mode 100644 sysutils/egress-monitor/pkg-descr > >diff --git a/sysutils/Makefile b/sysutils/Makefile >index a59b7afef052..689b10b06a34 100644 >--- a/sysutils/Makefile >+++ b/sysutils/Makefile >@@ -335,6 +335,7 @@ > SUBDIR += eclat > SUBDIR += edid-decode > SUBDIR += edk2 >+ SUBDIR += egress-monitor > SUBDIR += eject > SUBDIR += eksctl > SUBDIR += endian >diff --git a/sysutils/egress-monitor/Makefile b/sysutils/egress-monitor/Makefile >new file mode 100644 >index 000000000000..c0621f6dff23 >--- /dev/null >+++ b/sysutils/egress-monitor/Makefile >@@ -0,0 +1,22 @@ >+PORTNAME= egress-monitor >+DISTVERSION= 0.0.3 >+CATEGORIES= sysutils >+ >+MAINTAINER= meka@tilda.center >+COMMENT= Set network interface groups based on default routes >+WWW= https://github.com/mekanix/egress-monitor >+ >+LICENSE= BSD2CLAUSE >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+USES= uidfix >+USE_RC_SUBR= egress-monitor >+SUB_FILES= pkg-message >+ >+USE_GITHUB= yes >+GH_ACCOUNT= mekanix >+ >+PLIST_FILES= man/man1/egress-monitor.1.gz \ >+ sbin/egress-monitor >+ >+.include <bsd.port.mk> >diff --git a/sysutils/egress-monitor/distinfo b/sysutils/egress-monitor/distinfo >new file mode 100644 >index 000000000000..664dd70da4bf >--- /dev/null >+++ b/sysutils/egress-monitor/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1668281396 >+SHA256 (mekanix-egress-monitor-0.0.3_GH0.tar.gz) = 74302e0fea9be384d791d7610c85a783696f71ab2ca005e98e590d14b12e1da5 >+SIZE (mekanix-egress-monitor-0.0.3_GH0.tar.gz) = 4937 >diff --git a/sysutils/egress-monitor/files/egress-monitor.in b/sysutils/egress-monitor/files/egress-monitor.in >new file mode 100644 >index 000000000000..fff811b712ef >--- /dev/null >+++ b/sysutils/egress-monitor/files/egress-monitor.in >@@ -0,0 +1,20 @@ >+#!/bin/sh >+ >+# PROVIDE: egress-monitor >+# KEYWORD: shutdown >+ >+. /etc/rc.subr >+ >+name=egress_monitor >+desc="default route monitor" >+rcvar=${name}_enable >+load_rc_config $name >+ >+: ${egress_monitor_enable:="NO"} >+ >+procname="%%PREFIX%%/sbin/egress-monitor" >+command="/usr/sbin/daemon" >+command_args="-S -T ${name} ${procname}" >+ >+run_rc_command $* >+ >diff --git a/sysutils/egress-monitor/files/pkg-message.in b/sysutils/egress-monitor/files/pkg-message.in >new file mode 100644 >index 000000000000..ba4cb9b9c771 >--- /dev/null >+++ b/sysutils/egress-monitor/files/pkg-message.in >@@ -0,0 +1,8 @@ >+[ >+{ type: install >+ message: <<EOM >+Please note that egress-monitor will not pick up changes in net.fibs sysctl, so >+if you change it, you have to "service egress-monitor restart". >+EOM >+} >+] >diff --git a/sysutils/egress-monitor/pkg-descr b/sysutils/egress-monitor/pkg-descr >new file mode 100644 >index 000000000000..cd15befd4e37 >--- /dev/null >+++ b/sysutils/egress-monitor/pkg-descr >@@ -0,0 +1,4 @@ >+Watching for default routes changes and sets the interface group. When the >+default route is added, egress-monitor sets the group of that interface to >+appropriate egress. That means for IPv4 and FIB 0 (default one) the group will >+be v4fib0egress. In general, the group name is v<4|6>fib<number>egress. >-- >2.38.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 267731
:
238035
|
238036
|
238037