From nobody Sun Jan 28 09:21:42 2024 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 4TN5Xk3kq1z58CPh; Sun, 28 Jan 2024 09:21:42 +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 4TN5Xk3HzZz4XW1; Sun, 28 Jan 2024 09:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706433702; 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=O3atOSgE/ZqfzYJRWTpiIXmQrakme38JeFgCsRIwBhc=; b=S1ks0/loE6sc/dNOoKZUOsM6TRV2sudUlJZYydOEu/dNSucoQ9aVND9F+K5T0PTyQ5pdKO nosPmpUEoiOHeZAYjDLHwL1Z5fM/IqMJb6VLa/8asHXFS1aeWjt9Pru+K7rQKkU4BA1Uot c2/5iDJAJ1/cUW2/TagbmPgwq0wmvBeOqRKmpi0lwD+XMbeVEqF8EjpAXieb/qzbvGGU1d o0O/VNcBwZDVxxg7JuncrK15xpz3UPV4Zj0JEphpBC45vY5yYJYdf8yMldTIrnPoYdXXz/ SfzMAP8k7HTUu5cfJoDV15msQao5tdDXWOiOsBUiPdOwNWrAO8avov4z2FRF0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706433702; 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=O3atOSgE/ZqfzYJRWTpiIXmQrakme38JeFgCsRIwBhc=; b=KPYprVfIdQe9L9GOChYSfnWKyPB4Hnl4nWIvvfkPfNUmtBCh8tLbomCYDpE5gAnpiL7aGI QniUUtACECU96mc0Hq4sFX2Z9vYF6T3BZxJfpZA9UjzhRSzrBdcpS/HIGjJKVVsu18kB4+ V8aeWFz6h8Pksd2qZ5Cjuq26jH6h2CQ/gMIPHN9ZnSzf7XJBENfWTAtVD6uRPMX5PoQZY8 GZ/IHUl78MS5fAq/8Pj1N0ucz4fjjbwA6mPnM78pZ3rRoXN10+31BAKa6DuOqH1+WubyM9 B5Ym1dCB6wfXwjKsuolGnsLgbuuLmsrpRgzUMap3RGQkIs7IjBsXIPBKj2gRwg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706433702; a=rsa-sha256; cv=none; b=cUeQeg4+3Jr3Os6P3a9kBaVl9cIDTTa24AtFW5Sa6WB9bQrl8h2ArRvwwdPsHDzanvnd2P wNCVqHEYX7kXxy/dw+IZRtzzv8CeVJVMD0Yu8YzoeslpekO9iM1kr2HIEksv9UJl6TzZ8Q zdF29OKuehK7yjXpDEYc71pitgz38HWijXj1IlUcC0vh9gIJ1E/KMdXO9iDYVYg9U+MEYm /hSeXdEDQMEt7WpcKUyZrNAESDusX/pQJ2/vCBGrOG2n/o+PA3Oui7uZoYiLeCmJ68ZsbG nmo0ezL+J2p7i48IMf/AgFe5SJajtYQwJ2BbMdDqMJ02Ar4hNHsjXUcoMmC8Qg== 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 4TN5Xk2LQKz12Nq; Sun, 28 Jan 2024 09:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40S9LgCD044700; Sun, 28 Jan 2024 09:21:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40S9LgiW044697; Sun, 28 Jan 2024 09:21:42 GMT (envelope-from git) Date: Sun, 28 Jan 2024 09:21:42 GMT Message-Id: <202401280921.40S9LgiW044697@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Stefan =?utf-8?Q?E=C3=9Fer?= Subject: git: 6f4d9e4bf71a - main - sysutils/nmdaemon: 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: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f4d9e4bf71a5fe7361a057748a76e1c712b0c2c Auto-Submitted: auto-generated The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f4d9e4bf71a5fe7361a057748a76e1c712b0c2c commit 6f4d9e4bf71a5fe7361a057748a76e1c712b0c2c Author: Peter AuthorDate: 2024-01-28 09:16:41 +0000 Commit: Stefan Eßer 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 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