1 |
commit: 2e2f8a2964df8be140e80249385aeed626c1de1b |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 20 14:30:17 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 20 14:30:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e2f8a29 |
7 |
|
8 |
app-misc/mosquitto: Version bump to 1.4.14 |
9 |
|
10 |
Gentoo-Bug: 625290 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
12 |
|
13 |
app-misc/mosquitto/Manifest | 1 + |
14 |
app-misc/mosquitto/mosquitto-1.4.14.ebuild | 96 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 97 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest |
18 |
index 97732b6a437..13a5ecee843 100644 |
19 |
--- a/app-misc/mosquitto/Manifest |
20 |
+++ b/app-misc/mosquitto/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST mosquitto-1.4.10.tar.gz 359569 SHA256 437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770 SHA512 fe5d6d7196a137a496ba6881c77d852396baefb4f0b83ccd9a22175fc05b09e48a09ea249e30ec7db966e11de134ebcc4e2e9b1fd40b31dc59fb0fa2f60b75a1 WHIRLPOOL 9510060701259e78c39bf88989ce8142d11e0b53348a20c1a71ffc69b98d7c1725c9315026d392d8d86d131bc55c86492a91ddde94eca0d353f1d3ab6ef6900f |
23 |
DIST mosquitto-1.4.11.tar.gz 361468 SHA256 ca47533bbc1b7c5e15d6e5d96d3efc59677f2515b6692263c34b7c48f33280c5 SHA512 c05ca8679b9a6f540868f4ccf701257fcabc114d5450ac0bbbe80b91bb7cd4fc52668773e945506760c7a5bd8a494e0a56100714112e5d2713d57bfab8951587 WHIRLPOOL d4418b951ff55eaba1fc67b324f1ecdd0d55c0eea066be9793de30e8561d0fe0e36537adb688fc98764758998086eb64b827041e76160ddc858c6066f83e8f21 |
24 |
+DIST mosquitto-1.4.14.tar.gz 365596 SHA256 156b1fa731d12baad4b8b22f7b6a8af50ba881fc711b81e9919ec103cf2942d1 SHA512 dc75a971354f87deeb79f32435acfae9bc561a1a24a75ee4940a35176ff91758071930d2105d8dee2a090e07527dbfaa5692bece67e03cc87e8b4b8b46f846c2 WHIRLPOOL 428494b277869d6d8d100663f1fd8f14e21028d0b2f802da634a2f033a9df4383246d6ad0802b27b41dfad7a50d3120830018dd7592888b468976798b8a2f0bf |
25 |
|
26 |
diff --git a/app-misc/mosquitto/mosquitto-1.4.14.ebuild b/app-misc/mosquitto/mosquitto-1.4.14.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3f4677c38d1 |
29 |
--- /dev/null |
30 |
+++ b/app-misc/mosquitto/mosquitto-1.4.14.ebuild |
31 |
@@ -0,0 +1,96 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=5 |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+inherit eutils systemd user toolchain-funcs python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="An Open Source MQTT v3 Broker" |
41 |
+HOMEPAGE="http://mosquitto.org/" |
42 |
+SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz" |
43 |
+LICENSE="EPL-1.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86 ~arm" |
46 |
+IUSE="bridge examples +persistence +srv ssl tcpd websockets" |
47 |
+ |
48 |
+RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
49 |
+ ssl? ( dev-libs/openssl:0= )" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ ${PYTHON_DEPS} |
52 |
+ srv? ( net-dns/c-ares ) |
53 |
+ websockets? ( net-libs/libwebsockets )" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ enewgroup mosquitto |
57 |
+ enewuser mosquitto -1 -1 -1 mosquitto |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ epatch "${FILESDIR}/${PN}-1.4.10-conditional-tests.patch" |
62 |
+ if use persistence; then |
63 |
+ sed -i -e "s:^#autosave_interval:autosave_interval:" \ |
64 |
+ -e "s:^#persistence false$:persistence true:" \ |
65 |
+ -e "s:^#persistence_file:persistence_file:" \ |
66 |
+ -e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \ |
67 |
+ mosquitto.conf || die |
68 |
+ fi |
69 |
+ |
70 |
+ # Remove prestripping |
71 |
+ sed -i -e 's/-s --strip-program=${CROSS_COMPILE}${STRIP}//'\ |
72 |
+ client/Makefile lib/cpp/Makefile src/Makefile lib/Makefile || die |
73 |
+ |
74 |
+ python_setup |
75 |
+ python_fix_shebang test |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ LIBDIR=$(get_libdir) |
80 |
+ makeopts=( |
81 |
+ "CC=$(tc-getCC)" |
82 |
+ "LIB_SUFFIX=${LIBDIR:3}" |
83 |
+ "WITH_BRIDGE=$(usex bridge)" |
84 |
+ "WITH_PERSISTENCE=$(usex persistence)" |
85 |
+ "WITH_SRV=$(usex srv)" |
86 |
+ "WITH_TLS=$(usex ssl)" |
87 |
+ "WITH_WEBSOCKETS=$(usex websockets)" |
88 |
+ "WITH_WRAP=$(usex tcpd)" |
89 |
+ ) |
90 |
+} |
91 |
+ |
92 |
+src_compile() { |
93 |
+ emake "${makeopts[@]}" |
94 |
+} |
95 |
+ |
96 |
+src_test() { |
97 |
+ emake "${makeopts[@]}" test |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install |
102 |
+ keepdir /var/lib/mosquitto |
103 |
+ fowners mosquitto:mosquitto /var/lib/mosquitto |
104 |
+ dodoc readme.md CONTRIBUTING.md ChangeLog.txt |
105 |
+ doinitd "${FILESDIR}"/mosquitto |
106 |
+ insinto /etc/mosquitto |
107 |
+ doins mosquitto.conf |
108 |
+ systemd_dounit "${FILESDIR}/mosquitto.service" |
109 |
+ |
110 |
+ if use examples; then |
111 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
112 |
+ insinto "/usr/share/doc/${PF}/examples" |
113 |
+ doins -r examples/* |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ elog "" |
119 |
+ elog "The Python module has been moved out of mosquitto." |
120 |
+ elog "See http://mosquitto.org/documentation/python/" |
121 |
+ elog "" |
122 |
+ elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" |
123 |
+ elog "" |
124 |
+ elog " rc-update add mosquitto default" |
125 |
+ elog " or" |
126 |
+ elog " systemctl enable mosquitto" |
127 |
+} |