summaryrefslogtreecommitdiff
path: root/net/mosquitto
diff options
context:
space:
mode:
authortriaxx <triaxx@pkgsrc.org>2021-02-01 20:50:01 +0000
committertriaxx <triaxx@pkgsrc.org>2021-02-01 20:50:01 +0000
commit9b650da796972226685fd6ac7900af0b661788ac (patch)
treeb2e557894a27cacb3c74d01535f7bbac66f9295e /net/mosquitto
parentf3d2c505e7f41fe8719c712dd00c3e1d187190ca (diff)
downloadpkgsrc-9b650da796972226685fd6ac7900af0b661788ac.tar.gz
mosquitto: Fix the hardcoded /var in rcd script
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"