mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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
This commit is contained in:
parent
43dba02cc1
commit
6f4d9e4bf7
5 changed files with 47 additions and 0 deletions
|
@ -824,6 +824,7 @@
|
|||
SUBDIR += nfcutils
|
||||
SUBDIR += nitrogen
|
||||
SUBDIR += nix
|
||||
SUBDIR += nmdaemon
|
||||
SUBDIR += nmrpflash
|
||||
SUBDIR += no-login
|
||||
SUBDIR += node_exporter
|
||||
|
|
23
sysutils/nmdaemon/Makefile
Normal file
23
sysutils/nmdaemon/Makefile
Normal file
|
@ -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>
|
3
sysutils/nmdaemon/distinfo
Normal file
3
sysutils/nmdaemon/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1706385613
|
||||
SHA256 (Peter2121-nmdaemon-v0.2_GH0.tar.gz) = ffd1dbbbed96c16b2d737f540b8a68e3df04a91546ba72355d5558803ac79f5a
|
||||
SIZE (Peter2121-nmdaemon-v0.2_GH0.tar.gz) = 247518
|
15
sysutils/nmdaemon/pkg-descr
Normal file
15
sysutils/nmdaemon/pkg-descr
Normal file
|
@ -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.
|
5
sysutils/nmdaemon/pkg-plist
Normal file
5
sysutils/nmdaemon/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
|||
bin/nmdaemon
|
||||
@sample etc/nmdaemon.conf.sample
|
||||
etc/rc.d/nmdaemon
|
||||
%%DATADIR%%/commands.md
|
||||
%%DATADIR%%/commands.txt
|
Loading…
Add table
Reference in a new issue