Compare commits

...

6 Commits

Author SHA1 Message Date
Roger A. Light 97ac311afd Add --retry 30 to mosquitto.init. 7 years ago
Roger A. Light d842321c22 Package update for 1.6. 7 years ago
Roger A. Light 7a672dce8f Merge tag 'v1.6' into debian-mosquitto 7 years ago
Roger A. Light ecb4ed6447 Update to 1.5.8 packaging. 7 years ago
Roger A. Light c77615650a Merge tag 'v1.5.8' into debian-mosquitto 7 years ago
Roger A. Light e51d914220 Mosquitto hosted debian package files. 7 years ago

15
.gitignore vendored

@ -23,6 +23,21 @@ client/mosquitto_sub
cov-int/ cov-int/
debian/*.debhelper
debian/*.debhelper.log
debian/*.substvars
debian/.debhelper/
debian/debhelper-build-stamp
debian/files
debian/libmosquitto-dev/
debian/libmosquitto1/
debian/libmosquittopp-dev/
debian/libmosquittopp1/
debian/mosquitto-clients/
debian/mosquitto-dev/
debian/mosquitto/
debian/tmp/
dist/ dist/
examples/mysql_log/mosquitto_mysql_log examples/mysql_log/mosquitto_mysql_log

@ -0,0 +1 @@
Place your SSL/TLS Certificate Authority certificates in this directory.

@ -0,0 +1,3 @@
Place your SSL/TLS server keys and certificates in this directory.
This directory should only be readable by the mosquitto user.

@ -0,0 +1,2 @@
Any files placed in this directory that have a .conf ending will be loaded as
config files by the broker. Use this to make your local config.

@ -0,0 +1,7 @@
Apparmor Profile
----------------
If your system uses AppArmor, please note that the shipped enforcing profile
works with the default installation, and changes in your configuration may
require changes to the installed apparmor profile. Please see
https://wiki.ubuntu.com/DebuggingApparmor before filing a bug against this
software.

332
debian/changelog vendored

@ -0,0 +1,332 @@
mosquitto (1.6.0-0mosquitto1) stretch; urgency=medium
* New upstream release.
* Add mosquitto_rr to mosquitto-clients package.
* Set logrotation compression to delayed to avoid races when rotating.
-- Roger A. Light <roger@atchoo.org> Thu, 25 Apr 2019 15:10:40 +0100
mosquitto (1.5.8-0mosquitto1) stretch; urgency=medium
* New upstream release.
* Remove bug-1162.patch
-- Roger A. Light <roger@atchoo.org> Thu, 28 Feb 2019 20:10:54 +0000
mosquitto (1.5.7-0mosquitto1) stretch; urgency=medium
* New upstream release.
* Remove fix-step3.patch, fixed upstream.
* bug-1162.patch: fix bug with clients being disconnected in some situations
when ACLs are in use.
-- Roger A. Light <roger@atchoo.org> Mon, 18 Feb 2019 09:28:40 +0000
mosquitto (1.5.6-1) unstable; urgency=medium
* SECURITY UPDATE: If Mosquitto is configured to use a password file for
authentication, any malformed data in the password file will be treated as
valid. This typically means that the malformed data becomes a username and
no password. If this occurs, clients can circumvent authentication and get
access to the broker by using the malformed username. In particular, a blank
line will be treated as a valid empty username. Other security measures are
unaffected. Users who have only used the mosquitto_passwd utility to create
and modify their password files are unaffected by this vulnerability.
- debian/patches/mosquitto-1.4.x-cve-2018-12551.patch: this fix introduces
more stringent parsing tests on the password file data.
- CVE-2018-12551
* SECURITY UPDATE: If an ACL file is empty, or has only blank lines or
comments, then mosquitto treats the ACL file as not being defined, which
means that no topic access is denied. Although denying access to all
topics is not a useful configuration, this behaviour is unexpected and
could lead to access being incorrectly granted in some circumstances.
- debian/patches/mosquitto-1.4.x-cve-2018-12550.patch: this fix ensures
that if an ACL file is defined but no rules are defined, then access will
be denied.
- CVE-2018-12550
* SECURITY UPDATE: If a client publishes a retained message to a topic that
they have access to, and then their access to that topic is revoked, the
retained message will still be delivered to future subscribers. This
behaviour may be undesirable in some applications, so a configuration
option `check_retain_source` has been introduced to enforce checking of
the retained message source on publish.
- debian/patches/mosquitto-1.4.8-cve-2018-12546.patch: this patch stores
the originator of the retained message, so security checking can be
carried out before re-publishing. The complexity of the patch is due to
the need to save this information across broker restarts.
- CVE-2018-12546
* New upstream release.
* Bump standards version to 4.3.0, no changes needed.
* fix-step3.patch: fix compilation error.
-- Roger A. Light <roger@atchoo.org> Thu, 07 Feb 2019 16:00:52 +0000
mosquitto (1.5.5-1.1) unstable; urgency=medium
* Non-maintainer upload.
* Only chown mosquitto.log if it exists. (Closes: #916558)
-- Andreas Henriksson <andreas@fatal.se> Sat, 22 Dec 2018 16:54:06 +0100
mosquitto (1.5.5-1) unstable; urgency=medium
* SECURITY UPDATE: If the option `per_listener_settings` was set to true,
and the default listener was in use, and the default listener specified an
`acl_file`, then the acl file was being ignored. This affects version 1.5
to 1.5.4 inclusive.
* New upstream release.
-- Roger A. Light <roger@atchoo.org> Tue, 11 Dec 2018 16:37:32 +0000
mosquitto (1.5.4-2) unstable; urgency=medium
* debian/patches/914525.patch : Use pkg-config to get systemd libs
(Closes: #914525)
- This is needed to allow compilation on non-Linux systems.
* Fix FTCBFS: Let dh_auto_build pass cross tools to make. Thanks to Helmut
Grohne. (Closes: #914593)
* Ensure log files are owned by mosquitto. (Closes: #877346)
-- Roger A. Light <roger@atchoo.org> Sun, 25 Nov 2018 13:52:16 +0000
mosquitto (1.5.4-1) unstable; urgency=medium
* New upstream release (Closes: #911104).
- Fixes CVE-2017-7654 (Closes: #911265)
- Fixes CVE-2017-7653 (Closes: #911266)
* Remove no longer needed patches. Some are integrated into upstream, others
have been replaced with changes in rules.
- async_dns.patch
- build-timestamp.patch
- disable-in-tree-uthash.patch
- enable-libwrap.patch
- enable-websockets.patch
- fix-prefix.patch
- hurd-errno.patch
- libdir.patch
- nostrip.patch
* Copyright fix - src/uthash.h -> src/deps/uthash.h
* Update symbols files with new additions.
* Remove debian/mosquitto.prerm
- Calls to invoke-rc.d to stop mosquitto will be inserted automagically by
debhelper.
* Stop removing the mosquitto user in postrm.
- This is not safe since there might still be logs (and other files?)
around owned by the uid, so we don't want it reused for a new user.
* Add build dependency on libsystemd-dev.
* Enable systemd build support.
* Ship the mosquitto.service file (with sd-notify support)
* Drop -dbg packages and do -dbgsym migration.
* libmosquito{,pp}-dev: ship libmosquitto{,pp}.pc respectively.
* Remove unused build dependency on python-all. (Closes: #901424).
* Bump standards version to 4.2.1, no changes needed.
* Bumped dh compat level to 11.
* Add upstream/metadata.
-- Roger A. Light <roger@atchoo.org> Thu, 08 Nov 2018 13:34:59 +0000
mosquitto (1.4.15-2) unstable; urgency=low
* Replace mentions of 'c_rehash' with 'openssl rehash'. (Closes: #895084).
-- Roger A. Light <roger@atchoo.org> Sat, 07 Apr 2018 11:16:43 +0100
mosquitto (1.4.15-1) unstable; urgency=high
* SECURITY UPDATE: If a SIGHUP is sent to the broker when there are no more
file descriptors, then opening the configuration file will fail and
security settings will be set back to their default values.
- debian/patches/mosquitto-1.4.10_cve-2017-7652.patch: When reloading
configuration, do this into a separate config struct. If nothing fails,
then copy the new config over the old config.
- CVE-2017-7652
* SECURITY UPDATE: Unauthenticated clients can cause excessive memory usage.
This has the potential to lead to an OOM situation and the broker being
killed by the system.
- debian/patches/mosquitto-1.4.10_cve-2017-7652.patch: Limit the maximum
size of CONNECT packet to a reasonable value, and add "memory_limit"
option to set the maximum memory the broker will use.
- CVE-2017-7651
* New upstream release.
* Remove upstart support, which had accidently been reinstated in 1.4.14-2.
* Bumped standards version to 4.1.3, no changes required.
* Fix global-files-wildcard-not-first-paragraph-in-dep5-copyright.
-- Roger A. Light <roger@atchoo.org> Wed, 28 Feb 2018 11:29:47 +0000
mosquitto (1.4.14-2) unstable; urgency=low
* Fix lintian error "build-depends-on-obsolete-package"
* Fix lintian warning "extended-description-line-too-long"
* The 1.4.14 release relaxes the restrictions on client ids, which means
that the mosquitto_pub/sub autogenerated ids are no longer a problem.
(closes: #870165).
-- Roger A. Light <roger@atchoo.org> Tue, 26 Dec 2017 22:03:57 +0000
mosquitto (1.4.14-1) unstable; urgency=medium
* SECURITY UPDATE: Persistence file is world readable, which may expose
sensitive data. Fixed by upstream release 1.4.13.
- CVE-2017-9868
* New upstream release.
* Remove upstart support.
* Bumped standards version to 4.1.2.
- Removed invoke-rc.d conditionals.
- Changed "extra" priorities to "optional".
* Build-Depends: Add dh-systemd, bump libwebsockets to >=2.0.
* no-man-clean.patch - don't clean man pages from source directory.
* async_dns.patch - enable bridge async DNS lookups.
-- Roger A. Light <roger@atchoo.org> Fri, 22 Dec 2017 07:14:19 +0000
mosquitto (1.4.12-1) experimental; urgency=low
* New upstream release.
-- Roger A. Light <roger@atchoo.org> Mon, 29 May 2017 14:56:32 +0100
mosquitto (1.4.10-3) unstable; urgency=high
* SECURITY UPDATE: Pattern ACL can be bypassed by using a username/client id
set to '+' or '#'.
- debian/patches/mosquitto-0.15_cve-2017-7650.patch: Reject send/receive
of messages to/from clients with a '+', '#' or '/' in their
username/client id.
- CVE-2017-7650
* New patch debian/patches/allow_ipv6_bridges.patch allows bridges to make
IPv6 connections when using TLS (closes: #857759).
-- Roger A. Light <roger@atchoo.org> Mon, 29 May 2017 13:43:29 +0100
mosquitto (1.4.10-2) unstable; urgency=medium
* Bumped standards version to 3.9.8. No changes needed.
* Bumped dh compat level to 10.
* Vcs-* links updated.
-- Roger A. Light <roger@atchoo.org> Thu, 03 Nov 2016 22:37:33 +0000
mosquitto (1.4.10-1) unstable; urgency=low
* New upstream release.
* Add support for openssl 1.1.0 (closes: #828442)
* Fix FTBFS on Hurd (closes: #824571)
-- Roger A. Light <roger@atchoo.org> Thu, 27 Oct 2016 14:01:40 +0100
mosquitto (1.4.8-1) unstable; urgency=high
* New upstream release.
* apparmor is now "suggests" instead of "depends".
-- Roger A. Light <roger@atchoo.org> Sun, 14 Feb 2016 15:06:55 +0000
mosquitto (1.4.7-1) unstable; urgency=low
* New upstream release. Includes support for libwebsockets 1.6.
* Add dependency link between libmosquittopp-dev and libmosquitto-dev
(closes: #805506).
* Dropped misc:Pre-Depends line for libmosquitto1. See #783898.
* libc-ares2 Depends is handled by shlib:Depends for libmosquitto1.
-- Roger A. Light <roger@atchoo.org> Mon, 21 Dec 2015 10:59:31 +0000
mosquitto (1.4.4-1) unstable; urgency=low
* New upstream release.
* Fix Vcs link.
* Note that libs & clients also support MQTT v3.1.1.
-- Roger A. Light <roger@atchoo.org> Mon, 21 Sep 2015 09:56:28 +0100
mosquitto (1.4.3-1) unstable; urgency=low
* New upstream release.
* New binary package mosquitto-dev.
* python3-mosquitto and python-mosquitto packages removed because the python
module is no longer part of upstream.
* Remove unused patches (pynomake.patch and disable-bad-test.patch)
* Added dependency on libwebsockets3, uuid. Note that the source package
will build (and actually prefers) using libwebsockets4 when it becomes
available. This adds the patch enable-websockets.patch.
* Upstream license has changed from BSD-3 to EPL-1.0 or EDL-1.0.
* Fix log directory permissions.
* Port to multiarch (closes: #763385) - adds libdir.patch
* Symbols update
* Patch refresh
* Add build-timestamp.patch to create reproducable builds.
* Add support for apparmor.
-- Roger A. Light <roger@atchoo.org> Wed, 19 Aug 2015 10:31:10 +0100
mosquitto (1.3.4-2) unstable; urgency=low
* Disable bad "fake ca" test.
-- Roger A. Light <roger@atchoo.org> Sat, 16 Aug 2014 10:52:12 +0100
mosquitto (1.3.4-1) unstable; urgency=medium
* New upstream release: http://mosquitto.org/2014/08/version-1-3-4-released/
(closes: #725014, #754787)
* Add dependency on libuuid, c-ares.
* Bumped standards version to 3.9.5. No changes needed.
* Example config files are now installed to
/usr/share/doc/mosquitto/examples/
* debian/copyright year updated.
* compiling.txt is no longer distributed.
* Updated debian/copyright with new dates.
-- Roger A. Light <roger@atchoo.org> Wed, 06 Aug 2014 00:43:39 +0100
mosquitto (1.2.1-1) unstable; urgency=low
* New upstream release: http://mosquitto.org/2013/09/version-1-2-1-released/
* Add Replaces/Break for libmosquitto-dev and libmosquittopp-dev
(closes: #720637, #720638).
-- Roger A. Light <roger@atchoo.org> Wed, 18 Sep 2013 21:36:01 +0100
mosquitto (1.2-1) unstable; urgency=low
* New upstream release: http://mosquitto.org/2013/08/version-1-2-released/
(closes: #685119).
* Bumped standards release to 3.9.4. No changes needed.
* Added mosquitto-dbg package for binary debug information.
* Added python3-mosquitto binary package.
* Use dh_python2 (and dh_python3) instead of python-support.
* mosquitto now logs to /var/log/mosquitto/ using logrotate.
* mosquitto local config should now be placed in /etc/mosquitto/conf.d/
-- Roger A. Light <roger@atchoo.org> Wed, 07 Aug 2013 23:26:19 +0100
mosquitto (0.15-1) unstable; urgency=low
* New upstream release: http://mosquitto.org/2012/02/version-0-15-released/
* Updated debian/copyright to latest DEP-5.
* Removed now unnecessary man-hyphen-minus.patch.
-- Roger A. Light <roger@atchoo.org> Sun, 05 Feb 2012 09:30:22 +0000
mosquitto (0.12-1) unstable; urgency=low
* New upstream release: http://mosquitto.org/2011/07/version-0-12-released/
-- Roger A. Light <roger@atchoo.org> Mon, 25 Jul 2011 22:24:52 +0100
mosquitto (0.11.3-1) unstable; urgency=low
* New upstream release: http://mosquitto.org/2011/07/version-0-11-3-released/
* Fix init script start action to create pidfile so stop works correctly.
(thanks to Mark Hindess, closes: #632589)
* Fix section for client libraries in debian/control.
* Remove disable-cmake.patch, this is handled in debian/rules now.
-- Roger A. Light <roger@atchoo.org> Wed, 6 July 2011 15:07:04 +0100
mosquitto (0.10-1) unstable; urgency=low
* Initial release. (Closes: #605319)
-- Roger A. Light <roger@atchoo.org> Sun, 1 May 2011 20:12:51 +0100

1
debian/compat vendored

@ -0,0 +1 @@
10

124
debian/control vendored

@ -0,0 +1,124 @@
Source: mosquitto
Section: net
Priority: optional
Maintainer: Roger A. Light <roger@atchoo.org>
Build-Depends: debhelper (>= 10),
libssl-dev (>=1.0.0),
libsystemd-dev,
libwebsockets-dev,
libwrap0-dev,
pkg-config,
uthash-dev
Standards-Version: 4.3.0
Homepage: https://mosquitto.org/
Vcs-Git: https://github.com/eclipse/mosquitto
Vcs-Browser: https://github.com/eclipse/mosquitto/tree/debian
Package: mosquitto
Architecture: any
Multi-Arch: foreign
Depends: adduser (>= 3.10),
lsb-base (>=4.1+Debian3),
${misc:Depends},
${shlibs:Depends}
Suggests: apparmor
Description: MQTT version 3.1/3.1.1/5.0 compatible message broker
This is a message broker that supports version 5.0 and 3.1.1 of the MQTT
protocol.
.
MQTT provides a method of carrying out messaging using a publish/subscribe
model. It is lightweight, both in terms of bandwidth usage and ease of
implementation. This makes it particularly useful at the edge of the network
where a sensor or other simple device may be implemented using an arduino for
example.
Package: mosquitto-dev
Section: devel
Architecture: all
Multi-Arch: foreign
Depends: mosquitto (<< ${source:Version}.1~),
mosquitto (>= ${source:Version}),
${misc:Depends}
Description: Development files for Mosquitto
Mosquitto is a message broker that supports the MQTT protocol.
.
This package contains the include files used if you wish to compile a package
which requires Mosquitto's source file headers.
Package: libmosquitto1
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: MQTT version 3.1/3.1.1/5.0 client library
This is a C library for implementing MQTT version 3.1/3.1.1/5.0 clients.
.
MQTT provides a method of carrying out messaging using a publish/subscribe
model. It is lightweight, both in terms of bandwidth usage and ease of
implementation. This makes it particularly useful at the edge of the network
where a sensor or other simple device may be implemented using an arduino for
example.
Package: libmosquitto-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libmosquitto1 (<< ${source:Version}.1~),
libmosquitto1 (>= ${source:Version}),
${misc:Depends}
Replaces: libmosquitto0-dev (<< 1.2-1~)
Breaks: libmosquitto0-dev (<< 1.2-1~)
Description: MQTT version 3.1/3.1.1/5.0 client library, development files
This is the header and man page for the libmosquitto1 C library, which is a
library for implementing MQTT version 3.1/3.1.1/5.0 clients. This package is
needed to do development with libmosquitto1.
Package: libmosquittopp1
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: libmosquitto1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Description: MQTT version 3.1/3.1.1 client C++ library
This is a C++ library for implementing MQTT version 3.1/3.1.1 clients.
.
MQTT provides a method of carrying out messaging using a publish/subscribe
model. It is lightweight, both in terms of bandwidth usage and ease of
implementation. This makes it particularly useful at the edge of the network
where a sensor or other simple device may be implemented using an arduino for
example.
Package: libmosquittopp-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libmosquittopp1 (<< ${source:Version}.1~),
libmosquittopp1 (>= ${source:Version}),
libmosquitto-dev,
${misc:Depends}
Replaces: libmosquittopp0-dev (<< 1.2-1~)
Breaks: libmosquittopp0-dev (<< 1.2-1~)
Description: MQTT version 3.1 client C++ library, development files
This is the header and man page for the libmosquittopp1 C++ library, which is
a library for implementing MQTT version 3.1 clients. This package is needed to
do development with libmosquittopp1.
Package: mosquitto-clients
Architecture: any
Multi-Arch: foreign
Depends: libmosquitto1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Description: Mosquitto command line MQTT clients
This is three MQTT version 3.1/3.1.1/5.0 command line clients. mosquitto_pub
can be used to publish messages to a broker. mosquitto_sub can be used to
subscribe to a topic to receive messages. mosquitto_rr can be used to carry
out request/response type messaging.
.
MQTT provides a method of carrying out messaging using a publish/subscribe
model. It is lightweight, both in terms of bandwidth usage and ease of
implementation. This makes it particularly useful at the edge of the network
where a sensor or other simple device may be implemented using an arduino for
example.

278
debian/copyright vendored

@ -0,0 +1,278 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mosquitto
Upstream-Contact: Roger A. Light <roger@atchoo.org>
Source: https://mosquitto.org/files/source/
Files: *
Copyright: 2009-2018 Roger A. Light <roger@atchoo.org>
License: EPL-1.0 or EDL-1.0
License: EDL-1.0
Eclipse Distribution License - v 1.0
.
Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.
.
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
Neither the name of the Eclipse Foundation, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License: EPL-1.0
Eclipse Public License - v 1.0
.
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
.
1. DEFINITIONS
.
"Contribution" means:
.
a) in the case of the initial Contributor, the initial code and documentation
distributed under this Agreement, and
.
b) in the case of each subsequent Contributor:
.
i) changes to the Program, and
.
ii) additions to the Program;
.
where such changes and/or additions to the Program originate from and are
distributed by that particular Contributor. A Contribution 'originates' from a
Contributor if it was added to the Program by such Contributor itself or
anyone acting on such Contributor's behalf. Contributions do not include
additions to the Program which: (i) are separate modules of software
distributed in conjunction with the Program under their own license agreement,
and (ii) are not derivative works of the Program.
.
"Contributor" means any person or entity that distributes the Program.
.
"Licensed Patents " mean patent claims licensable by a Contributor which are
necessarily infringed by the use or sale of its Contribution alone or when
combined with the Program.
.
"Program" means the Contributions distributed in accordance with this Agreement.
.
"Recipient" means anyone who receives the Program under this Agreement,
including all Contributors.
.
2. GRANT OF RIGHTS
.
a) Subject to the terms of this Agreement, each Contributor hereby grants
Recipient a non-exclusive, worldwide, royalty-free copyright license to
reproduce, prepare derivative works of, publicly display, publicly perform,
distribute and sublicense the Contribution of such Contributor, if any, and
such derivative works, in source code and object code form.
.
b) Subject to the terms of this Agreement, each Contributor hereby grants
Recipient a non-exclusive, worldwide, royalty-free patent license under
Licensed Patents to make, use, sell, offer to sell, import and otherwise
transfer the Contribution of such Contributor, if any, in source code and
object code form. This patent license shall apply to the combination of the
Contribution and the Program if, at the time the Contribution is added by the
Contributor, such addition of the Contribution causes such combination to be
covered by the Licensed Patents. The patent license shall not apply to any
other combinations which include the Contribution. No hardware per se is
licensed hereunder.
.
c) Recipient understands that although each Contributor grants the licenses to
its Contributions set forth herein, no assurances are provided by any
Contributor that the Program does not infringe the patent or other
intellectual property rights of any other entity. Each Contributor disclaims
any liability to Recipient for claims brought by any other entity based on
infringement of intellectual property rights or otherwise. As a condition to
exercising the rights and licenses granted hereunder, each Recipient hereby
assumes sole responsibility to secure any other intellectual property rights
needed, if any. For example, if a third party patent license is required to
allow Recipient to distribute the Program, it is Recipient's responsibility to
acquire that license before distributing the Program.
.
d) Each Contributor represents that to its knowledge it has sufficient
copyright rights in its Contribution, if any, to grant the copyright license
set forth in this Agreement.
.
3. REQUIREMENTS
.
A Contributor may choose to distribute the Program in object code form under
its own license agreement, provided that:
.
a) it complies with the terms and conditions of this Agreement; and
.
b) its license agreement:
.
i) effectively disclaims on behalf of all Contributors all warranties and
conditions, express and implied, including warranties or conditions of title
and non-infringement, and implied warranties or conditions of merchantability
and fitness for a particular purpose;
.
ii) effectively excludes on behalf of all Contributors all liability for
damages, including direct, indirect, special, incidental and consequential
damages, such as lost profits;
.
iii) states that any provisions which differ from this Agreement are offered
by that Contributor alone and not by any other party; and
.
iv) states that source code for the Program is available from such
Contributor, and informs licensees how to obtain it in a reasonable manner on
or through a medium customarily used for software exchange.
.
When the Program is made available in source code form:
.
a) it must be made available under this Agreement; and
.
b) a copy of this Agreement must be included with each copy of the Program.
.
Contributors may not remove or alter any copyright notices contained within
the Program.
.
Each Contributor must identify itself as the originator of its Contribution,
if any, in a manner that reasonably allows subsequent Recipients to identify
the originator of the Contribution.
.
4. COMMERCIAL DISTRIBUTION
.
Commercial distributors of software may accept certain responsibilities with
respect to end users, business partners and the like. While this license is
intended to facilitate the commercial use of the Program, the Contributor who
includes the Program in a commercial product offering should do so in a manner
which does not create potential liability for other Contributors. Therefore,
if a Contributor includes the Program in a commercial product offering, such
Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
every other Contributor ("Indemnified Contributor") against any losses,
damages and costs (collectively "Losses") arising from claims, lawsuits and
other legal actions brought by a third party against the Indemnified
Contributor to the extent caused by the acts or omissions of such Commercial
Contributor in connection with its distribution of the Program in a commercial
product offering. The obligations in this section do not apply to any claims
or Losses relating to any actual or alleged intellectual property
infringement. In order to qualify, an Indemnified Contributor must:
a) promptly notify the Commercial Contributor in writing of such claim, and
b) allow the Commercial Contributor to control, and cooperate with the
Commercial Contributor in, the defense and any related settlement
negotiations. The Indemnified Contributor may participate in any such claim at
its own expense.
.
For example, a Contributor might include the Program in a commercial product
offering, Product X. That Contributor is then a Commercial Contributor. If
that Commercial Contributor then makes performance claims, or offers
warranties related to Product X, those performance claims and warranties are
such Commercial Contributor's responsibility alone. Under this section, the
Commercial Contributor would have to defend claims against the other
Contributors related to those performance claims and warranties, and if a
court requires any other Contributor to pay any damages as a result, the
Commercial Contributor must pay those damages.
.
5. NO WARRANTY
.
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
Recipient is solely responsible for determining the appropriateness of using
and distributing the Program and assumes all risks associated with its
exercise of rights under this Agreement , including but not limited to the
risks and costs of program errors, compliance with applicable laws, damage to
or loss of data, programs or equipment, and unavailability or interruption of
operations.
.
6. DISCLAIMER OF LIABILITY
.
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION
LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY
OF SUCH DAMAGES.
.
7. GENERAL
.
If any provision of this Agreement is invalid or unenforceable under
applicable law, it shall not affect the validity or enforceability of the
remainder of the terms of this Agreement, and without further action by the
parties hereto, such provision shall be reformed to the minimum extent
necessary to make such provision valid and enforceable.
.
If Recipient institutes patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Program itself
(excluding combinations of the Program with other software or hardware)
infringes such Recipient's patent(s), then such Recipient's rights granted
under Section 2(b) shall terminate as of the date such litigation is filed.
.
All Recipient's rights under this Agreement shall terminate if it fails to
comply with any of the material terms or conditions of this Agreement and does
not cure such failure in a reasonable period of time after becoming aware of
such noncompliance. If all Recipient's rights under this Agreement terminate,
Recipient agrees to cease use and distribution of the Program as soon as
reasonably practicable. However, Recipient's obligations under this Agreement
and any licenses granted by Recipient relating to the Program shall continue
and survive.
.
Everyone is permitted to copy and distribute copies of this Agreement, but in
order to avoid inconsistency the Agreement is copyrighted and may only be
modified in the following manner. The Agreement Steward reserves the right to
publish new versions (including revisions) of this Agreement from time to
time. No one other than the Agreement Steward has the right to modify this
Agreement. The Eclipse Foundation is the initial Agreement Steward. The
Eclipse Foundation may assign the responsibility to serve as the Agreement
Steward to a suitable separate entity. Each new version of the Agreement will
be given a distinguishing version number. The Program (including
Contributions) may always be distributed subject to the version of the
Agreement under which it was received. In addition, after a new version of the
Agreement is published, Contributor may elect to distribute the Program
(including its Contributions) under the new version. Except as expressly
stated in Sections 2(a) and 2(b) above, Recipient receives no rights or
licenses to the intellectual property of any Contributor under this Agreement,
whether expressly, by implication, estoppel or otherwise. All rights in the
Program not expressly granted under this Agreement are reserved.
.
This Agreement is governed by the laws of the State of New York and the
intellectual property laws of the United States of America. No party to this
Agreement will bring a legal action under this Agreement more than one year
after the cause of action arose. Each party waives its rights to a jury trial
in any resulting litigation.
Files: src/deps/uthash.h
Copyright: 2003-2013, Troy D. Hanson http://uthash.sourceforge.net
License: BSD-1-clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

@ -0,0 +1,4 @@
usr/include/mosquitto.h
usr/lib/*/libmosquitto.so
usr/share/man/man3/libmosquitto.3
usr/lib/*/pkgconfig/libmosquitto.pc

@ -0,0 +1,3 @@
# xsltproc generated man pages have long lines but look ok. Patching the
# generated files to use hypenation results in very odd looking files.
libmosquitto-dev binary: manpage-has-errors-from-man

@ -0,0 +1 @@
usr/lib/*/libmosquitto.so.1

