Files
ÄlvenandRobert Clausecker c19a49d41d dns/kadnode: update 2.3.0 -> 2.4.1, un-deprecate
Upstream is alive and active, has 1-st class FreeBSD support.
They had switched to mbedtls3 since version 2.4.0.
Using their ready-to-use port with minor changes:

* Fix files/kadnode.in mode (0755 -> 0644)
* Improve pkg-descr
* Some linting

PR:		283954
Reviewed by:	diizzy
Approved by:	moritzwarning@web.de (maintainer)
2025-01-17 13:34:54 +01:00

23 lines
436 B
Bash

#!/bin/sh
# PROVIDE: kadnode
# REQUIRE: SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
. /etc/rc.subr
name=kadnode
rcvar=kadnode_enable
pidfile="/var/run/kadnode.pid"
required_files="%%PREFIX%%/etc/kadnode/kadnode.conf"
configfile="%%PREFIX%%/etc/kadnode/kadnode.conf"
command="%%PREFIX%%/bin/kadnode"
command_args="--config $configfile --pidfile $pidfile --daemon"
load_rc_config $name
: ${kadnode_enable:=yes}
run_rc_command "$1"