1 |
commit: f0290f7ff6d164ed37b5f179befadb8a478b9708 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 18 03:53:57 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 05:10:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0290f7f |
7 |
|
8 |
app-misc/mosquitto: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
app-misc/mosquitto/Manifest | 4 - |
13 |
app-misc/mosquitto/mosquitto-1.6.10.ebuild | 113 ----------------------------- |
14 |
app-misc/mosquitto/mosquitto-1.6.12.ebuild | 113 ----------------------------- |
15 |
app-misc/mosquitto/mosquitto-1.6.8.ebuild | 113 ----------------------------- |
16 |
app-misc/mosquitto/mosquitto-1.6.9.ebuild | 113 ----------------------------- |
17 |
5 files changed, 456 deletions(-) |
18 |
|
19 |
diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest |
20 |
index fa739219676..2eed118b798 100644 |
21 |
--- a/app-misc/mosquitto/Manifest |
22 |
+++ b/app-misc/mosquitto/Manifest |
23 |
@@ -1,7 +1,3 @@ |
24 |
-DIST mosquitto-1.6.10.tar.gz 613060 BLAKE2B 8c148479f79a1aa8a9abdb2bd386dbf9466f1afa41f4e0ed4d29a52adf7571ebca47231f32ec8cbf2760eb7a27bd6633985851fe4c8cb413572c32588a12097b SHA512 2050a7a7af864057a177728f1cab9f6db70d6d1ea609d90c637723c2c9cfc9716429739302abd6742bde932716fae340854fff35956693dfee4ef31ce7b04a25 |
25 |
-DIST mosquitto-1.6.12.tar.gz 618718 BLAKE2B 4e7744d212f0fda980e485d102702547e76b39e4b98904afb05b372af8deba4eaaec2186dc61e8b218808a2435ed81f5fa621ebf41d5877c25b091ff64e8eb8b SHA512 68cd2e4aa14254c0332ad78eac1f885e0e4e9f2332540d3778b8c7df096db7618b8467b5bb25f70ddc3306d01dd36eb9a9e2bf2738da77e196c7a1ccaed869d2 |
26 |
DIST mosquitto-1.6.15.tar.gz 620117 BLAKE2B 0107ed0af902b84c73b857ccd97dfe96b1c7ed8604b843ad40f62d3f1246ded4ef1691158311ac9a672ca331f569d13547165f3a0386c77e94ddc13c8a9e3e00 SHA512 30fa2e8a15b87a33d6c8fc3a1f5d45d8e15d284fade116ac5b7bc8722609d565bed22ac592c303fc74352e3272067b2b0c8da463abffc6490cf959ce177329f3 |
27 |
-DIST mosquitto-1.6.8.tar.gz 589873 BLAKE2B aa2e13397f7d4b6305af3180cd042cd143054e154cf8e6d93b05bc5a10d48419174711a1893fe60c1303a2f83cfbc5341cf03ec595e3640f503a2407e869491b SHA512 c15897df4e0979ee29a1e67cc671f56db600a078e9eb0bea376248b3f53b13ceed36616ad3678e2c9e07d6834a6d75e4efca2c40086069c1546e0223be04c071 |
28 |
-DIST mosquitto-1.6.9.tar.gz 610934 BLAKE2B 59d126a2b26be895f078be0c0dcf3513e56fc135dc956d9361ee191bd7ad6972b4692cd1824ad7a4e86a982df70c1e198e937f9ab23bf778069690098f87c815 SHA512 f78228a1e8305e4d89b34250981ed2c5fe5317636003636dc90f6fa2b1e3ca3c8fadb705ee7301f5252456cb093a6547bd46a255ca3d9fb5cdced697738d6eb7 |
29 |
DIST mosquitto-2.0.10.tar.gz 759106 BLAKE2B 9cf94d29ee52a9086d8be176f5bba12b8b958a758fc03765c95298a5e7752c63510f6e12915a67d92a4e49b3ecfaa897b615b825375540728681bc9d628a992c SHA512 c356bfe5dc9317e1943cf14c20ae52af544aefc0138349abd3be5001032ce63579aa059dd62901a0802f08d059a9dc29b6fbcba852e3c4cd702189433ceac174 |
30 |
DIST mosquitto-2.0.11.tar.gz 760325 BLAKE2B adde701bb87ec8071eaaf74fca37f81c4eae97bf98de0fe471f1dfbfb64ccda15b34611b0ffc3d2099a37994151363ad5c717bfa7695fabc1a4927ebd14ae66e SHA512 d0c7c52cb76c4711e54f841217529326d682c4decfc7a1bc96d872904e68df444ca3918fab7ba041b62f7b5420c89c631227b69a8eec51fd2e2dd480d8244710 |
31 |
|
32 |
diff --git a/app-misc/mosquitto/mosquitto-1.6.10.ebuild b/app-misc/mosquitto/mosquitto-1.6.10.ebuild |
33 |
deleted file mode 100644 |
34 |
index e6439ec04b8..00000000000 |
35 |
--- a/app-misc/mosquitto/mosquitto-1.6.10.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,113 +0,0 @@ |
38 |
-# Copyright 1999-2021 Gentoo Authors |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=7 |
42 |
-PYTHON_COMPAT=( python3_{7,8} ) |
43 |
- |
44 |
-inherit python-any-r1 systemd toolchain-funcs |
45 |
- |
46 |
-DESCRIPTION="An Open Source MQTT v3 Broker" |
47 |
-HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto" |
48 |
-SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
49 |
- |
50 |
-LICENSE="EPL-1.0" |
51 |
-SLOT="0" |
52 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
53 |
-IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
54 |
-RESTRICT="!test? ( test )" |
55 |
- |
56 |
-REQUIRED_USE="test? ( bridge )" |
57 |
- |
58 |
-RDEPEND=" |
59 |
- acct-user/mosquitto |
60 |
- acct-group/mosquitto |
61 |
- srv? ( net-dns/c-ares:= ) |
62 |
- ssl? ( |
63 |
- dev-libs/openssl:0= |
64 |
- ) |
65 |
- tcpd? ( sys-apps/tcp-wrappers )" |
66 |
- |
67 |
-DEPEND="${PYTHON_DEPS} |
68 |
- ${RDEPEND} |
69 |
- test? ( dev-util/cunit ) |
70 |
- websockets? ( net-libs/libwebsockets[lejp] )" |
71 |
- |
72 |
-_emake() { |
73 |
- local LIBDIR=$(get_libdir) |
74 |
- emake \ |
75 |
- CC="$(tc-getCC)" \ |
76 |
- CLIENT_LDFLAGS="${LDFLAGS}" \ |
77 |
- LIB_SUFFIX="${LIBDIR:3}" \ |
78 |
- WITH_BRIDGE="$(usex bridge)" \ |
79 |
- WITH_PERSISTENCE="$(usex persistence)" \ |
80 |
- WITH_SRV="$(usex srv)" \ |
81 |
- WITH_TLS="$(usex ssl)" \ |
82 |
- WITH_WEBSOCKETS="$(usex websockets)" \ |
83 |
- WITH_WRAP="$(usex tcpd)" \ |
84 |
- "$@" |
85 |
-} |
86 |
- |
87 |
-src_prepare() { |
88 |
- default |
89 |
- if use persistence; then |
90 |
- sed -i -e "/^#autosave_interval/s|^#||" \ |
91 |
- -e "s|^#persistence false$|persistence true|" \ |
92 |
- -e "/^#persistence_file/s|^#||" \ |
93 |
- -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \ |
94 |
- mosquitto.conf || die |
95 |
- fi |
96 |
- |
97 |
- # Remove prestripping |
98 |
- sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
99 |
- client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
100 |
- |
101 |
- # Remove failing tests |
102 |
- sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \ |
103 |
- -e '/02-subpub-qos1-bad-pubrec.py/d' \ |
104 |
- -e '/02-subpub-qos2-bad-puback-1.py/d' \ |
105 |
- -e '/02-subpub-qos2-bad-puback-2.py/d' \ |
106 |
- -e '/02-subpub-qos2-bad-pubcomp.py/d' \ |
107 |
- test/broker/Makefile || die |
108 |
- sed -i -e '/02-subscribe-qos1-async2.test/d' \ |
109 |
- test/lib/Makefile || die |
110 |
- |
111 |
- python_setup |
112 |
- python_fix_shebang test |
113 |
-} |
114 |
- |
115 |
-src_compile() { |
116 |
- _emake |
117 |
-} |
118 |
- |
119 |
-src_test() { |
120 |
- _emake test |
121 |
-} |
122 |
- |
123 |
-src_install() { |
124 |
- _emake DESTDIR="${D}" prefix=/usr install |
125 |
- keepdir /var/lib/mosquitto |
126 |
- fowners mosquitto:mosquitto /var/lib/mosquitto |
127 |
- dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
128 |
- doinitd "${FILESDIR}"/mosquitto |
129 |
- insinto /etc/mosquitto |
130 |
- doins mosquitto.conf |
131 |
- systemd_dounit "${FILESDIR}/mosquitto.service" |
132 |
- |
133 |
- if use examples; then |
134 |
- docompress -x "/usr/share/doc/${PF}/examples" |
135 |
- dodoc -r examples |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-pkg_postinst() { |
140 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
141 |
- elog "The Python module has been moved out of mosquitto." |
142 |
- elog "See https://mosquitto.org/documentation/python/" |
143 |
- else |
144 |
- elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
145 |
- elog "" |
146 |
- elog " rc-update add mosquitto default" |
147 |
- elog "or" |
148 |
- elog " systemctl enable mosquitto" |
149 |
- fi |
150 |
-} |
151 |
|
152 |
diff --git a/app-misc/mosquitto/mosquitto-1.6.12.ebuild b/app-misc/mosquitto/mosquitto-1.6.12.ebuild |
153 |
deleted file mode 100644 |
154 |
index 3e4e46ebc04..00000000000 |
155 |
--- a/app-misc/mosquitto/mosquitto-1.6.12.ebuild |
156 |
+++ /dev/null |
157 |
@@ -1,113 +0,0 @@ |
158 |
-# Copyright 1999-2021 Gentoo Authors |
159 |
-# Distributed under the terms of the GNU General Public License v2 |
160 |
- |
161 |
-EAPI=7 |
162 |
-PYTHON_COMPAT=( python3_{7,8} ) |
163 |
- |
164 |
-inherit python-any-r1 systemd toolchain-funcs |
165 |
- |
166 |
-DESCRIPTION="An Open Source MQTT v3 Broker" |
167 |
-HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto" |
168 |
-SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
169 |
- |
170 |
-LICENSE="EPL-1.0" |
171 |
-SLOT="0" |
172 |
-KEYWORDS="amd64 arm ~arm64 ~x86" |
173 |
-IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
174 |
-RESTRICT="!test? ( test )" |
175 |
- |
176 |
-REQUIRED_USE="test? ( bridge )" |
177 |
- |
178 |
-RDEPEND=" |
179 |
- acct-user/mosquitto |
180 |
- acct-group/mosquitto |
181 |
- srv? ( net-dns/c-ares:= ) |
182 |
- ssl? ( |
183 |
- dev-libs/openssl:0= |
184 |
- ) |
185 |
- tcpd? ( sys-apps/tcp-wrappers )" |
186 |
- |
187 |
-DEPEND="${PYTHON_DEPS} |
188 |
- ${RDEPEND} |
189 |
- test? ( dev-util/cunit ) |
190 |
- websockets? ( net-libs/libwebsockets[lejp] )" |
191 |
- |
192 |
-_emake() { |
193 |
- local LIBDIR=$(get_libdir) |
194 |
- emake \ |
195 |
- CC="$(tc-getCC)" \ |
196 |
- CLIENT_LDFLAGS="${LDFLAGS}" \ |
197 |
- LIB_SUFFIX="${LIBDIR:3}" \ |
198 |
- WITH_BRIDGE="$(usex bridge)" \ |
199 |
- WITH_PERSISTENCE="$(usex persistence)" \ |
200 |
- WITH_SRV="$(usex srv)" \ |
201 |
- WITH_TLS="$(usex ssl)" \ |
202 |
- WITH_WEBSOCKETS="$(usex websockets)" \ |
203 |
- WITH_WRAP="$(usex tcpd)" \ |
204 |
- "$@" |
205 |
-} |
206 |
- |
207 |
-src_prepare() { |
208 |
- default |
209 |
- if use persistence; then |
210 |
- sed -i -e "/^#autosave_interval/s|^#||" \ |
211 |
- -e "s|^#persistence false$|persistence true|" \ |
212 |
- -e "/^#persistence_file/s|^#||" \ |
213 |
- -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \ |
214 |
- mosquitto.conf || die |
215 |
- fi |
216 |
- |
217 |
- # Remove prestripping |
218 |
- sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
219 |
- client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
220 |
- |
221 |
- # Remove failing tests |
222 |
- sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \ |
223 |
- -e '/02-subpub-qos1-bad-pubrec.py/d' \ |
224 |
- -e '/02-subpub-qos2-bad-puback-1.py/d' \ |
225 |
- -e '/02-subpub-qos2-bad-puback-2.py/d' \ |
226 |
- -e '/02-subpub-qos2-bad-pubcomp.py/d' \ |
227 |
- test/broker/Makefile || die |
228 |
- sed -i -e '/02-subscribe-qos1-async2.test/d' \ |
229 |
- test/lib/Makefile || die |
230 |
- |
231 |
- python_setup |
232 |
- python_fix_shebang test |
233 |
-} |
234 |
- |
235 |
-src_compile() { |
236 |
- _emake |
237 |
-} |
238 |
- |
239 |
-src_test() { |
240 |
- _emake test |
241 |
-} |
242 |
- |
243 |
-src_install() { |
244 |
- _emake DESTDIR="${D}" prefix=/usr install |
245 |
- keepdir /var/lib/mosquitto |
246 |
- fowners mosquitto:mosquitto /var/lib/mosquitto |
247 |
- dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
248 |
- doinitd "${FILESDIR}"/mosquitto |
249 |
- insinto /etc/mosquitto |
250 |
- doins mosquitto.conf |
251 |
- systemd_dounit "${FILESDIR}/mosquitto.service" |
252 |
- |
253 |
- if use examples; then |
254 |
- docompress -x "/usr/share/doc/${PF}/examples" |
255 |
- dodoc -r examples |
256 |
- fi |
257 |
-} |
258 |
- |
259 |
-pkg_postinst() { |
260 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
261 |
- elog "The Python module has been moved out of mosquitto." |
262 |
- elog "See https://mosquitto.org/documentation/python/" |
263 |
- else |
264 |
- elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
265 |
- elog "" |
266 |
- elog " rc-update add mosquitto default" |
267 |
- elog "or" |
268 |
- elog " systemctl enable mosquitto" |
269 |
- fi |
270 |
-} |
271 |
|
272 |
diff --git a/app-misc/mosquitto/mosquitto-1.6.8.ebuild b/app-misc/mosquitto/mosquitto-1.6.8.ebuild |
273 |
deleted file mode 100644 |
274 |
index f5044e2f0b3..00000000000 |
275 |
--- a/app-misc/mosquitto/mosquitto-1.6.8.ebuild |
276 |
+++ /dev/null |
277 |
@@ -1,113 +0,0 @@ |
278 |
-# Copyright 1999-2021 Gentoo Authors |
279 |
-# Distributed under the terms of the GNU General Public License v2 |
280 |
- |
281 |
-EAPI=7 |
282 |
-PYTHON_COMPAT=( python3_{7,8} ) |
283 |
- |
284 |
-inherit python-any-r1 systemd toolchain-funcs |
285 |
- |
286 |
-DESCRIPTION="An Open Source MQTT v3 Broker" |
287 |
-HOMEPAGE="https://mosquitto.org/" |
288 |
-SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
289 |
- |
290 |
-LICENSE="EPL-1.0" |
291 |
-SLOT="0" |
292 |
-KEYWORDS="amd64 arm x86" |
293 |
-IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
294 |
-RESTRICT="!test? ( test )" |
295 |
- |
296 |
-REQUIRED_USE="test? ( bridge )" |
297 |
- |
298 |
-RDEPEND=" |
299 |
- acct-user/mosquitto |
300 |
- acct-group/mosquitto |
301 |
- srv? ( net-dns/c-ares:= ) |
302 |
- ssl? ( |
303 |
- dev-libs/openssl:0= |
304 |
- ) |
305 |
- tcpd? ( sys-apps/tcp-wrappers )" |
306 |
- |
307 |
-DEPEND="${PYTHON_DEPS} |
308 |
- ${RDEPEND} |
309 |
- test? ( dev-util/cunit ) |
310 |
- websockets? ( net-libs/libwebsockets[lejp] )" |
311 |
- |
312 |
-_emake() { |
313 |
- local LIBDIR=$(get_libdir) |
314 |
- emake \ |
315 |
- CC="$(tc-getCC)" \ |
316 |
- CLIENT_LDFLAGS="${LDFLAGS}" \ |
317 |
- LIB_SUFFIX="${LIBDIR:3}" \ |
318 |
- WITH_BRIDGE="$(usex bridge)" \ |
319 |
- WITH_PERSISTENCE="$(usex persistence)" \ |
320 |
- WITH_SRV="$(usex srv)" \ |
321 |
- WITH_TLS="$(usex ssl)" \ |
322 |
- WITH_WEBSOCKETS="$(usex websockets)" \ |
323 |
- WITH_WRAP="$(usex tcpd)" \ |
324 |
- "$@" |
325 |
-} |
326 |
- |
327 |
-src_prepare() { |
328 |
- default |
329 |
- if use persistence; then |
330 |
- sed -i -e "/^#autosave_interval/s|^#||" \ |
331 |
- -e "s|^#persistence false$|persistence true|" \ |
332 |
- -e "/^#persistence_file/s|^#||" \ |
333 |
- -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \ |
334 |
- mosquitto.conf || die |
335 |
- fi |
336 |
- |
337 |
- # Remove prestripping |
338 |
- sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
339 |
- client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
340 |
- |
341 |
- # Remove failing tests |
342 |
- sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \ |
343 |
- -e '/02-subpub-qos1-bad-pubrec.py/d' \ |
344 |
- -e '/02-subpub-qos2-bad-puback-1.py/d' \ |
345 |
- -e '/02-subpub-qos2-bad-puback-2.py/d' \ |
346 |
- -e '/02-subpub-qos2-bad-pubcomp.py/d' \ |
347 |
- test/broker/Makefile || die |
348 |
- sed -i -e '/02-subscribe-qos1-async2.test/d' \ |
349 |
- test/lib/Makefile || die |
350 |
- |
351 |
- python_setup |
352 |
- python_fix_shebang test |
353 |
-} |
354 |
- |
355 |
-src_compile() { |
356 |
- _emake |
357 |
-} |
358 |
- |
359 |
-src_test() { |
360 |
- _emake test |
361 |
-} |
362 |
- |
363 |
-src_install() { |
364 |
- _emake DESTDIR="${D}" prefix=/usr install |
365 |
- keepdir /var/lib/mosquitto |
366 |
- fowners mosquitto:mosquitto /var/lib/mosquitto |
367 |
- dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
368 |
- doinitd "${FILESDIR}"/mosquitto |
369 |
- insinto /etc/mosquitto |
370 |
- doins mosquitto.conf |
371 |
- systemd_dounit "${FILESDIR}/mosquitto.service" |
372 |
- |
373 |
- if use examples; then |
374 |
- docompress -x "/usr/share/doc/${PF}/examples" |
375 |
- dodoc -r examples |
376 |
- fi |
377 |
-} |
378 |
- |
379 |
-pkg_postinst() { |
380 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
381 |
- elog "The Python module has been moved out of mosquitto." |
382 |
- elog "See https://mosquitto.org/documentation/python/" |
383 |
- else |
384 |
- elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
385 |
- elog "" |
386 |
- elog " rc-update add mosquitto default" |
387 |
- elog "or" |
388 |
- elog " systemctl enable mosquitto" |
389 |
- fi |
390 |
-} |
391 |
|
392 |
diff --git a/app-misc/mosquitto/mosquitto-1.6.9.ebuild b/app-misc/mosquitto/mosquitto-1.6.9.ebuild |
393 |
deleted file mode 100644 |
394 |
index 951f69319f6..00000000000 |
395 |
--- a/app-misc/mosquitto/mosquitto-1.6.9.ebuild |
396 |
+++ /dev/null |
397 |
@@ -1,113 +0,0 @@ |
398 |
-# Copyright 1999-2021 Gentoo Authors |
399 |
-# Distributed under the terms of the GNU General Public License v2 |
400 |
- |
401 |
-EAPI=7 |
402 |
-PYTHON_COMPAT=( python3_{7,8} ) |
403 |
- |
404 |
-inherit python-any-r1 systemd toolchain-funcs |
405 |
- |
406 |
-DESCRIPTION="An Open Source MQTT v3 Broker" |
407 |
-HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto" |
408 |
-SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
409 |
- |
410 |
-LICENSE="EPL-1.0" |
411 |
-SLOT="0" |
412 |
-KEYWORDS="~amd64 ~arm ~x86" |
413 |
-IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
414 |
-RESTRICT="!test? ( test )" |
415 |
- |
416 |
-REQUIRED_USE="test? ( bridge )" |
417 |
- |
418 |
-RDEPEND=" |
419 |
- acct-user/mosquitto |
420 |
- acct-group/mosquitto |
421 |
- srv? ( net-dns/c-ares:= ) |
422 |
- ssl? ( |
423 |
- dev-libs/openssl:0= |
424 |
- ) |
425 |
- tcpd? ( sys-apps/tcp-wrappers )" |
426 |
- |
427 |
-DEPEND="${PYTHON_DEPS} |
428 |
- ${RDEPEND} |
429 |
- test? ( dev-util/cunit ) |
430 |
- websockets? ( net-libs/libwebsockets[lejp] )" |
431 |
- |
432 |
-_emake() { |
433 |
- local LIBDIR=$(get_libdir) |
434 |
- emake \ |
435 |
- CC="$(tc-getCC)" \ |
436 |
- CLIENT_LDFLAGS="${LDFLAGS}" \ |
437 |
- LIB_SUFFIX="${LIBDIR:3}" \ |
438 |
- WITH_BRIDGE="$(usex bridge)" \ |
439 |
- WITH_PERSISTENCE="$(usex persistence)" \ |
440 |
- WITH_SRV="$(usex srv)" \ |
441 |
- WITH_TLS="$(usex ssl)" \ |
442 |
- WITH_WEBSOCKETS="$(usex websockets)" \ |
443 |
- WITH_WRAP="$(usex tcpd)" \ |
444 |
- "$@" |
445 |
-} |
446 |
- |
447 |
-src_prepare() { |
448 |
- default |
449 |
- if use persistence; then |
450 |
- sed -i -e "/^#autosave_interval/s|^#||" \ |
451 |
- -e "s|^#persistence false$|persistence true|" \ |
452 |
- -e "/^#persistence_file/s|^#||" \ |
453 |
- -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \ |
454 |
- mosquitto.conf || die |
455 |
- fi |
456 |
- |
457 |
- # Remove prestripping |
458 |
- sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
459 |
- client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
460 |
- |
461 |
- # Remove failing tests |
462 |
- sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \ |
463 |
- -e '/02-subpub-qos1-bad-pubrec.py/d' \ |
464 |
- -e '/02-subpub-qos2-bad-puback-1.py/d' \ |
465 |
- -e '/02-subpub-qos2-bad-puback-2.py/d' \ |
466 |
- -e '/02-subpub-qos2-bad-pubcomp.py/d' \ |
467 |
- test/broker/Makefile || die |
468 |
- sed -i -e '/02-subscribe-qos1-async2.test/d' \ |
469 |
- test/lib/Makefile || die |
470 |
- |
471 |
- python_setup |
472 |
- python_fix_shebang test |
473 |
-} |
474 |
- |
475 |
-src_compile() { |
476 |
- _emake |
477 |
-} |
478 |
- |
479 |
-src_test() { |
480 |
- _emake test |
481 |
-} |
482 |
- |
483 |
-src_install() { |
484 |
- _emake DESTDIR="${D}" prefix=/usr install |
485 |
- keepdir /var/lib/mosquitto |
486 |
- fowners mosquitto:mosquitto /var/lib/mosquitto |
487 |
- dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
488 |
- doinitd "${FILESDIR}"/mosquitto |
489 |
- insinto /etc/mosquitto |
490 |
- doins mosquitto.conf |
491 |
- systemd_dounit "${FILESDIR}/mosquitto.service" |
492 |
- |
493 |
- if use examples; then |
494 |
- docompress -x "/usr/share/doc/${PF}/examples" |
495 |
- dodoc -r examples |
496 |
- fi |
497 |
-} |
498 |
- |
499 |
-pkg_postinst() { |
500 |
- if [[ -z "${REPLACING_VERSIONS}" ]]; then |
501 |
- elog "The Python module has been moved out of mosquitto." |
502 |
- elog "See https://mosquitto.org/documentation/python/" |
503 |
- else |
504 |
- elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
505 |
- elog "" |
506 |
- elog " rc-update add mosquitto default" |
507 |
- elog "or" |
508 |
- elog " systemctl enable mosquitto" |
509 |
- fi |
510 |
-} |