View | Details | Raw Unified | Return to bug 267731 | Differences between
and this patch

Collapse All | Expand All

(-)b/sysutils/Makefile (+1 lines)
Lines 335-340 Link Here
335
    SUBDIR += eclat
335
    SUBDIR += eclat
336
    SUBDIR += edid-decode
336
    SUBDIR += edid-decode
337
    SUBDIR += edk2
337
    SUBDIR += edk2
338
    SUBDIR += egress-monitor
338
    SUBDIR += eject
339
    SUBDIR += eject
339
    SUBDIR += eksctl
340
    SUBDIR += eksctl
340
    SUBDIR += endian
341
    SUBDIR += endian
(-)b/sysutils/egress-monitor/Makefile (+22 lines)
Added Link Here
1
PORTNAME=	egress-monitor
2
DISTVERSION=	0.0.3
3
CATEGORIES=	sysutils
4
5
MAINTAINER=	meka@tilda.center
6
COMMENT=	Set network interface groups based on default routes
7
WWW=		https://github.com/mekanix/egress-monitor
8
9
LICENSE=	BSD2CLAUSE
10
LICENSE_FILE=	${WRKSRC}/LICENSE
11
12
USES=		uidfix
13
USE_RC_SUBR=	egress-monitor
14
SUB_FILES=	pkg-message
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	mekanix
18
19
PLIST_FILES=	man/man1/egress-monitor.1.gz \
20
		sbin/egress-monitor
21
22
.include <bsd.port.mk>
(-)b/sysutils/egress-monitor/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1668281396
2
SHA256 (mekanix-egress-monitor-0.0.3_GH0.tar.gz) = 74302e0fea9be384d791d7610c85a783696f71ab2ca005e98e590d14b12e1da5
3
SIZE (mekanix-egress-monitor-0.0.3_GH0.tar.gz) = 4937
(-)b/sysutils/egress-monitor/files/egress-monitor.in (+20 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: egress-monitor
4
# KEYWORD: shutdown
5
6
. /etc/rc.subr
7
8
name=egress_monitor
9
desc="default route monitor"
10
rcvar=${name}_enable
11
load_rc_config $name
12
13
: ${egress_monitor_enable:="NO"}
14
15
procname="%%PREFIX%%/sbin/egress-monitor"
16
command="/usr/sbin/daemon"
17
command_args="-S -T ${name} ${procname}"
18
19
run_rc_command $*
20
(-)b/sysutils/egress-monitor/files/pkg-message.in (+8 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
Please note that egress-monitor will not pick up changes in net.fibs sysctl, so
5
if you change it, you have to "service egress-monitor restart".
6
EOM
7
}
8
]
(-)b/sysutils/egress-monitor/pkg-descr (-1 / +4 lines)
Added Link Here
0
- 
1
Watching for default routes changes and sets the interface group. When the
2
default route is added, egress-monitor sets the group of that interface to
3
appropriate egress. That means for IPv4 and FIB 0 (default one) the group will
4
be v4fib0egress. In general, the group name is v<4|6>fib<number>egress.

Return to bug 267731