1 |
commit: aa4abe9c6239fc1cd82c0036692be3ababeb3423 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 10 00:21:11 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 10 01:19:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa4abe9c |
7 |
|
8 |
app-misc/mosquitto: Version bump to 2.0.12 |
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 | 121 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 122 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest |
17 |
index c809b1ab6bf..5daa9507d7f 100644 |
18 |
--- a/app-misc/mosquitto/Manifest |
19 |
+++ b/app-misc/mosquitto/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST mosquitto-1.6.15.tar.gz 620117 BLAKE2B 0107ed0af902b84c73b857ccd97dfe96b1c7ed8604b843ad40f62d3f1246ded4ef1691158311ac9a672ca331f569d13547165f3a0386c77e94ddc13c8a9e3e00 SHA512 30fa2e8a15b87a33d6c8fc3a1f5d45d8e15d284fade116ac5b7bc8722609d565bed22ac592c303fc74352e3272067b2b0c8da463abffc6490cf959ce177329f3 |
22 |
DIST mosquitto-2.0.11.tar.gz 760325 BLAKE2B adde701bb87ec8071eaaf74fca37f81c4eae97bf98de0fe471f1dfbfb64ccda15b34611b0ffc3d2099a37994151363ad5c717bfa7695fabc1a4927ebd14ae66e SHA512 d0c7c52cb76c4711e54f841217529326d682c4decfc7a1bc96d872904e68df444ca3918fab7ba041b62f7b5420c89c631227b69a8eec51fd2e2dd480d8244710 |
23 |
+DIST mosquitto-2.0.12.tar.gz 783859 BLAKE2B 3bac953fc7f49e19f1914186044c75d7f8b5b23e656acfb7d4c306740d0add20c08760fc206fc871c5cecf8500eb1c88acc4905bddce159d1e8f0c4e2c28b818 SHA512 acf80980f124073fd2fdd99981bde840654fb40a6b6f1d6ef483e35880b45d029cfa9390a98753de6476f4ade068266cb4c6e3c753a0362c0309a5745ac4ebab |
24 |
|
25 |
diff --git a/app-misc/mosquitto/mosquitto-2.0.12.ebuild b/app-misc/mosquitto/mosquitto-2.0.12.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ca44457030a |
28 |
--- /dev/null |
29 |
+++ b/app-misc/mosquitto/mosquitto-2.0.12.ebuild |
30 |
@@ -0,0 +1,121 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+ |
37 |
+inherit python-any-r1 systemd toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="An Open Source MQTT v3 Broker" |
40 |
+HOMEPAGE="https://mosquitto.org/ https://github.com/eclipse/mosquitto" |
41 |
+SRC_URI="https://mosquitto.org/files/source/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="EPL-1.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
46 |
+IUSE="bridge examples +persistence +srv ssl tcpd test websockets" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+REQUIRED_USE="test? ( bridge )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ acct-user/mosquitto |
53 |
+ acct-group/mosquitto |
54 |
+ dev-libs/cJSON:= |
55 |
+ srv? ( net-dns/c-ares:= ) |
56 |
+ ssl? ( |
57 |
+ dev-libs/openssl:0= |
58 |
+ ) |
59 |
+ tcpd? ( sys-apps/tcp-wrappers )" |
60 |
+ |
61 |
+DEPEND="${PYTHON_DEPS} |
62 |
+ ${RDEPEND} |
63 |
+ test? ( dev-util/cunit ) |
64 |
+ websockets? ( net-libs/libwebsockets[lejp] )" |
65 |
+ |
66 |
+_emake() { |
67 |
+ local LIBDIR=$(get_libdir) |
68 |
+ emake \ |
69 |
+ CC="$(tc-getCC)" \ |
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 |
+} |