Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mosquitto/files/, app-misc/mosquitto/
Date: Thu, 02 Dec 2021 01:43:47
Message-Id: 1638409413.b445ab1bfd4a8221c697e535885f17c0a7b36853.mattst88@gentoo
1 commit: b445ab1bfd4a8221c697e535885f17c0a7b36853
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 2 01:43:03 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 2 01:43:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b445ab1b
7
8 app-misc/mosquitto: Drop old
9
10 Bug: https://bugs.gentoo.org/827962
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 app-misc/mosquitto/Manifest | 3 -
14 ...2.0.11-Fix-installation-using-WITH_TLS-no.patch | 29 -----
15 app-misc/mosquitto/mosquitto-1.6.15.ebuild | 114 ------------------
16 app-misc/mosquitto/mosquitto-2.0.11.ebuild | 128 ---------------------
17 app-misc/mosquitto/mosquitto-2.0.13.ebuild | 122 --------------------
18 5 files changed, 396 deletions(-)
19
20 diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest
21 index 57a1ba78a9e1..7995fc2866db 100644
22 --- a/app-misc/mosquitto/Manifest
23 +++ b/app-misc/mosquitto/Manifest
24 @@ -1,5 +1,2 @@
25 -DIST mosquitto-1.6.15.tar.gz 620117 BLAKE2B 0107ed0af902b84c73b857ccd97dfe96b1c7ed8604b843ad40f62d3f1246ded4ef1691158311ac9a672ca331f569d13547165f3a0386c77e94ddc13c8a9e3e00 SHA512 30fa2e8a15b87a33d6c8fc3a1f5d45d8e15d284fade116ac5b7bc8722609d565bed22ac592c303fc74352e3272067b2b0c8da463abffc6490cf959ce177329f3
26 -DIST mosquitto-2.0.11.tar.gz 760325 BLAKE2B adde701bb87ec8071eaaf74fca37f81c4eae97bf98de0fe471f1dfbfb64ccda15b34611b0ffc3d2099a37994151363ad5c717bfa7695fabc1a4927ebd14ae66e SHA512 d0c7c52cb76c4711e54f841217529326d682c4decfc7a1bc96d872904e68df444ca3918fab7ba041b62f7b5420c89c631227b69a8eec51fd2e2dd480d8244710
27 DIST mosquitto-2.0.12.tar.gz 783859 BLAKE2B 3bac953fc7f49e19f1914186044c75d7f8b5b23e656acfb7d4c306740d0add20c08760fc206fc871c5cecf8500eb1c88acc4905bddce159d1e8f0c4e2c28b818 SHA512 acf80980f124073fd2fdd99981bde840654fb40a6b6f1d6ef483e35880b45d029cfa9390a98753de6476f4ade068266cb4c6e3c753a0362c0309a5745ac4ebab
28 -DIST mosquitto-2.0.13.tar.gz 786806 BLAKE2B 83c5c93a209225a24812c494e6065fb4ed4c65ccb34ac60918e5c32683702a9d44f162ccc366d8c2612c6fa867b56e01aaea04b2387f44b77294259198439ad0 SHA512 f22331c0a5a501b3df50b5c4788b735599024837eec4f455d422253a20e6f4ac528044ff4a7611094af87a8059e9a836157e5dc092efedf958ed7c96e5b9f9d0
29 DIST mosquitto-2.0.14.tar.gz 787414 BLAKE2B 926e39756a0293404c8591e489e64e47cd95640d7884f2cfb687a0d548b709d8aff6d671a4941aae8b3506315d28567520c183b762639822d2d78afe323d111e SHA512 a9e4f41b9af679b30318570e86a465546024651373df10e3b132f4593b89d22d0dbac01bb7371a57132ba030a2e73971c612acb5c9ac12f5ccd06aa38d9444c2
30
31 diff --git a/app-misc/mosquitto/files/2.0.11-Fix-installation-using-WITH_TLS-no.patch b/app-misc/mosquitto/files/2.0.11-Fix-installation-using-WITH_TLS-no.patch
32 deleted file mode 100644
33 index 0a08e2997f0b..000000000000
34 --- a/app-misc/mosquitto/files/2.0.11-Fix-installation-using-WITH_TLS-no.patch
35 +++ /dev/null
36 @@ -1,29 +0,0 @@
37 -From 342aa0ad1a645f468a24266f402d92541d4fd58a Mon Sep 17 00:00:00 2001
38 -From: Roger Light <roger@××××××.org>
39 -Date: Fri, 20 Aug 2021 23:49:59 +0100
40 -Subject: [PATCH] Fix installation using WITH_TLS=no.
41 -
42 -Closes #2281. Thanks to Matt Turner.
43 ----
44 - ChangeLog.txt | 3 +++
45 - apps/mosquitto_passwd/Makefile | 2 ++
46 - 2 files changed, 5 insertions(+)
47 -
48 -diff --git a/apps/mosquitto_passwd/Makefile b/apps/mosquitto_passwd/Makefile
49 -index 3238cf3e..1fbf5e12 100644
50 ---- a/apps/mosquitto_passwd/Makefile
51 -+++ b/apps/mosquitto_passwd/Makefile
52 -@@ -37,8 +37,10 @@ password_mosq.o : ../../src/password_mosq.c ../../src/password_mosq.h
53 - ${CROSS_COMPILE}${CC} $(APP_CPPFLAGS) $(APP_CFLAGS) -c $< -o $@
54 -
55 - install : all
56 -+ifeq ($(WITH_TLS),yes)
57 - $(INSTALL) -d "${DESTDIR}$(prefix)/bin"
58 - $(INSTALL) ${STRIP_OPTS} mosquitto_passwd "${DESTDIR}${prefix}/bin/mosquitto_passwd"
59 -+endif
60 -
61 - uninstall :
62 - -rm -f "${DESTDIR}${prefix}/bin/mosquitto_passwd"
63 ---
64 -2.31.1
65 -
66
67 diff --git a/app-misc/mosquitto/mosquitto-1.6.15.ebuild b/app-misc/mosquitto/mosquitto-1.6.15.ebuild
68 deleted file mode 100644
69 index 63497c19ccdb..000000000000
70 --- a/app-misc/mosquitto/mosquitto-1.6.15.ebuild
71 +++ /dev/null
72 @@ -1,114 +0,0 @@
73 -# Copyright 1999-2021 Gentoo Authors
74 -# Distributed under the terms of the GNU General Public License v2
75 -
76 -EAPI=7
77 -PYTHON_COMPAT=( python3_{7,8} )
78 -
79 -inherit python-any-r1 systemd toolchain-funcs
80 -
81 -DESCRIPTION="An Open Source MQTT v3 Broker"
82 -HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto"
83 -SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz"
84 -
85 -LICENSE="EPL-1.0"
86 -SLOT="0"
87 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
88 -IUSE="bridge examples +persistence +srv ssl tcpd test websockets"
89 -RESTRICT="!test? ( test )"
90 -
91 -REQUIRED_USE="test? ( bridge )"
92 -
93 -RDEPEND="
94 - acct-user/mosquitto
95 - acct-group/mosquitto
96 - srv? ( net-dns/c-ares:= )
97 - ssl? (
98 - dev-libs/openssl:0=
99 - )
100 - tcpd? ( sys-apps/tcp-wrappers )"
101 -
102 -DEPEND="${PYTHON_DEPS}
103 - ${RDEPEND}
104 - test? ( dev-util/cunit )
105 - websockets? ( net-libs/libwebsockets[lejp] )"
106 -
107 -_emake() {
108 - local LIBDIR=$(get_libdir)
109 - emake \
110 - CC="$(tc-getCC)" \
111 - CXX="$(tc-getCXX)" \
112 - CLIENT_LDFLAGS="${LDFLAGS}" \
113 - LIB_SUFFIX="${LIBDIR:3}" \
114 - WITH_BRIDGE="$(usex bridge)" \
115 - WITH_PERSISTENCE="$(usex persistence)" \
116 - WITH_SRV="$(usex srv)" \
117 - WITH_TLS="$(usex ssl)" \
118 - WITH_WEBSOCKETS="$(usex websockets)" \
119 - WITH_WRAP="$(usex tcpd)" \
120 - "$@"
121 -}
122 -
123 -src_prepare() {
124 - default
125 - if use persistence; then
126 - sed -i -e "/^#autosave_interval/s|^#||" \
127 - -e "s|^#persistence false$|persistence true|" \
128 - -e "/^#persistence_file/s|^#||" \
129 - -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \
130 - mosquitto.conf || die
131 - fi
132 -
133 - # Remove prestripping
134 - sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\
135 - client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die
136 -
137 - # Remove failing tests
138 - sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \
139 - -e '/02-subpub-qos1-bad-pubrec.py/d' \
140 - -e '/02-subpub-qos2-bad-puback-1.py/d' \
141 - -e '/02-subpub-qos2-bad-puback-2.py/d' \
142 - -e '/02-subpub-qos2-bad-pubcomp.py/d' \
143 - test/broker/Makefile || die
144 - sed -i -e '/02-subscribe-qos1-async2.test/d' \
145 - test/lib/Makefile || die
146 -
147 - python_setup
148 - python_fix_shebang test
149 -}
150 -
151 -src_compile() {
152 - _emake
153 -}
154 -
155 -src_test() {
156 - _emake test
157 -}
158 -
159 -src_install() {
160 - _emake DESTDIR="${D}" prefix=/usr install
161 - keepdir /var/lib/mosquitto
162 - fowners mosquitto:mosquitto /var/lib/mosquitto
163 - dodoc readme.md CONTRIBUTING.md ChangeLog.txt
164 - doinitd "${FILESDIR}"/mosquitto
165 - insinto /etc/mosquitto
166 - doins mosquitto.conf
167 - systemd_dounit "${FILESDIR}/mosquitto.service"
168 -
169 - if use examples; then
170 - docompress -x "/usr/share/doc/${PF}/examples"
171 - dodoc -r examples
172 - fi
173 -}
174 -
175 -pkg_postinst() {
176 - if [[ -z "${REPLACING_VERSIONS}" ]]; then
177 - elog "The Python module has been moved out of mosquitto."
178 - elog "See https://mosquitto.org/documentation/python/"
179 - else
180 - elog "To start the mosquitto daemon at boot, add it to the default runlevel with:"
181 - elog ""
182 - elog " rc-update add mosquitto default"
183 - elog "or"
184 - elog " systemctl enable mosquitto"
185 - fi
186 -}
187
188 diff --git a/app-misc/mosquitto/mosquitto-2.0.11.ebuild b/app-misc/mosquitto/mosquitto-2.0.11.ebuild
189 deleted file mode 100644
190 index 51e634414e8d..000000000000
191 --- a/app-misc/mosquitto/mosquitto-2.0.11.ebuild
192 +++ /dev/null
193 @@ -1,128 +0,0 @@
194 -# Copyright 1999-2021 Gentoo Authors
195 -# Distributed under the terms of the GNU General Public License v2
196 -
197 -EAPI=7
198 -PYTHON_COMPAT=( python3_{8..10} )
199 -
200 -inherit python-any-r1 systemd toolchain-funcs
201 -
202 -DESCRIPTION="An Open Source MQTT v3 Broker"
203 -HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto"
204 -SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz"
205 -
206 -LICENSE="EPL-1.0"
207 -SLOT="0"
208 -KEYWORDS="amd64 arm ~arm64 x86"
209 -IUSE="bridge examples +persistence +srv ssl tcpd test websockets"
210 -RESTRICT="!test? ( test )"
211 -
212 -REQUIRED_USE="test? ( bridge )"
213 -
214 -RDEPEND="
215 - acct-user/mosquitto
216 - acct-group/mosquitto
217 - dev-libs/cJSON:=
218 - srv? ( net-dns/c-ares:= )
219 - ssl? (
220 - dev-libs/openssl:0=
221 - )
222 - tcpd? ( sys-apps/tcp-wrappers )"
223 -
224 -DEPEND="${PYTHON_DEPS}
225 - ${RDEPEND}
226 - test? ( dev-util/cunit )
227 - websockets? ( net-libs/libwebsockets[lejp] )"
228 -
229 -PATCHES=(
230 - "${FILESDIR}"/${PV}-Fix-installation-using-WITH_TLS-no.patch
231 -)
232 -
233 -_emake() {
234 - local LIBDIR=$(get_libdir)
235 - emake \
236 - CC="$(tc-getCC)" \
237 - CXX="$(tc-getCXX)" \
238 - CLIENT_LDFLAGS="${LDFLAGS}" \
239 - LIB_SUFFIX="${LIBDIR:3}" \
240 - WITH_BRIDGE="$(usex bridge)" \
241 - WITH_PERSISTENCE="$(usex persistence)" \
242 - WITH_SRV="$(usex srv)" \
243 - WITH_TLS="$(usex ssl)" \
244 - WITH_WEBSOCKETS="$(usex websockets)" \
245 - WITH_WRAP="$(usex tcpd)" \
246 - "$@"
247 -}
248 -
249 -src_prepare() {
250 - default
251 - if use persistence; then
252 - sed -i -e "/^#autosave_interval/s|^#||" \
253 - -e "s|^#persistence false$|persistence true|" \
254 - -e "/^#persistence_file/s|^#||" \
255 - -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \
256 - mosquitto.conf || die
257 - fi
258 -
259 - # Remove prestripping
260 - sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\
261 - client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die
262 -
263 - # Remove failing tests
264 - sed -i -e '/02-subpub-qos1-bad-pubcomp.py/d' \
265 - -e '/02-subpub-qos1-bad-pubrec.py/d' \
266 - -e '/02-subpub-qos2-bad-puback-1.py/d' \
267 - -e '/02-subpub-qos2-bad-puback-2.py/d' \
268 - -e '/02-subpub-qos2-bad-pubcomp.py/d' \
269 - test/broker/Makefile || die
270 - sed -i -e '/02-subscribe-qos1-async2.test/d' \
271 - test/lib/Makefile || die
272 -
273 - # Extend test timeout to prevent spurious failures
274 - sed -i -e 's/SUB_TIMEOUT=1/SUB_TIMEOUT=3/' \
275 - test/client/test.sh || die
276 -
277 - python_setup
278 - python_fix_shebang test
279 -}
280 -
281 -src_compile() {
282 - _emake
283 -}
284 -
285 -src_test() {
286 - _emake test
287 -}
288 -
289 -src_install() {
290 - _emake DESTDIR="${D}" prefix=/usr install
291 - keepdir /var/lib/mosquitto
292 - fowners mosquitto:mosquitto /var/lib/mosquitto
293 - dodoc README.md CONTRIBUTING.md ChangeLog.txt
294 - doinitd "${FILESDIR}"/mosquitto
295 - insinto /etc/mosquitto
296 - doins mosquitto.conf
297 - insinto /usr/share/mosquitto
298 - doins misc/letsencrypt/mosquitto-copy.sh
299 - systemd_dounit "${FILESDIR}/mosquitto.service"
300 -
301 - if use examples; then
302 - docompress -x "/usr/share/doc/${PF}/examples"
303 - dodoc -r examples
304 - fi
305 -}
306 -
307 -pkg_postinst() {
308 - for v in ${REPLACING_VERSIONS}; do
309 - if [[ $(ver_cut 1 "$v") -lt 2 ]]; then
310 - elog
311 - elog "Please read the migration guide at:"
312 - elog "https://mosquitto.org/documentation/migrating-to-2-0/"
313 - elog
314 - elog "If you use Lets Encrypt TLS certificates, take note of"
315 - elog "the changes required to run the daemon as the unprivileged"
316 - elog "mosquitto user. The mosquitto-copy.sh script has been"
317 - elog "installed to /usr/share/mosquitto/ for your convenience."
318 - elog
319 - fi
320 - done
321 -}
322
323 diff --git a/app-misc/mosquitto/mosquitto-2.0.13.ebuild b/app-misc/mosquitto/mosquitto-2.0.13.ebuild
324 deleted file mode 100644
325 index 056871a3f293..000000000000
326 --- a/app-misc/mosquitto/mosquitto-2.0.13.ebuild
327 +++ /dev/null
328 @@ -1,122 +0,0 @@
329 -# Copyright 1999-2021 Gentoo Authors
330 -# Distributed under the terms of the GNU General Public License v2
331 -
332 -EAPI=7
333 -PYTHON_COMPAT=( python3_{8..10} )
334 -
335 -inherit python-any-r1 systemd toolchain-funcs
336 -
337 -DESCRIPTION="An Open Source MQTT v3 Broker"
338 -HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto"
339 -SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz"
340 -
341 -LICENSE="EPL-1.0"
342 -SLOT="0"
343 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
344 -IUSE="bridge examples +persistence +srv ssl tcpd test websockets"
345 -RESTRICT="!test? ( test )"
346 -
347 -REQUIRED_USE="test? ( bridge )"
348 -
349 -RDEPEND="
350 - acct-user/mosquitto
351 - acct-group/mosquitto
352 - dev-libs/cJSON:=
353 - srv? ( net-dns/c-ares:= )
354 - ssl? (
355 - dev-libs/openssl:0=
356 - )
357 - tcpd? ( sys-apps/tcp-wrappers )"
358 -
359 -DEPEND="${PYTHON_DEPS}
360 - ${RDEPEND}
361 - test? ( dev-util/cunit )
362 - websockets? ( net-libs/libwebsockets[lejp] )"
363 -
364 -_emake() {
365 - local LIBDIR=$(get_libdir)
366 - emake \
367 - CC="$(tc-getCC)" \
368 - CXX="$(tc-getCXX)" \
369 - CLIENT_LDFLAGS="${LDFLAGS}" \
370 - LIB_SUFFIX="${LIBDIR:3}" \
371 - WITH_BRIDGE="$(usex bridge)" \
372 - WITH_PERSISTENCE="$(usex persistence)" \
373 - WITH_SRV="$(usex srv)" \
374 - WITH_TLS="$(usex ssl)" \
375 - WITH_WEBSOCKETS="$(usex websockets)" \
376 - WITH_WRAP="$(usex tcpd)" \
377 - "$@"
378 -}
379 -
380 -src_prepare() {
381 - default
382 - if use persistence; then
383 - sed -i -e "/^#autosave_interval/s|^#||" \
384 - -e "s|^#persistence false$|persistence true|" \
385 - -e "/^#persistence_file/s|^#||" \
386 - -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \
387 - mosquitto.conf || die
388 - fi
389 -
390 - # Remove prestripping
391 - sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\
392 - client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die
393 -
394 - # Remove failing tests
395 - sed -i \
396 - -e '/01-connect-575314.py/d' \
397 - test/broker/Makefile || die
398 - sed -i \
399 - -e '/02-subscribe-qos1-async2.test/d' \
400 - test/lib/Makefile || die
401 -
402 - # Extend test timeout to prevent spurious failures
403 - sed -i -e 's/SUB_TIMEOUT=1/SUB_TIMEOUT=3/' \
404 - test/client/test.sh || die
405 -
406 - python_setup
407 - python_fix_shebang test
408 -}
409 -
410 -src_compile() {
411 - _emake
412 -}
413 -
414 -src_test() {
415 - _emake test
416 -}
417 -
418 -src_install() {
419 - _emake DESTDIR="${D}" prefix=/usr install
420 - keepdir /var/lib/mosquitto
421 - fowners mosquitto:mosquitto /var/lib/mosquitto
422 - dodoc README.md CONTRIBUTING.md ChangeLog.txt
423 - doinitd "${FILESDIR}"/mosquitto
424 - insinto /etc/mosquitto
425 - doins mosquitto.conf
426 - insinto /usr/share/mosquitto
427 - doins misc/letsencrypt/mosquitto-copy.sh
428 - systemd_dounit "${FILESDIR}/mosquitto.service"
429 -
430 - if use examples; then
431 - docompress -x "/usr/share/doc/${PF}/examples"
432 - dodoc -r examples
433 - fi
434 -}
435 -
436 -pkg_postinst() {
437 - for v in ${REPLACING_VERSIONS}; do
438 - if [[ $(ver_cut 1 "$v") -lt 2 ]]; then
439 - elog
440 - elog "Please read the migration guide at:"
441 - elog "https://mosquitto.org/documentation/migrating-to-2-0/"
442 - elog
443 - elog "If you use Lets Encrypt TLS certificates, take note of"
444 - elog "the changes required to run the daemon as the unprivileged"
445 - elog "mosquitto user. The mosquitto-copy.sh script has been"
446 - elog "installed to /usr/share/mosquitto/ for your convenience."
447 - elog
448 - fi
449 - done
450 -}