@ -0,0 +1,8 @@
libmosquitto.so.1 libmosquitto1 #MINVER#
(symver)MOSQ_1.0 1.0
(symver)MOSQ_1.1 1.1
(symver)MOSQ_1.2 1.2
(symver)MOSQ_1.3 1.3
(symver)MOSQ_1.4 1.4
(symver)MOSQ_1.5 1.5
(symver)MOSQ_1.6 1.6

@ -0,0 +1,3 @@
usr/include/mosquittopp.h
usr/lib/*/libmosquittopp.so
usr/lib/*/pkgconfig/libmosquittopp.pc

@ -0,0 +1 @@
usr/lib/*/libmosquittopp.so.1

@ -0,0 +1,63 @@
libmosquittopp.so.1 libmosquittopp1 #MINVER#
(c++)"mosqpp::subscribe_simple(mosquitto_message**, int, bool, char const*, int, char const*, int, char const*, int, bool, char const*, char const*, libmosquitto_will const*, libmosquitto_tls const*)@Base" 1.5
(c++)"mosqpp::subscribe_callback(int (*)(mosquitto*, void*, mosquitto_message const*), void*, char const*, int, char const*, int, char const*, int, bool, char const*, char const*, libmosquitto_will const*, libmosquitto_tls const*)@Base" 1.5
(c++)"mosqpp::lib_cleanup()@Base" 1.0
(c++)"mosqpp::lib_version(int*, int*, int*)@Base" 1.0
(c++)"mosqpp::mosquittopp::disconnect()@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_start()@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_write(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::on_connect(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::on_connect_with_flags(int, int)@Base" 1.5
(c++)"mosqpp::mosquittopp::on_message(mosquitto_message const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::on_publish(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::socks5_set(char const*, int, char const*, char const*)@Base" 1.4
(c++)"mosqpp::mosquittopp::want_write()@Base" 1.0
(c++)"mosqpp::mosquittopp::will_clear()@Base" 1.0
(c++)"mosqpp::mosquittopp::tls_psk_set(char const*, char const*, char const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::unsubscribe(int*, char const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_forever(int, int)@Base" 1.1
(c++)"mosqpp::mosquittopp::on_subscribe(int, int, int const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::reinitialise(char const*, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::threaded_set(bool)@Base" 1.4
(c++)"mosqpp::mosquittopp::tls_opts_set(int, char const*, char const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::connect_async(char const*, int, int)@Base" 1.0
(c++)"mosqpp::mosquittopp::connect_async(char const*, int, int, char const*)@Base" 1.2
(c++)"mosqpp::mosquittopp::on_disconnect(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::user_data_set(void*)@Base" 1.0
(c++)"mosqpp::mosquittopp::on_unsubscribe(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::reconnect_async()@Base" 1.2
(c++)"mosqpp::mosquittopp::username_pw_set(char const*, char const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::tls_insecure_set(bool)@Base" 1.2
(c++)"mosqpp::mosquittopp::message_retry_set(unsigned int)@Base" 1.0
(c++)"mosqpp::mosquittopp::reconnect_delay_set(unsigned int, unsigned int, bool)@Base" 1.2
(c++)"mosqpp::mosquittopp::max_inflight_messages_set(unsigned int)@Base" 1.2
(c++)"mosqpp::mosquittopp::loop(int, int)@Base" 1.0
(c++)"mosqpp::mosquittopp::on_log(int, char const*)@Base" 1.0
(c++)"mosqpp::mosquittopp::socket()@Base" 1.0
(c++)"mosqpp::mosquittopp::connect(char const*, int, int)@Base" 1.0
(c++)"mosqpp::mosquittopp::connect(char const*, int, int, char const*)@Base" 1.2
(c++)"mosqpp::mosquittopp::publish(int*, char const*, int, void const*, int, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::tls_set(char const*, char const*, char const*, char const*, int (*)(char*, int, int, void*))@Base" 1.0
(c++)"mosqpp::mosquittopp::on_error()@Base" 1.0
(c++)"mosqpp::mosquittopp::opts_set(mosq_opt_t, void*)@Base" 1.4
(c++)"mosqpp::mosquittopp::will_set(char const*, int, void const*, int, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_misc()@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_read(int)@Base" 1.0
(c++)"mosqpp::mosquittopp::loop_stop(bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::reconnect()@Base" 1.0
(c++)"mosqpp::mosquittopp::subscribe(int*, char const*, int)@Base" 1.0
(c++)"mosqpp::mosquittopp::mosquittopp(char const*, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::mosquittopp(char const*, bool)@Base" 1.0
(c++)"mosqpp::mosquittopp::~mosquittopp()@Base" 1.0
(c++)"mosqpp::mosquittopp::~mosquittopp()@Base" 1.0
(c++)"mosqpp::mosquittopp::~mosquittopp()@Base" 1.0
(c++)"mosqpp::connack_string(int)@Base" 1.0
(c++)"mosqpp::topic_matches_sub(char const*, char const*, bool*)@Base" 1.0
(c++)"mosqpp::sub_topic_tokenise(char const*, char***, int*)@Base" 1.0
(c++)"mosqpp::sub_topic_tokens_free(char***, int)@Base" 1.0
(c++)"mosqpp::lib_init()@Base" 1.0
(c++)"mosqpp::validate_utf8(char const*, int)@Base" 1.5
(c++)"mosqpp::strerror(int)@Base" 1.0
(c++)"typeinfo for mosqpp::mosquittopp@Base" 1.0
(c++)"typeinfo name for mosqpp::mosquittopp@Base" 1.0
(c++)"vtable for mosqpp::mosquittopp@Base" 1.0

@ -0,0 +1,6 @@
usr/bin/mosquitto_pub
usr/bin/mosquitto_rr
usr/bin/mosquitto_sub
usr/share/man/man1/mosquitto_pub.1
usr/share/man/man1/mosquitto_rr.1
usr/share/man/man1/mosquitto_sub.1

@ -0,0 +1,3 @@
# xsltproc generated man pages have long lines but look ok. Patching the
# generated files to use hypenation results in very odd looking files.
mosquitto-clients binary: manpage-has-errors-from-man

@ -0,0 +1 @@
usr/include/mosquitto_plugin.h

@ -0,0 +1,13 @@
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d

@ -0,0 +1,2 @@
var/lib/mosquitto
var/log/mosquitto

@ -0,0 +1 @@
readme.md

@ -0,0 +1,4 @@
mosquitto.conf
aclfile.example
pwfile.example
pskfile.example

@ -0,0 +1,138 @@
#! /bin/sh
### BEGIN INIT INFO
# Provides: mosquitto
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mosquitto MQTT v3.1 message broker
# Description:
# This is a message broker that supports version 3.1 of the MQ Telemetry
# Transport (MQTT) protocol.
#
# MQTT provides a method of carrying out messaging using a publish/subscribe
# model. It is lightweight, both in terms of bandwidth usage and ease of
# implementation. This makes it particularly useful at the edge of the network
# where a sensor or other simple device may be implemented using an arduino for
# example.
### END INIT INFO
set -e
PIDFILE=/var/run/mosquitto.pid
DAEMON=/usr/sbin/mosquitto
# /etc/init.d/mosquitto: start and stop the mosquitto MQTT message broker
test -x ${DAEMON} || exit 0
umask 022
. /lib/lsb/init-functions
# Are we running from init?
run_by_init() {
([ "$previous" ] && [ "$runlevel" ]) || [ "$runlevel" = S ]
}
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
case "$1" in
start)
if init_is_upstart; then
exit 1
fi
log_daemon_msg "Starting network daemon:" "mosquitto"
if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
log_end_msg 0
else
log_end_msg 1
fi
;;
stop)
if init_is_upstart; then
exit 0
fi
log_daemon_msg "Stopping network daemon:" "mosquitto"
if start-stop-daemon --stop --quiet --oknodo --pidfile ${PIDFILE} --retry 30; then
log_end_msg 0
rm -f ${PIDFILE}
else
log_end_msg 1
fi
;;
reload|force-reload)
if init_is_upstart; then
exit 1
fi
log_daemon_msg "Reloading network daemon configuration:" "mosquitto"
if start-stop-daemon --stop --signal HUP --quiet --oknodo --pidfile $PIDFILE; then
log_end_msg 0
else
log_end_msg 1
fi
;;
restart)
if init_is_upstart; then
exit 1
fi
log_daemon_msg "Restarting network daemon:" "mosquitto"
if start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile ${PIDFILE}; then
rm -f ${PIDFILE}
fi
if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
log_end_msg 0
else
log_end_msg 1
fi
;;
try-restart)
if init_is_upstart; then
exit 1
fi
log_daemon_msg "Restarting Mosquitto message broker" "mosquitto"
set +e
start-stop-daemon --stop --quiet --retry 30 --pidfile ${PIDFILE}
RET="$?"
set -e
case $RET in
0)
# old daemon stopped
rm -f ${PIDFILE}
if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} -- -c /etc/mosquitto/mosquitto.conf ; then
log_end_msg 0
else
log_end_msg 1
fi
;;
1)
# daemon not running
log_progress_msg "(not running)"
log_end_msg 0
;;
*)
# failed to stop
log_progress_msg "(failed to stop)"
log_end_msg 1
;;
esac
;;
status)
if init_is_upstart; then
exit 1
fi
status_of_proc -p ${PIDFILE} ${DAEMON} mosquitto && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/mosquitto {start|stop|reload|force-reload|restart|try-restart|status}"
exit 1
esac
exit 0

@ -0,0 +1,12 @@
etc/mosquitto/ca_certificates/README
etc/mosquitto/certs/README
etc/mosquitto/conf.d/README
etc/mosquitto/mosquitto.conf
lib/systemd/system/mosquitto.service
usr/bin/mosquitto_passwd
usr/sbin/mosquitto
usr/share/man/man1/mosquitto_passwd.1
usr/share/man/man5/mosquitto.conf.5
usr/share/man/man7/mosquitto-tls.7
usr/share/man/man7/mqtt.7
usr/share/man/man8/mosquitto.8

@ -0,0 +1,13 @@
/var/log/mosquitto/mosquitto.log {
rotate 7
daily
compress
delaycompress
size 100k
nocreate
missingok
postrotate
/usr/bin/killall -HUP mosquitto
endscript
}

@ -0,0 +1,47 @@
#!/bin/sh
# postinst script for mosquitto
#
# see: dh_installdeb(1)
set -e
setup_mosquitto_user() {
if ! getent group mosquitto >/dev/null; then
addgroup --quiet --system mosquitto
fi
if ! getent passwd mosquitto >/dev/null; then
adduser --quiet --system --no-create-home --ingroup mosquitto --home /var/lib/mosquitto --shell /usr/sbin/nologin mosquitto
fi
}
fix_permissions() {
chown mosquitto /var/lib/mosquitto
test ! -e /var/log/mosquitto || chown mosquitto /var/log/mosquitto
test ! -e /var/log/mosquitto/mosquitto.log || chown mosquitto /var/log/mosquitto/mosquitto.log
}
case "$1" in
configure)
setup_mosquitto_user
fix_permissions
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Reload AppArmor profile
APP_PROFILE="/etc/apparmor.d/usr.sbin.mosquitto"
if [ -f "$APP_PROFILE" ] && aa-status --enabled 2>/dev/null; then
apparmor_parser -r "$APP_PROFILE" || true
fi
#DEBHELPER#
exit 0

@ -0,0 +1,36 @@
#!/bin/sh
# postrm script for mosquitto
#
# see: dh_installdeb(1)
set -e
case "$1" in
purge)
rm -f /var/lib/mosquitto/mosquitto.db
if [ -d /var/lib/mosquitto ]; then
rmdir --ignore-fail-on-non-empty /var/lib/mosquitto
fi
rm -f /var/log/mosquitto/mosquitto.log*
if [ -d /var/log/mosquitto ]; then
rmdir --ignore-fail-on-non-empty /var/log/mosquitto
fi
APP_PROFILE="usr.sbin.mosquitto"
rm -f /etc/apparmor.d/disable/$APP_PROFILE >/dev/null 2>&1 || true
;;
remove|abort-install|abort-upgrade|disappear)
;;
upgrade|failed-upgrade)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

@ -0,0 +1,18 @@
Description: Use pkg-config to get systemd libs to allow build on non-linux systems
Author: Roger Light <roger@atchoo.org>
Forwarded: yes
--- a/config.mk
+++ b/config.mk
@@ -237,8 +237,10 @@
endif
ifeq ($(WITH_SYSTEMD),yes)
- BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD
- BROKER_LIBS:=$(BROKER_LIBS) -lsystemd
+ ifneq ($(shell pkg-config --libs libsystemd),)
+ BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD $(shell pkg-config --cflags libsystemd)
+ BROKER_LIBS:=$(BROKER_LIBS) $(shell pkg-config --libs libsystemd)
+ endif
endif
ifeq ($(WITH_SRV),yes)

@ -0,0 +1,26 @@
Description: Set local configuration.
Author: Roger Light <roger@atchoo.org>
Forwarded: not-needed
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,7 @@
endif
$(INSTALL) -d "${DESTDIR}/etc/mosquitto"
$(INSTALL) -m 644 mosquitto.conf "${DESTDIR}/etc/mosquitto/mosquitto.conf.example"
+ $(INSTALL) -m 644 debian.conf "${DESTDIR}/etc/mosquitto/mosquitto.conf"
$(INSTALL) -m 644 aclfile.example "${DESTDIR}/etc/mosquitto/aclfile.example"
$(INSTALL) -m 644 pwfile.example "${DESTDIR}/etc/mosquitto/pwfile.example"
$(INSTALL) -m 644 pskfile.example "${DESTDIR}/etc/mosquitto/pskfile.example"
--- /dev/null
+++ b/debian.conf
@@ -0,0 +1,10 @@
+# Place your local configuration in /etc/mosquitto/conf.d/
+
+pid_file /var/run/mosquitto.pid
+
+persistence true
+persistence_location /var/lib/mosquitto/
+
+log_dest file /var/log/mosquitto/mosquitto.log
+
+include_dir /etc/mosquitto/conf.d

@ -0,0 +1,2 @@
914525.patch
debian-config.patch

35
debian/rules vendored

@ -0,0 +1,35 @@
#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export prefix=/usr
export libdir=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
# Don't process CMake rules, CMakeLists.txt is only included for Windows/Mac support.
dh $@ --buildsystem=makefile
override_dh_installchangelogs:
dh_installchangelogs ChangeLog.txt
override_dh_auto_build:
dh_auto_build -- WITH_BUNDLED_DEPS=no WITH_ADNS=yes WITH_WRAP=yes WITH_WEBSOCKETS=yes WITH_STRIP=no WITH_SYSTEMD=yes
override_dh_auto_test:
override_dh_strip:
dh_strip -p mosquitto --dbgsym-migration='mosquitto-dbg (<< 1.5)' -Xlibmosquitto
dh_strip -p libmosquitto1 --dbgsym-migration='libmosquitto1-dbg (<< 1.5)' -Xlibmosquittopp -Xsbin/mosquitto
dh_strip -p libmosquittopp1 --dbgsym-migration='libmosquittopp1-dbg (<< 1.5)' -Xlibmosquitto.so -Xsbin/mosquitto
dh_strip --remaining-packages
override_dh_auto_install:
dh_auto_install
install -d debian/tmp/etc/mosquitto/conf.d/
install -m 644 debian/README-conf-d debian/tmp/etc/mosquitto/conf.d/README
install -d debian/tmp/etc/mosquitto/ca_certificates/
install -m 644 debian/README-ca_certificates debian/tmp/etc/mosquitto/ca_certificates/README
install -d debian/tmp/etc/mosquitto/certs/
install -m 644 debian/README-certs debian/tmp/etc/mosquitto/certs/README
install -m 644 debian/mosquitto.conf debian/tmp/etc/mosquitto/mosquitto.conf
install -d debian/tmp/lib/systemd/system/
install -m 644 ./service/systemd/mosquitto.service.notify debian/tmp/lib/systemd/system/mosquitto.service

@ -0,0 +1 @@
3.0 (quilt)

@ -0,0 +1,16 @@
Name: mosquitto
Bug-Database: https://github.com/eclipse/mosquitto/issues
Bug-Submit: https://github.com/eclipse/mosquitto/issues/new
Changelog: https://mosquitto.org/ChangeLog.txt
Contact: https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
Repository: https://github.com/eclipse/mosquitto
Security-Contact: https://www.eclipse.org/security/
Reference:
Author: Roger A. Light
Title: "Mosquitto: server and client implementation of the MQTT protocol"
Journal: The Journal of Open Source Software
Year: 2017
Volume: 2
Number: 13
DOI: http://dx.doi.org/10.21105/joss.00265
eprint: http://joss.theoj.org/papers/ebbbbf7c7a2f7e98e32ae41ee88a3bca

@ -0,0 +1,58 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
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
0nYf/elPCss1nZIWOa8=
=S/ue
-----END PGP PUBLIC KEY BLOCK-----

3
debian/watch vendored

@ -0,0 +1,3 @@
version=3
opts="pgpsigurlmangle=s/$/.asc/" \
https://mosquitto.org/files/source/mosquitto-(.*)\.tar\.gz
Loading…
Cancel
Save