mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
- Add rc script for stubby
Requested by: Augustus Africa <directnupe@gmail.com>
This commit is contained in:
parent
0e47b9352c
commit
86d212c617
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468888
@ -47,6 +47,7 @@ LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
|
||||
LIBUV_CONFIGURE_WITH= libuv
|
||||
STUBBY_LIB_DEPENDS= libyaml.so:textproc/libyaml
|
||||
STUBBY_CONFIGURE_WITH= stubby
|
||||
STUBBY_VARS= USE_RC_SUBR="stubby"
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
|
||||
|
34
dns/getdns/files/stubby.in
Normal file
34
dns/getdns/files/stubby.in
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: stubby
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
#
|
||||
# Add some of the following variables to /etc/rc.conf to configure stubby:
|
||||
# stubby_enable (bool): Set to "NO" by default.
|
||||
# Set it to "YES" to enable stubby.
|
||||
# stubby_config (str): Default "%%PREFIX%%/etc/stubby.conf"
|
||||
# Set it to the full path to the config file
|
||||
# that stubby will use during the automated
|
||||
# start-up.
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="stubby"
|
||||
rcvar=stubby_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${stubby_enable="NO"}
|
||||
: ${stubby_config="%%PREFIX%%/etc/stubby/stubby.yml"}
|
||||
|
||||
command="%%PREFIX%%/bin/stubby"
|
||||
command_args="-g -C ${stubby_config}"
|
||||
|
||||
required_files=${stubby_config}
|
||||
run_rc_command "$1"
|
Loading…
Reference in New Issue
Block a user