pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/mosquitto mosquitto: Revert the deletion of ${piddir}
details: https://anonhg.NetBSD.org/pkgsrc/rev/f6edd5181ff8
branches: trunk
changeset: 445950:f6edd5181ff8
user: triaxx <triaxx%pkgsrc.org@localhost>
date: Mon Feb 01 16:43:53 2021 +0000
description:
mosquitto: Revert the deletion of ${piddir}
Mosquitto can no longer write its PID file to ${VARBASE}/run when VARBASE
is the system /var owned by root.
diffstat:
net/mosquitto/distinfo | 4 ++--
net/mosquitto/files/mosquitto.sh | 12 ++++++++++--
net/mosquitto/patches/patch-mosquitto.conf | 4 ++--
3 files changed, 14 insertions(+), 6 deletions(-)
diffs (68 lines):
diff -r 31f63bce29cd -r f6edd5181ff8 net/mosquitto/distinfo
--- a/net/mosquitto/distinfo Mon Feb 01 16:03:49 2021 +0000
+++ b/net/mosquitto/distinfo Mon Feb 01 16:43:53 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2021/01/29 13:58:20 gdt Exp $
+$NetBSD: distinfo,v 1.14 2021/02/01 16:43:53 triaxx Exp $
SHA1 (mosquitto-2.0.6.tar.gz) = 2b183679790d0ba65774fcb7ccab709d88dc568a
RMD160 (mosquitto-2.0.6.tar.gz) = 29839b23fb832086b593ac1c952a6aa5fd8e72da
@@ -7,5 +7,5 @@
SHA1 (patch-lib_CMakeLists.txt) = 81981f812dc38572e727a9a5dfb427b80476702d
SHA1 (patch-lib_net__mosq.c) = a38294cdfea98f2da0879ea93373c5f04aebdb20
SHA1 (patch-misc_letsencrypt_mosquitto-copy.sh) = a4d601b71f68d3f9e62d923d21c58f26558eb551
-SHA1 (patch-mosquitto.conf) = ddd2cba5d98f5b9b00fd808d839ba328591ba29f
+SHA1 (patch-mosquitto.conf) = 737e950d5225c8d8e4ca22c9824c4846a0b224ee
SHA1 (patch-src_CMakeLists.txt) = 76a3c560929aabce943b25bf9d2cefa173b792b0
diff -r 31f63bce29cd -r f6edd5181ff8 net/mosquitto/files/mosquitto.sh
--- a/net/mosquitto/files/mosquitto.sh Mon Feb 01 16:03:49 2021 +0000
+++ b/net/mosquitto/files/mosquitto.sh Mon Feb 01 16:43:53 2021 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: mosquitto.sh,v 1.3 2021/01/28 19:49:29 triaxx Exp $
+# $NetBSD: mosquitto.sh,v 1.4 2021/02/01 16:43:53 triaxx Exp $
#
# PROVIDE: mosquitto
# REQUIRE: DAEMON
@@ -10,13 +10,21 @@
name="mosquitto"
rcvar=$name
command="@PREFIX@/sbin/${name}"
-pidfile="@VARBASE@/run/${name}.pid"
+piddir="/var/run/${name}"
+pidfile="${piddir}/${name}.pid"
config="@PKG_SYSCONFDIR@/${name}.conf"
command_args="-d -c $config"
+start_precmd="mosquitto_precmd"
test_cmd="mosquitto_test"
extra_commands=""
+mosquitto_precmd()
+{
+ mkdir -p ${piddir}
+ chown @MOSQUITTO_USER@ ${piddir}
+}
+
load_rc_config $name
run_rc_command "$1"
diff -r 31f63bce29cd -r f6edd5181ff8 net/mosquitto/patches/patch-mosquitto.conf
--- a/net/mosquitto/patches/patch-mosquitto.conf Mon Feb 01 16:03:49 2021 +0000
+++ b/net/mosquitto/patches/patch-mosquitto.conf Mon Feb 01 16:43:53 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-mosquitto.conf,v 1.3 2021/01/28 19:46:24 triaxx Exp $
+$NetBSD: patch-mosquitto.conf,v 1.4 2021/02/01 16:43:54 triaxx Exp $
Log to syslog, instead of (perhaps) not logging.
@@ -14,7 +14,7 @@
# being run automatically on boot with an init script and
# start-stop-daemon or similar.
-#pid_file
-+pid_file @VARBASE@/run/mosquitto.pid
++pid_file @VARBASE@/run/mosquitto/mosquitto.pid
# Set to true to queue messages with QoS 0 when a persistent client is
# disconnected. These messages are included in the limit imposed by
Home |
Main Index |
Thread Index |
Old Index