summaryrefslogtreecommitdiff
path: root/net/knot
diff options
context:
space:
mode:
authorpettai <pettai@pkgsrc.org>2015-06-30 13:17:10 +0000
committerpettai <pettai@pkgsrc.org>2015-06-30 13:17:10 +0000
commit85332aa26b70b8454f763ee06ebe01aa089d664f (patch)
tree5d5e61e7123fd53675d347565cdb4cd59426350a /net/knot
parent167e2d64512d4f9210723376895b3d410ecf91c4 (diff)
downloadpkgsrc-85332aa26b70b8454f763ee06ebe01aa089d664f.tar.gz
fix rc script
Diffstat (limited to 'net/knot')
-rw-r--r--net/knot/Makefile7
-rwxr-xr-xnet/knot/files/knot.sh9
2 files changed, 8 insertions, 8 deletions
diff --git a/net/knot/Makefile b/net/knot/Makefile
index bdb3aba9dc0..a1b47eb0e4e 100644
--- a/net/knot/Makefile
+++ b/net/knot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2015/01/18 16:00:02 wiedi Exp $
+# $NetBSD: Makefile,v 1.24 2015/06/30 13:17:10 pettai Exp $
DISTNAME= knot-1.5.3
CATEGORIES= net
@@ -9,15 +9,14 @@ HOMEPAGE= http://www.knot-dns.cz/
COMMENT= Knot (auth) DNS server
LICENSE= gnu-gpl-v3
-# If you're not able to download the distfile, try using
-#FETCH_USING= curl # in mk.conf or on the command-line
-
BUILD_DEFS+= VARBASE
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/knot
+CONFIGURE_ARGS+= --with-rundir=${VARBASE}/run/knot
+CONFIGURE_ARGS+= --with-storage=${VARBASE}/knot/lib
USE_LIBTOOL= yes
USE_TOOLS+= bison flex gmake
diff --git a/net/knot/files/knot.sh b/net/knot/files/knot.sh
index 04e5a201085..19be76e954c 100755
--- a/net/knot/files/knot.sh
+++ b/net/knot/files/knot.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: knot.sh,v 1.1 2012/11/05 23:08:06 pettai Exp $
+# $NetBSD: knot.sh,v 1.2 2015/06/30 13:17:10 pettai Exp $
#
# PROVIDE: knot
# REQUIRE: NETWORKING syslogd
@@ -13,15 +13,16 @@ fi
name="knot"
rcvar=${name}
command="@PREFIX@/sbin/knotc"
+knotd="@PREFIX@/sbin/knotd"
command_args=""
pidfile="@VARBASE@/knot/${name}.pid"
start_precmd="knot_precmd"
extra_commands="restart reload"
-start_cmd="$command -w start"
-stop_cmd="$command -w stop"
+start_cmd="$knotd -d"
+stop_cmd="$command stop"
restart_cmd="$command restart"
reload_cmd="$command reload"
-status_cmd="$command running"
+status_cmd="$command status"
knot_precmd()
{