From owner-svn-ports-all@freebsd.org Wed May 2 22:04:18 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C12A1FB5B32; Wed, 2 May 2018 22:04:18 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72DF270D71; Wed, 2 May 2018 22:04:18 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6A94116D13; Wed, 2 May 2018 22:04:18 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w42M4ID1015817; Wed, 2 May 2018 22:04:18 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w42M4IuU015814; Wed, 2 May 2018 22:04:18 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201805022204.w42M4IuU015814@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Wed, 2 May 2018 22:04:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468888 - in head/dns/getdns: . files X-SVN-Group: ports-head X-SVN-Commit-Author: zi X-SVN-Commit-Paths: in head/dns/getdns: . files X-SVN-Commit-Revision: 468888 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2018 22:04:18 -0000 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 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"