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/
Date: Mon, 24 Jan 2022 05:55:58
Message-Id: 1643003746.8555f7eccea8abff59332749e61a263409642780.mattst88@gentoo
1 commit: 8555f7eccea8abff59332749e61a263409642780
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 24 05:51:45 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 24 05:55:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8555f7ec
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 | 1 -
13 app-misc/mosquitto/mosquitto-2.0.12.ebuild | 122 -----------------------------
14 2 files changed, 123 deletions(-)
15
16 diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest
17 index 7995fc2866db..c5a5d28f4bef 100644
18 --- a/app-misc/mosquitto/Manifest
19 +++ b/app-misc/mosquitto/Manifest
20 @@ -1,2 +1 @@
21 -DIST mosquitto-2.0.12.tar.gz 783859 BLAKE2B 3bac953fc7f49e19f1914186044c75d7f8b5b23e656acfb7d4c306740d0add20c08760fc206fc871c5cecf8500eb1c88acc4905bddce159d1e8f0c4e2c28b818 SHA512 acf80980f124073fd2fdd99981bde840654fb40a6b6f1d6ef483e35880b45d029cfa9390a98753de6476f4ade068266cb4c6e3c753a0362c0309a5745ac4ebab
22 DIST mosquitto-2.0.14.tar.gz 787414 BLAKE2B 926e39756a0293404c8591e489e64e47cd95640d7884f2cfb687a0d548b709d8aff6d671a4941aae8b3506315d28567520c183b762639822d2d78afe323d111e SHA512 a9e4f41b9af679b30318570e86a465546024651373df10e3b132f4593b89d22d0dbac01bb7371a57132ba030a2e73971c612acb5c9ac12f5ccd06aa38d9444c2
23
24 diff --git a/app-misc/mosquitto/mosquitto-2.0.12.ebuild b/app-misc/mosquitto/mosquitto-2.0.12.ebuild
25 deleted file mode 100644
26 index 48ab5d740aff..000000000000
27 --- a/app-misc/mosquitto/mosquitto-2.0.12.ebuild
28 +++ /dev/null
29 @@ -1,122 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -PYTHON_COMPAT=( python3_{8..10} )
35 -
36 -inherit python-any-r1 systemd toolchain-funcs
37 -
38 -DESCRIPTION="An Open Source MQTT v3 Broker"
39 -HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto"
40 -SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz"
41 -
42 -LICENSE="EPL-1.0"
43 -SLOT="0"
44 -KEYWORDS="amd64 arm ~arm64 x86"
45 -IUSE="bridge examples +persistence +srv ssl tcpd test websockets"
46 -RESTRICT="!test? ( test )"
47 -
48 -REQUIRED_USE="test? ( bridge )"
49 -
50 -RDEPEND="
51 - acct-user/mosquitto
52 - acct-group/mosquitto
53 - dev-libs/cJSON:=
54 - srv? ( net-dns/c-ares:= )
55 - ssl? (
56 - dev-libs/openssl:0=
57 - )
58 - tcpd? ( sys-apps/tcp-wrappers )"
59 -
60 -DEPEND="${PYTHON_DEPS}
61 - ${RDEPEND}
62 - test? ( dev-util/cunit )
63 - websockets? ( net-libs/libwebsockets[lejp] )"
64 -
65 -_emake() {
66 - local LIBDIR=$(get_libdir)
67 - emake \
68 - CC="$(tc-getCC)" \
69 - CXX="$(tc-getCXX)" \
70 - CLIENT_LDFLAGS="${LDFLAGS}" \
71 - LIB_SUFFIX="${LIBDIR:3}" \
72 - WITH_BRIDGE="$(usex bridge)" \
73 - WITH_PERSISTENCE="$(usex persistence)" \
74 - WITH_SRV="$(usex srv)" \
75 - WITH_TLS="$(usex ssl)" \
76 - WITH_WEBSOCKETS="$(usex websockets)" \
77 - WITH_WRAP="$(usex tcpd)" \
78 - "$@"
79 -}
80 -
81 -src_prepare() {
82 - default
83 - if use persistence; then
84 - sed -i -e "/^#autosave_interval/s|^#||" \
85 - -e "s|^#persistence false$|persistence true|" \
86 - -e "/^#persistence_file/s|^#||" \
87 - -e "s|#persistence_location|persistence_location /var/lib/mosquitto/|" \
88 - mosquitto.conf || die
89 - fi
90 -
91 - # Remove prestripping
92 - sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\
93 - client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die
94 -
95 - # Remove failing tests
96 - sed -i \
97 - -e '/01-connect-575314.py/d' \
98 - test/broker/Makefile || die
99 - sed -i \
100 - -e '/02-subscribe-qos1-async2.test/d' \
101 - test/lib/Makefile || die
102 -
103 - # Extend test timeout to prevent spurious failures
104 - sed -i -e 's/SUB_TIMEOUT=1/SUB_TIMEOUT=3/' \
105 - test/client/test.sh || die
106 -
107 - python_setup
108 - python_fix_shebang test
109 -}
110 -
111 -src_compile() {
112 - _emake
113 -}
114 -
115 -src_test() {
116 - _emake test
117 -}
118 -
119 -src_install() {
120 - _emake DESTDIR="${D}" prefix=/usr install
121 - keepdir /var/lib/mosquitto
122 - fowners mosquitto:mosquitto /var/lib/mosquitto
123 - dodoc README.md CONTRIBUTING.md ChangeLog.txt
124 - doinitd "${FILESDIR}"/mosquitto
125 - insinto /etc/mosquitto
126 - doins mosquitto.conf
127 - insinto /usr/share/mosquitto
128 - doins misc/letsencrypt/mosquitto-copy.sh
129 - systemd_dounit "${FILESDIR}/mosquitto.service"
130 -
131 - if use examples; then
132 - docompress -x "/usr/share/doc/${PF}/examples"
133 - dodoc -r examples
134 - fi
135 -}
136 -
137 -pkg_postinst() {
138 - for v in ${REPLACING_VERSIONS}; do
139 - if [[ $(ver_cut 1 "$v") -lt 2 ]]; then
140 - elog
141 - elog "Please read the migration guide at:"
142 - elog "https://mosquitto.org/documentation/migrating-to-2-0/"
143 - elog
144 - elog "If you use Lets Encrypt TLS certificates, take note of"
145 - elog "the changes required to run the daemon as the unprivileged"
146 - elog "mosquitto user. The mosquitto-copy.sh script has been"
147 - elog "installed to /usr/share/mosquitto/ for your convenience."
148 - elog
149 - fi
150 - done
151 -}