-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mosquitto: Various SunOS fixes and improvements.
Includes SMF support. Submitted by Jorge Schrauwen in #59. While here fix a hardcoded /var.
Showing
6 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
$NetBSD: distinfo,v 1.7 2020/02/29 18:29:01 gdt Exp $ | ||
$NetBSD: distinfo,v 1.8 2020/04/16 15:19:11 jperkin Exp $ | ||
|
||
SHA1 (mosquitto-1.6.9.tar.gz) = 424686c7cc3e0a9eced4875bef23ed666537d890 | ||
RMD160 (mosquitto-1.6.9.tar.gz) = f10560110d223861d35c7d22f620282028a8241e | ||
SHA512 (mosquitto-1.6.9.tar.gz) = f78228a1e8305e4d89b34250981ed2c5fe5317636003636dc90f6fa2b1e3ca3c8fadb705ee7301f5252456cb093a6547bd46a255ca3d9fb5cdced697738d6eb7 | ||
Size (mosquitto-1.6.9.tar.gz) = 610934 bytes | ||
SHA1 (patch-lib_CMakeLists.txt) = cddb8803a759820c8059028f924b56c22689ee54 | ||
SHA1 (patch-lib_net__mosq.c) = a38294cdfea98f2da0879ea93373c5f04aebdb20 | ||
SHA1 (patch-mosquitto.conf) = 0ea671cfe3a332e9f0027b2410b212797fc1db17 | ||
SHA1 (patch-src_CMakeLists.txt) = 2346ee3f13ab7f7e2c34492a4271e0b1adcae4fb | ||
SHA1 (patch-mosquitto.conf) = ca82a8a1bdc59d5e6f4121d8474693245b923789 | ||
SHA1 (patch-src_CMakeLists.txt) = 66571704d96c672b8c1537794cf492e9cfce2e0c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | ||
<service_bundle type='manifest' name='@SMF_NAME@'> | ||
<service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'> | ||
<create_default_instance enabled='false' /> | ||
<single_instance /> | ||
|
||
<!-- dependencies --> | ||
<dependency name='fs-root' grouping='require_all' restart_on='none' type='service'> | ||
<service_fmri value='svc:/system/filesystem/root' /> | ||
</dependency> | ||
<dependency name='network-service' grouping='require_all' restart_on='none' type='service'> | ||
<service_fmri value='svc:/network/service'/> | ||
</dependency> | ||
<dependency name='config-file' grouping='require_all' restart_on='none' type='path'> | ||
<service_fmri value='file://localhost/@PKG_SYSCONFDIR@/mosquitto.conf' /> | ||
</dependency> | ||
|
||
<method_context></method_context> | ||
<exec_method type='method' name='start' exec='@PREFIX@/@SMF_METHOD_FILE.mosquitto@ -d -c @PKG_SYSCONFDIR@/mosquitto.conf' timeout_seconds='60' /> | ||
<exec_method type='method' name='stop' exec=':kill' timeout_seconds='30' /> | ||
|
||
<template> | ||
<common_name> | ||
<loctext xml:lang='C'>Mosquitto MQTT Broker</loctext> | ||
</common_name> | ||
<documentation> | ||
<doc_link name='Mosquitto' uri='https://mosquitto.org/'/> | ||
<manpage title='mosquitto' section='8M' manpath='man' /> | ||
</documentation> | ||
</template> | ||
</service> | ||
</service_bundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!@SMF_METHOD_SHELL@ | ||
# | ||
# $NetBSD: mosquitto.sh,v 1.1 2020/04/16 15:19:11 jperkin Exp $ | ||
# | ||
|
||
. /lib/svc/share/smf_include.sh | ||
|
||
if [ ! -d @VARBASE@/run/mosquitto ]; then | ||
@MKDIR@ @VARBASE@/run/mosquitto | ||
@CHMOD@ 0750 @VARBASE@/run/mosquitto | ||
@CHOWN@ @MOSQUITTO_USER@:@MOSQUITTO_GROUP@ @VARBASE@/run/mosquitto | ||
fi | ||
|
||
@PREFIX@/sbin/mosquitto "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters