1 |
commit: afdf30764f85a99b4de9eaa6fb72bc473350dbd9 |
2 |
Author: Lucas Ramage <ramage.lucas <AT> protonmail <DOT> com> |
3 |
AuthorDate: Thu Oct 25 00:57:11 2018 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 26 00:34:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afdf3076 |
7 |
|
8 |
app-misc/mosquitto: bump to version 1.5.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/668436 |
11 |
Signed-off-by: Lucas Ramage <ramage.lucas <AT> protonmail.com> |
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/10221 |
14 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
15 |
|
16 |
app-misc/mosquitto/Manifest | 1 + |
17 |
app-misc/mosquitto/mosquitto-1.5.3.ebuild | 101 ++++++++++++++++++++++++++++++ |
18 |
2 files changed, 102 insertions(+) |
19 |
|
20 |
diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest |
21 |
index 66c09e49408..ddfa4ca9715 100644 |
22 |
--- a/app-misc/mosquitto/Manifest |
23 |
+++ b/app-misc/mosquitto/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST mosquitto-1.4.14.tar.gz 365596 BLAKE2B 92bcb1fd9e67711d6ce8db5e767be31a1321866205cf4cad684d8b77a8b14a2eaf5e4367a74d5dd8f814f0d229dc77ce878879632c0c34c6a23f7975bf6ae8c7 SHA512 dc75a971354f87deeb79f32435acfae9bc561a1a24a75ee4940a35176ff91758071930d2105d8dee2a090e07527dbfaa5692bece67e03cc87e8b4b8b46f846c2 |
26 |
+DIST mosquitto-1.5.3.tar.gz 425844 BLAKE2B d868dd67cd86e57f6af8e5556e0cee520f60cac4f16a24ceeec163acf5663339908d77304b7e70898ef5afaeeabb57c2a2857df297600180e1b9db6f2bf990b1 SHA512 8aa4f85914316c2dc08908a649779946ab33b23ea669c6f7eed0d8a1af7ae26381cfe1a50c32d220658f8693ef6a86045690824af4b7ca0271426ff3455e7796 |
27 |
DIST mosquitto-1.5.tar.gz 419614 BLAKE2B d405e1e4f967f1030229a2e64793b84a3c8dc356a3b8d95a9bfc50a623cdb79517bbcfda87275f23c44002f3a41a20db58fed5a33d2c7d63da95e0d6d15951bb SHA512 29b82bc0c6510fa5062cb43c06bd91ce5223be5689cba077df8b2cb5ac377cb125b8a8bb292b53bcec0d4b186977c25c3ecdd8c92d4ed996fde07f8c759c0668 |
28 |
|
29 |
diff --git a/app-misc/mosquitto/mosquitto-1.5.3.ebuild b/app-misc/mosquitto/mosquitto-1.5.3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..44c2e14ee22 |
32 |
--- /dev/null |
33 |
+++ b/app-misc/mosquitto/mosquitto-1.5.3.ebuild |
34 |
@@ -0,0 +1,101 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+ |
41 |
+inherit systemd user toolchain-funcs python-any-r1 |
42 |
+ |
43 |
+DESCRIPTION="An Open Source MQTT v3 Broker" |
44 |
+HOMEPAGE="https://mosquitto.org/" |
45 |
+SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="EPL-1.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~x86" |
50 |
+IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
51 |
+ |
52 |
+REQUIRED_USE="test? ( bridge )" |
53 |
+ |
54 |
+RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
55 |
+ srv? ( net-dns/c-ares ) |
56 |
+ ssl? ( dev-libs/openssl:0= )" |
57 |
+DEPEND="${RDEPEND} |
58 |
+ ${PYTHON_DEPS} |
59 |
+ websockets? ( net-libs/libwebsockets )" |
60 |
+ |
61 |
+_emake() { |
62 |
+ LIBDIR=$(get_libdir) |
63 |
+ emake \ |
64 |
+ CC="$(tc-getCC)" \ |
65 |
+ LIB_SUFFIX="${LIBDIR:3}" \ |
66 |
+ WITH_BRIDGE="$(usex bridge)" \ |
67 |
+ WITH_PERSISTENCE="$(usex persistence)" \ |
68 |
+ WITH_SRV="$(usex srv)" \ |
69 |
+ WITH_TLS="$(usex ssl)" \ |
70 |
+ WITH_WEBSOCKETS="$(usex websockets)" \ |
71 |
+ WITH_WRAP="$(usex tcpd)" \ |
72 |
+ "$@" |
73 |
+} |
74 |
+ |
75 |
+pkg_setup() { |
76 |
+ enewgroup mosquitto |
77 |
+ enewuser mosquitto -1 -1 -1 mosquitto |
78 |
+} |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ if use persistence; then |
83 |
+ sed -i -e "/^#autosave_interval/s|^#||" \ |
84 |
+ -e "s|^#persistence false$|persistence true|" \ |
85 |
+ -e "/^#persistence_file/s|^#||" \ |
86 |
+ -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \ |
87 |
+ mosquitto.conf || die |
88 |
+ fi |
89 |
+ |
90 |
+ # Remove prestripping |
91 |
+ sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
92 |
+ client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
93 |
+ |
94 |
+ python_setup |
95 |
+ rm test/{broker,lib}/ptest.py || die |
96 |
+ python_fix_shebang test |
97 |
+} |
98 |
+ |
99 |
+src_compile() { |
100 |
+ _emake |
101 |
+} |
102 |
+ |
103 |
+src_test() { |
104 |
+ _emake test |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ _emake DESTDIR="${D}" prefix=/usr install |
109 |
+ keepdir /var/lib/mosquitto |
110 |
+ fowners mosquitto:mosquitto /var/lib/mosquitto |
111 |
+ dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
112 |
+ doinitd "${FILESDIR}"/mosquitto |
113 |
+ insinto /etc/mosquitto |
114 |
+ doins mosquitto.conf |
115 |
+ systemd_dounit "${FILESDIR}/mosquitto.service" |
116 |
+ |
117 |
+ if use examples; then |
118 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
119 |
+ docinto "/usr/share/doc/${PF}" |
120 |
+ doins -r examples |
121 |
+ fi |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
126 |
+ elog "The Python module has been moved out of mosquitto." |
127 |
+ elog "See https://mosquitto.org/documentation/python/" |
128 |
+ else |
129 |
+ elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
130 |
+ elog "" |
131 |
+ elog " rc-update add mosquitto default" |
132 |
+ elog " or" |
133 |
+ elog " systemctl enable mosquitto" |
134 |
+ fi |
135 |
+} |