git: 6f4d9e4bf71a - main - sysutils/nmdaemon: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jan 2024 09:21:42 UTC
The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f4d9e4bf71a5fe7361a057748a76e1c712b0c2c commit 6f4d9e4bf71a5fe7361a057748a76e1c712b0c2c Author: Peter <peter@flytrace.com> AuthorDate: 2024-01-28 09:16:41 +0000 Commit: Stefan Eßer <se@FreeBSD.org> CommitDate: 2024-01-28 09:19:27 +0000 sysutils/nmdaemon: add new port This is a daemon that manages network configuration of FreeBSD. The daemon can manage: - some system network parameters - interfaces - routes - wireless networks (using wpa_supplicant) nmdaemon should be started as root, it opens a unix socket where clients can connect. The permissions of the unix socket are managed by nmdaemon and provided by it's configuration file. To communicate with nmdaemon one should use JSON formatted commands, nmdaemon answers with JSON formatted data too. The syntax and examples of the commands can be found in commands.md. The Makefile and pkg-descr files have been made compliant with FreeBSD conventions by me (pkg-descr is derived from README.md). Pull Request: https://github.com/freebsd/freebsd-ports/pull/224 --- sysutils/Makefile | 1 + sysutils/nmdaemon/Makefile | 23 +++++++++++++++++++++++ sysutils/nmdaemon/distinfo | 3 +++ sysutils/nmdaemon/pkg-descr | 15 +++++++++++++++ sysutils/nmdaemon/pkg-plist | 5 +++++ 5 files changed, 47 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 83d91a7a9b9c..91996dcb12bd 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -824,6 +824,7 @@ SUBDIR += nfcutils SUBDIR += nitrogen SUBDIR += nix + SUBDIR += nmdaemon SUBDIR += nmrpflash SUBDIR += no-login SUBDIR += node_exporter diff --git a/sysutils/nmdaemon/Makefile b/sysutils/nmdaemon/Makefile new file mode 100644 index 000000000000..21b9c6190ac5 --- /dev/null +++ b/sysutils/nmdaemon/Makefile @@ -0,0 +1,23 @@ +PORTNAME= nmdaemon +DISTVERSIONPREFIX= v +DISTVERSION= 0.2 +CATEGORIES= sysutils + +MAINTAINER= peter@flytrace.com +COMMENT= FreeBSD network manager daemon +WWW= https://github.com/Peter2121/nmdaemon + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/lib/libasync++.a:devel/asyncplusplus \ + ${LOCALBASE}/lib/libsockpp.a:net/libsockpp + +USES= cmake compiler:c++20-lang +USE_GITHUB= yes +GH_ACCOUNT= Peter2121 +GH_PROJECT= nmdaemon + +CONFIGURE_ENV= VERSION=${DISTVERSION} + +.include <bsd.port.mk> diff --git a/sysutils/nmdaemon/distinfo b/sysutils/nmdaemon/distinfo new file mode 100644 index 000000000000..eb5a91419a98 --- /dev/null +++ b/sysutils/nmdaemon/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706385613 +SHA256 (Peter2121-nmdaemon-v0.2_GH0.tar.gz) = ffd1dbbbed96c16b2d737f540b8a68e3df04a91546ba72355d5558803ac79f5a +SIZE (Peter2121-nmdaemon-v0.2_GH0.tar.gz) = 247518 diff --git a/sysutils/nmdaemon/pkg-descr b/sysutils/nmdaemon/pkg-descr new file mode 100644 index 000000000000..da1b1960766a --- /dev/null +++ b/sysutils/nmdaemon/pkg-descr @@ -0,0 +1,15 @@ +This is a daemon that manages network configuration of FreeBSD. + +The daemon can manage: + - some system network parameters + - interfaces + - routes + - wireless networks (using wpa_supplicant) + +nmdaemon should be started as root, it opens a unix socket where +clients can connect. The permissions of the unix socket are managed +by nmdaemon and provided by it's configuration file. + +To communicate with nmdaemon one should use JSON formatted commands, +nmdaemon answers with JSON formatted data too. +The syntax and examples of the commands can be found in commands.md. diff --git a/sysutils/nmdaemon/pkg-plist b/sysutils/nmdaemon/pkg-plist new file mode 100644 index 000000000000..79d08b9b7ec0 --- /dev/null +++ b/sysutils/nmdaemon/pkg-plist @@ -0,0 +1,5 @@ +bin/nmdaemon +@sample etc/nmdaemon.conf.sample +etc/rc.d/nmdaemon +%%DATADIR%%/commands.md +%%DATADIR%%/commands.txt