pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/mosquitto mosquitto: Fix the hardcoded /var in rcd...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4ac17f97672
branches:  trunk
changeset: 445956:a4ac17f97672
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Mon Feb 01 20:50:01 2021 +0000

description:
mosquitto: Fix the hardcoded /var in rcd script

diffstat:

 net/mosquitto/Makefile           |  3 ++-
 net/mosquitto/files/mosquitto.sh |  4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 14097a4fada3 -r a4ac17f97672 net/mosquitto/Makefile
--- a/net/mosquitto/Makefile    Mon Feb 01 20:38:20 2021 +0000
+++ b/net/mosquitto/Makefile    Mon Feb 01 20:50:01 2021 +0000
@@ -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 @@
 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 -r 14097a4fada3 -r a4ac17f97672 net/mosquitto/files/mosquitto.sh
--- a/net/mosquitto/files/mosquitto.sh  Mon Feb 01 20:38:20 2021 +0000
+++ b/net/mosquitto/files/mosquitto.sh  Mon Feb 01 20:50:01 2021 +0000
@@ -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"
 



Home | Main Index | Thread Index | Old Index