From owner-svn-ports-all@freebsd.org Thu Apr 5 20:37:16 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 1EBD2FA1124; Thu, 5 Apr 2018 20:37:16 +0000 (UTC) (envelope-from feld@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 C1ED470367; Thu, 5 Apr 2018 20:37:15 +0000 (UTC) (envelope-from feld@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 BCEDC279E5; Thu, 5 Apr 2018 20:37:15 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w35KbF9L033886; Thu, 5 Apr 2018 20:37:15 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w35KbFQ3033884; Thu, 5 Apr 2018 20:37:15 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201804052037.w35KbFQ3033884@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Thu, 5 Apr 2018 20:37:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466599 - in head/dns/nsnotifyd: . files X-SVN-Group: ports-head X-SVN-Commit-Author: feld X-SVN-Commit-Paths: in head/dns/nsnotifyd: . files X-SVN-Commit-Revision: 466599 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: Thu, 05 Apr 2018 20:37:16 -0000 Author: feld Date: Thu Apr 5 20:37:15 2018 New Revision: 466599 URL: https://svnweb.freebsd.org/changeset/ports/466599 Log: dns/nsnotifyd: Add basic rc script Approved by: maintainer Added: head/dns/nsnotifyd/files/ head/dns/nsnotifyd/files/nsnotifyd.in (contents, props changed) Modified: head/dns/nsnotifyd/Makefile Modified: head/dns/nsnotifyd/Makefile ============================================================================== --- head/dns/nsnotifyd/Makefile Thu Apr 5 20:13:48 2018 (r466598) +++ head/dns/nsnotifyd/Makefile Thu Apr 5 20:37:15 2018 (r466599) @@ -2,6 +2,7 @@ PORTNAME= nsnotifyd PORTVERSION= 1.6 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://dotat.at/prog/nsnotifyd/ @@ -14,6 +15,8 @@ GNU_CONFIGURE= yes USES= shebangfix SHEBANG_FILES= nsnotify-liststealth + +USE_RC_SUBR= nsnotifyd EXEFILES= nsnotify nsnotifyd BINFILES= nsnotify-liststealth nsnotify2git nsnotify2stealth nsnotify2update Added: head/dns/nsnotifyd/files/nsnotifyd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/nsnotifyd/files/nsnotifyd.in Thu Apr 5 20:37:15 2018 (r466599) @@ -0,0 +1,37 @@ +#!/bin/sh +# +# Author: Mark Felder +# +# $FreeBSD$ +# + +# PROVIDE: nsnotifyd +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable nsnotifyd: +# nsnotifyd_enable="YES" +# nsnotifyd_flags="" + +. /etc/rc.subr + +name=nsnotifyd +rcvar=nsnotifyd_enable + +load_rc_config $name + +: ${nsnotifyd_enable:=NO} + +command="/usr/local/bin/nsnotifyd" +start_precmd=precmd + +precmd() +{ + if [ "${nsnotifyd_flags}x" = "x" ]; then + echo "Please set your required service options via nsnotifyd_flags in /etc/rc.conf." + echo "Check the contents of man nsnotifyd for more details." + exit 1 + fi +} + +run_rc_command "$1"