Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2018 22:04:18 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468888 - in head/dns/getdns: . files
Message-ID:  <201805022204.w42M4IuU015814@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Wed May  2 22:04:17 2018
New Revision: 468888
URL: https://svnweb.freebsd.org/changeset/ports/468888

Log:
  - Add rc script for stubby
  
  Requested by:	Augustus Africa <directnupe@gmail.com>

Added:
  head/dns/getdns/files/stubby.in   (contents, props changed)
Modified:
  head/dns/getdns/Makefile

Modified: head/dns/getdns/Makefile
==============================================================================
--- head/dns/getdns/Makefile	Wed May  2 20:57:35 2018	(r468887)
+++ head/dns/getdns/Makefile	Wed May  2 22:04:17 2018	(r468888)
@@ -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,' \

Added: head/dns/getdns/files/stubby.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/getdns/files/stubby.in	Wed May  2 22:04:17 2018	(r468888)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805022204.w42M4IuU015814>