From owner-svn-ports-all@FreeBSD.ORG Thu Dec 26 16:02:52 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBC68BAC; Thu, 26 Dec 2013 16:02:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C73851B41; Thu, 26 Dec 2013 16:02:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBQG2pxR056884; Thu, 26 Dec 2013 16:02:51 GMT (envelope-from rakuco@svn.freebsd.org) Received: (from rakuco@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBQG2pYq056877; Thu, 26 Dec 2013 16:02:51 GMT (envelope-from rakuco@svn.freebsd.org) Message-Id: <201312261602.rBQG2pYq056877@svn.freebsd.org> From: Raphael Kubo da Costa Date: Thu, 26 Dec 2013 16:02:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337542 - in head/dns/knot: . files X-SVN-Group: ports-head 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.17 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, 26 Dec 2013 16:02:52 -0000 Author: rakuco Date: Thu Dec 26 16:02:50 2013 New Revision: 337542 URL: http://svnweb.freebsd.org/changeset/ports/337542 Log: Make knotd startup script work again. From the PR: When submitting PR 183682 I was unaware the patch as in PR 182792 wasn't committed yet. So to my amazing I just noticed the startup problem still exists. Enclosed patch is basicly the same as the uncommited one, but besides the removal of the -w option, knotd now starts by default as a daemon (-d) in stead of interactive (-i). So I could simplify the startup script a lot. PR: ports/183891 Submitted by: Leo Vandewoestijne (maintainer) Modified: head/dns/knot/Makefile head/dns/knot/files/knotd.in head/dns/knot/files/pkg-message.in Modified: head/dns/knot/Makefile ============================================================================== --- head/dns/knot/Makefile Thu Dec 26 15:42:17 2013 (r337541) +++ head/dns/knot/Makefile Thu Dec 26 16:02:50 2013 (r337542) @@ -3,6 +3,7 @@ PORTNAME= knot DISTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ http://dns-lab.com/downloads/knot-dns/ @@ -37,5 +38,9 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/samples/knot.sample.conf ${STAGEDIR}${ETCDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ + @${MKDIR} ${PREFIX}/var/lib/knot + @${MKDIR} ${PREFIX}/var/run/knot + @${CHOWN} 53:53 ${PREFIX}/var/lib/knot + @${CHOWN} 53:53 ${PREFIX}/var/run/knot .include Modified: head/dns/knot/files/knotd.in ============================================================================== --- head/dns/knot/files/knotd.in Thu Dec 26 15:42:17 2013 (r337541) +++ head/dns/knot/files/knotd.in Thu Dec 26 16:02:50 2013 (r337542) @@ -19,32 +19,21 @@ name=knot rcvar=knot_enable extra_commands="reload" -reload_cmd="${name}_reload" -status_cmd="${name}_status" -stop_cmd="${name}_stop" +reload_cmd="${name}_x reload" +status_cmd="${name}_x status" +stop_cmd=" ${name}_x stop" load_rc_config ${name} : ${knot_enable:="NO"} : ${knot_config="%%PREFIX%%/etc/knot/knot.conf"} -command=%%PREFIX%%/sbin/${name}c -procname=%%PREFIX%%/sbin/${name}d -pidfile=/var/run/${name}.pid - -command_args="-c ${knot_config} -w start" +command=%%PREFIX%%/sbin/${name}d +command_args="-c ${knot_config} -d" required_files=${knot_config} -knot_reload() { - echo "Reloading ${name}." - ${command} -c ${knot_config} reload - } -knot_status() { - ${command} -c ${knot_config} status - } -knot_stop() { - echo "Stopping ${name}." - ${command} -c ${knot_config} stop +knot_x() { + %%PREFIX%%/sbin/${name}c -c ${knot_config} "$1" } run_rc_command "$1" Modified: head/dns/knot/files/pkg-message.in ============================================================================== --- head/dns/knot/files/pkg-message.in Thu Dec 26 15:42:17 2013 (r337541) +++ head/dns/knot/files/pkg-message.in Thu Dec 26 16:02:50 2013 (r337542) @@ -1,30 +1,21 @@ #################################################################### # -# To start using Knot DNS, you should complete the following tasks: -# -# ----- configure -------------------------------------------------- +# To get Knot DNS started: # cp %%ETCDIR%%/knot.sample.conf %%ETCDIR%%/knot.conf $EDITOR %%ETCDIR%%/knot.conf -# -# ----- prepare ---------------------------------------------------- -# -# required: echo knot_enable=\"YES\" >> /etc/rc.conf -# for customization if desired: # echo knot_config=\"%%PREFIX%%/etc/knot/knot.conf\" >> /etc/rc.conf -# -# ----- startup ---------------------------------------------------- -# %%PREFIX%%/etc/rc.d/knotd start # #################################################################### - When upgrading from version of before 1.3.0-RC1: mind the default config file location has changed. + When upgrading from version of 1.3.1-RC1 or before: + the startup script has changed due to parameter changes. + That problem reapeared in port 1.3.3 and was fixed in 1.3.3_1. ==================================================================== -