diff options
Diffstat (limited to 'dns/knot-resolver/files')
-rw-r--r-- | dns/knot-resolver/files/krescachegc.in | 35 | ||||
-rw-r--r-- | dns/knot-resolver/files/kresd.in | 37 | ||||
-rw-r--r-- | dns/knot-resolver/files/patch-etc_meson.build | 14 | ||||
-rw-r--r-- | dns/knot-resolver/files/patch-meson.build | 11 | ||||
-rw-r--r-- | dns/knot-resolver/files/pkg-message.in | 5 |
5 files changed, 98 insertions, 4 deletions
diff --git a/dns/knot-resolver/files/krescachegc.in b/dns/knot-resolver/files/krescachegc.in new file mode 100644 index 000000000000..435303b24203 --- /dev/null +++ b/dns/knot-resolver/files/krescachegc.in @@ -0,0 +1,35 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: krescachegc +# REQUIRE: SERVERS cleanvar +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable knot-resolver: +# +# krescachegc_enable="YES": Set to YES to enable krescachegc. +# Set to NO by default. +# krescachegc_millis="1000": Set to garbage collect interval in milliseconds +# Set to 1000 by default. +# + +. /etc/rc.subr + +name=krescachegc +rcvar=krescachegc_enable + +load_rc_config ${name} + +# set defaults + +krescachegc_enable=${krescachegc_enable:-"NO"} +krescachegc_millis=${krescachegc_millis:-"1000"} + +pidfile="%%RUNDIR%%/${name}.pid" +procname="%%PREFIX%%/sbin/kres-cache-gc" + +command=/usr/sbin/daemon +command_args="-c -f -r -P ${pidfile} -u %%USERS%% -- ${procname} -c %%RUNDIR%% -d ${krescachegc_millis}" + +run_rc_command "$1" diff --git a/dns/knot-resolver/files/kresd.in b/dns/knot-resolver/files/kresd.in new file mode 100644 index 000000000000..a9564262a366 --- /dev/null +++ b/dns/knot-resolver/files/kresd.in @@ -0,0 +1,37 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: kresd +# REQUIRE: NETWORKING +# BEFORE: SERVERS +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable knot-resolver: +# +# kresd_enable="YES": Set to YES to enable kresd. +# Set to NO by default. +# kresd_config="": Set to %%ETCDIR%%/kresd.conf +# by default. +# + +. /etc/rc.subr + +name=kresd +rcvar=kresd_enable + +load_rc_config ${name} + +# set defaults + +kresd_enable=${kresd_enable:-"NO"} +kresd_config=${kresd_config:-"%%ETCDIR%%/${name}.conf"} + +pidfile="%%RUNDIR%%/${name}.pid" +procname="%%PREFIX%%/sbin/${name}" +required_files="${kresd_config}" + +command="/usr/sbin/daemon" +command_args="-c -f -S -r -P ${pidfile} -- ${procname} -c ${kresd_config} -n -q %%RUNDIR%%" + +run_rc_command "$1" diff --git a/dns/knot-resolver/files/patch-etc_meson.build b/dns/knot-resolver/files/patch-etc_meson.build new file mode 100644 index 000000000000..f918c3e4f8ab --- /dev/null +++ b/dns/knot-resolver/files/patch-etc_meson.build @@ -0,0 +1,14 @@ +--- etc/meson.build.orig 2020-07-01 12:27:52 UTC ++++ etc/meson.build +@@ -7,9 +7,9 @@ if install_root_hints + etc_files += 'root.hints' + endif + +-if managed_ta ++#if managed_ta + etc_files += 'icann-ca.pem' +-endif ++#endif + + if install_root_keys + root_keys_path = keyfile_default.split('/') diff --git a/dns/knot-resolver/files/patch-meson.build b/dns/knot-resolver/files/patch-meson.build new file mode 100644 index 000000000000..87a828241e4b --- /dev/null +++ b/dns/knot-resolver/files/patch-meson.build @@ -0,0 +1,11 @@ +--- meson.build.orig 2020-07-01 12:27:52 UTC ++++ meson.build +@@ -47,7 +47,7 @@ endif + prefix = get_option('prefix') + data_dir = join_paths(prefix, get_option('datadir'), 'knot-resolver') + doc_dir = join_paths(prefix, get_option('datadir'), 'doc', 'knot-resolver') +-examples_dir = join_paths(doc_dir, 'examples') ++examples_dir = join_paths(prefix, 'share', 'examples', 'knot-resolver') + etc_dir = join_paths(prefix, get_option('sysconfdir'), 'knot-resolver') + lib_dir = join_paths(prefix, get_option('libdir'), 'knot-resolver') + modules_dir = join_paths(lib_dir, 'kres_modules') diff --git a/dns/knot-resolver/files/pkg-message.in b/dns/knot-resolver/files/pkg-message.in index ff7ba777af08..57a03bdd6e96 100644 --- a/dns/knot-resolver/files/pkg-message.in +++ b/dns/knot-resolver/files/pkg-message.in @@ -6,11 +6,8 @@ - man kresd - https://knot-resolver.readthedocs.io/ - To run as daemon see: - - https://knot-resolver.readthedocs.io/en/latest/daemon.html - If upgrading: - - https://knot-resolver.readthedocs.io/en/stable/upgrading.html + - https://knot-resolver.readthedocs.io/en/latest/upgrading.html EOM } ] |