From nobody Tue Nov 15 17:58:45 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NBYnx4gLJz4hMWc; Tue, 15 Nov 2022 17:58:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NBYnx47F9z46W1; Tue, 15 Nov 2022 17:58:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668535125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HScnwMomVXxkkxGEgBG2aY1H0Q7+zMqmYOtycNV+KbU=; b=PdkUTaE/ojeF3iFMcigZEPOWSUQEfcb9Avyw/aIpcDXo7szIDIX9/Oi7rFH9WrmxZeUs4O FA1HB9OPsaRZ0ia0HXbW9VS2pxMggrBOt96oLNoZ5akFGrSCK0+B0Ujz7ouXmype1zUt5M jDGLRSatfyryqchHrCZmrDmgbu6IME6A5q+S8f33myWYR4KwKHdEUMsOnVz7TDOlbtVX2S PwSOzhEBLioA+inYugChYVi7Bx4QC0UR0Fohmi9ThcKkUMxRFysdUzCowvxE2M+b0K/d2U mRPI7OCp2+qFYr3j5HMlEk1FOEVJFXoh1Mh5v1cC6Ldf5878yEpfb0P/m1PqhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668535125; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HScnwMomVXxkkxGEgBG2aY1H0Q7+zMqmYOtycNV+KbU=; b=WIbCUbnSXJEQQC2+IpBSKCO9v5TQa42wVTCmcu7z2idM65LdiUf3o6fPpBx/G9EBMbw9Yk HkNq2WcL3tXM/xGFVIUzQivCsRZV2GZEkvx//h2YdodUaO085d5mtWsiaelYxsGWKR7c0B j70yCMTfNgzsXZHj+vqRGCwAlNJygrghuqgLsetXFZfz/z6Qr4otvI9r1Wpsa0n7ml0uSP l+UYfZGv9KTiybrFaSBoiFI8AnstTe/V9DiWJFXYSo/cpMeRb824cxafslT5QQYCOLLuDt 0M7ong91/YjyU8aPbFeMcbMihjM1vykgDtc5sOJc7Iu+2C9pd5NR9mu2JFr0AQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668535125; a=rsa-sha256; cv=none; b=b7U/CwrGYrBVS7ULzmCNicxtPN8sSfGO87p5U4NS5FokYpq7ObvsGPjByWB+Innfoq3c4c SjsqZw/MeG1p29abxhhhFlg31g66XMZqgrZV+v4EVg9IMBED7NlZGInRpgDx2da4liUFlT xVf1tmOJopFXSysYrKYZYE6uLgkcFzk3G+hwhRx3lFVyTJeaxpuBBZLdTSK/3apd5EH1hD c10DRlz/hjCOC5l4wmHbaORTAMhmwgXcQm7G+xaIgT0k8rryOA9IU11GceqESh96JfFxQ1 2QdW86HNCDXfrI/7yRHl5tED8BQ7dRzXlNZNUMQJ3O8gV1MveBHfEy8veGQu6g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NBYnx34HwzWhR; Tue, 15 Nov 2022 17:58:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AFHwjL9043500; Tue, 15 Nov 2022 17:58:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AFHwjtR043499; Tue, 15 Nov 2022 17:58:45 GMT (envelope-from git) Date: Tue, 15 Nov 2022 17:58:45 GMT Message-Id: <202211151758.2AFHwjtR043499@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Juraj Lutter Subject: git: 33e91dbbe199 - main - sysutils/egress-monitor: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: otis X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 33e91dbbe19992d88fa70f0d303112b14882394b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/ports/commit/?id=33e91dbbe19992d88fa70f0d303112b14882394b commit 33e91dbbe19992d88fa70f0d303112b14882394b Author: Goran Mekić AuthorDate: 2022-11-12 22:12:55 +0000 Commit: Juraj Lutter CommitDate: 2022-11-15 17:57:08 +0000 sysutils/egress-monitor: Add new port Add sysutils/egress-monitor, a tool that is 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. WWW: https://github.com/mekanix/egress-monitor PR: 267731 Tested by: dfr --- sysutils/Makefile | 1 + sysutils/egress-monitor/Makefile | 22 ++++++++++++++++++++++ sysutils/egress-monitor/distinfo | 3 +++ sysutils/egress-monitor/files/egress-monitor.in | 22 ++++++++++++++++++++++ sysutils/egress-monitor/files/pkg-message.in | 8 ++++++++ sysutils/egress-monitor/pkg-descr | 4 ++++ 6 files changed, 60 insertions(+) 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 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..e76cf965f6e4 --- /dev/null +++ b/sysutils/egress-monitor/files/egress-monitor.in @@ -0,0 +1,22 @@ +#!/bin/sh + +# PROVIDE: egress-monitor +# KEYWORD: shutdown +# REQUIRE: NETWORKING +# BEFORE: pf + +. /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: <fibegress.