Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mosquitto/
Date: Thu, 01 Sep 2016 23:47:06
Message-Id: 1472773584.142b8c81401d06b50b7a238d518651e710f28c31.mrueg@gentoo
1 commit: 142b8c81401d06b50b7a238d518651e710f28c31
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 23:46:24 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 23:46:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=142b8c81
7
8 app-misc/mosquitto: Version bump to 1.4.10
9
10 Proxy commit for Neil Bothwick
11
12 Gentoo-Bug: #592622
13
14 Package-Manager: portage-2.3.0
15
16 app-misc/mosquitto/Manifest | 1 +
17 app-misc/mosquitto/mosquitto-1.4.10.ebuild | 97 ++++++++++++++++++++++++++++++
18 2 files changed, 98 insertions(+)
19
20 diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest
21 index 5d27f28..c35f8f5 100644
22 --- a/app-misc/mosquitto/Manifest
23 +++ b/app-misc/mosquitto/Manifest
24 @@ -1,2 +1,3 @@
25 +DIST mosquitto-1.4.10.tar.gz 359569 SHA256 437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770 SHA512 fe5d6d7196a137a496ba6881c77d852396baefb4f0b83ccd9a22175fc05b09e48a09ea249e30ec7db966e11de134ebcc4e2e9b1fd40b31dc59fb0fa2f60b75a1 WHIRLPOOL 9510060701259e78c39bf88989ce8142d11e0b53348a20c1a71ffc69b98d7c1725c9315026d392d8d86d131bc55c86492a91ddde94eca0d353f1d3ab6ef6900f
26 DIST mosquitto-1.4.8.tar.gz 326120 SHA256 d96eb5610e57cc3e273f4527d3f54358ab7711459941a9e64bc4d0a85c2acfda SHA512 4bad8683e98ec858468c53f85f53b42a4166667cebf665d11d3dabe604711f5031da007c8f6d6cb49b8bc91b87eb452bc1f8bfa6adf2d439d2223180b316f9bc WHIRLPOOL b2931c55f3e70316cb57ae180f361c1dedf67e86fec9f235aa3b817884e6af13b8b9b8dc83e375a877d85b1d423ea586ee0698b08af88873a1131d58b4ed402a
27 DIST mosquitto-1.4.9.tar.gz 325712 SHA256 1df3ae07de40b80a74cd37a7b026895c544cdd3b42c9e0719ae91623aa98c58b SHA512 5994159d9a8da248a877f3032f36ca9a865d9b4efaafac329620864049992a77d414e02252cbbfef89ea2c37dc761b1885a89e19fc8e82b2a42d38f31e761d4d WHIRLPOOL c03a2c8254dce35bb56c243b17ab255e6d4f8210e73d6855d3abff5d3dcf976ca303082d902616ca4b6bf4ea9b2fcc69e52d3ccde7feac41d3ccf5809b157fed
28
29 diff --git a/app-misc/mosquitto/mosquitto-1.4.10.ebuild b/app-misc/mosquitto/mosquitto-1.4.10.ebuild
30 new file mode 100644
31 index 00000000..15d5dd8
32 --- /dev/null
33 +++ b/app-misc/mosquitto/mosquitto-1.4.10.ebuild
34 @@ -0,0 +1,97 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +PYTHON_COMPAT=( python2_7 )
41 +
42 +inherit eutils systemd user python-any-r1
43 +
44 +DESCRIPTION="An Open Source MQTT v3 Broker"
45 +HOMEPAGE="http://mosquitto.org/"
46 +SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz"
47 +LICENSE="EPL-1.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="bridge examples +persistence +srv ssl tcpd"
51 +
52 +RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
53 + ssl? ( dev-libs/openssl:0= )"
54 +DEPEND="${RDEPEND}
55 + ${PYTHON_DEPS}
56 + srv? ( net-dns/c-ares )"
57 +
58 +LIBDIR=$(get_libdir)
59 +QA_PRESTRIPPED="/usr/sbin/mosquitto
60 + /usr/bin/mosquitto_passwd
61 + /usr/bin/mosquitto_sub
62 + /usr/bin/mosquitto_pub
63 + /usr/${LIBDIR}/libmosquittopp.so.1
64 + /usr/${LIBDIR}/libmosquitto.so.1"
65 +
66 +pkg_setup() {
67 + enewgroup mosquitto
68 + enewuser mosquitto -1 -1 -1 mosquitto
69 +}
70 +
71 +src_prepare() {
72 + epatch "${FILESDIR}/${PN}-1.4.9-conditional-tests.patch"
73 + if use persistence; then
74 + sed -i -e "s:^#autosave_interval:autosave_interval:" \
75 + -e "s:^#persistence false$:persistence true:" \
76 + -e "s:^#persistence_file:persistence_file:" \
77 + -e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \
78 + mosquitto.conf || die
79 + fi
80 + python_setup
81 + python_fix_shebang test
82 +}
83 +
84 +src_configure() {
85 + makeopts=(
86 + "LIB_SUFFIX=${LIBDIR:3}"
87 + "WITH_BRIDGE=$(usex bridge)"
88 + "WITH_PERSISTENCE=$(usex persistence)"
89 + "WITH_SRV=$(usex srv)"
90 + "WITH_TLS=$(usex ssl)"
91 + "WITH_WRAP=$(usex tcpd)"
92 + )
93 + einfo "${makeopts[@]}"
94 +}
95 +
96 +src_compile() {
97 + emake "${makeopts[@]}"
98 +}
99 +
100 +src_test() {
101 + emake "${makeopts[@]}" test
102 +}
103 +
104 +src_install() {
105 + emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install
106 + keepdir /var/lib/mosquitto
107 + fowners mosquitto:mosquitto /var/lib/mosquitto
108 + dodoc readme.md CONTRIBUTING.md ChangeLog.txt
109 + doinitd "${FILESDIR}"/mosquitto
110 + insinto /etc/mosquitto
111 + doins mosquitto.conf
112 + systemd_dounit "${FILESDIR}/mosquitto.service"
113 +
114 + if use examples; then
115 + docompress -x "/usr/share/doc/${PF}/examples"
116 + insinto "/usr/share/doc/${PF}/examples"
117 + doins -r examples/*
118 + fi
119 +}
120 +
121 +pkg_postinst() {
122 + elog ""
123 + elog "The Python module has been moved out of mosquitto."
124 + elog "See http://mosquitto.org/documentation/python/"
125 + elog ""
126 + elog "To start the mosquitto daemon at boot, add it to the default runlevel with:"
127 + elog ""
128 + elog " rc-update add mosquitto default"
129 + elog " or"
130 + elog " systemctl enable mosquitto"
131 +}