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