summaryrefslogtreecommitdiff
path: root/net/mosquitto
diff options
context:
space:
mode:
Diffstat (limited to 'net/mosquitto')
-rw-r--r--net/mosquitto/Makefile3
-rw-r--r--net/mosquitto/files/mosquitto.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile
index d350513b5c3..ca39223fbfa 100644
--- a/net/mosquitto/Makefile
+++ b/net/mosquitto/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2021/01/30 10:17:55 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2021/02/01 20:50:01 triaxx Exp $
DISTNAME= mosquitto-2.0.6
CATEGORIES= net
@@ -41,6 +41,7 @@ SMF_METHODS= mosquitto
FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER}
FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP}
FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+FILES_SUBST+= VARBASE=${VARBASE}
# mosquitto's build system is very troubled, and the tests do not
# currently work.
diff --git a/net/mosquitto/files/mosquitto.sh b/net/mosquitto/files/mosquitto.sh
index 8697ae32f78..6a037e18675 100644
--- a/net/mosquitto/files/mosquitto.sh
+++ b/net/mosquitto/files/mosquitto.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: mosquitto.sh,v 1.4 2021/02/01 16:43:53 triaxx Exp $
+# $NetBSD: mosquitto.sh,v 1.5 2021/02/01 20:50:01 triaxx Exp $
#
# PROVIDE: mosquitto
# REQUIRE: DAEMON
@@ -10,7 +10,7 @@
name="mosquitto"
rcvar=$name
command="@PREFIX@/sbin/${name}"
-piddir="/var/run/${name}"
+piddir="@VARBASE@/run/${name}"
pidfile="${piddir}/${name}.pid"
config="@PKG_SYSCONFDIR@/${name}.conf"