diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-09-02 01:46:24 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-09-02 01:46:24 +0200 |
commit | 142b8c81401d06b50b7a238d518651e710f28c31 (patch) | |
tree | 4d9e7de4fb0fd4e791b6faab0d319f3c76af4450 /app-misc/mosquitto | |
parent | app-admin/fleet: Version bump to 0.11.8 (diff) | |
download | gentoo-142b8c81401d06b50b7a238d518651e710f28c31.tar.gz gentoo-142b8c81401d06b50b7a238d518651e710f28c31.tar.bz2 gentoo-142b8c81401d06b50b7a238d518651e710f28c31.zip |
app-misc/mosquitto: Version bump to 1.4.10
Proxy commit for Neil Bothwick
Gentoo-Bug: #592622
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-misc/mosquitto')
-rw-r--r-- | app-misc/mosquitto/Manifest | 1 | ||||
-rw-r--r-- | app-misc/mosquitto/mosquitto-1.4.10.ebuild | 97 |
2 files changed, 98 insertions, 0 deletions
diff --git a/app-misc/mosquitto/Manifest b/app-misc/mosquitto/Manifest index 5d27f28049fa..c35f8f52143b 100644 --- a/app-misc/mosquitto/Manifest +++ b/app-misc/mosquitto/Manifest @@ -1,2 +1,3 @@ +DIST mosquitto-1.4.10.tar.gz 359569 SHA256 437648d68a4a781dd8d913814cd5451f59ab4a5fcf84cccaf7c36e6a07459770 SHA512 fe5d6d7196a137a496ba6881c77d852396baefb4f0b83ccd9a22175fc05b09e48a09ea249e30ec7db966e11de134ebcc4e2e9b1fd40b31dc59fb0fa2f60b75a1 WHIRLPOOL 9510060701259e78c39bf88989ce8142d11e0b53348a20c1a71ffc69b98d7c1725c9315026d392d8d86d131bc55c86492a91ddde94eca0d353f1d3ab6ef6900f DIST mosquitto-1.4.8.tar.gz 326120 SHA256 d96eb5610e57cc3e273f4527d3f54358ab7711459941a9e64bc4d0a85c2acfda SHA512 4bad8683e98ec858468c53f85f53b42a4166667cebf665d11d3dabe604711f5031da007c8f6d6cb49b8bc91b87eb452bc1f8bfa6adf2d439d2223180b316f9bc WHIRLPOOL b2931c55f3e70316cb57ae180f361c1dedf67e86fec9f235aa3b817884e6af13b8b9b8dc83e375a877d85b1d423ea586ee0698b08af88873a1131d58b4ed402a DIST mosquitto-1.4.9.tar.gz 325712 SHA256 1df3ae07de40b80a74cd37a7b026895c544cdd3b42c9e0719ae91623aa98c58b SHA512 5994159d9a8da248a877f3032f36ca9a865d9b4efaafac329620864049992a77d414e02252cbbfef89ea2c37dc761b1885a89e19fc8e82b2a42d38f31e761d4d WHIRLPOOL c03a2c8254dce35bb56c243b17ab255e6d4f8210e73d6855d3abff5d3dcf976ca303082d902616ca4b6bf4ea9b2fcc69e52d3ccde7feac41d3ccf5809b157fed diff --git a/app-misc/mosquitto/mosquitto-1.4.10.ebuild b/app-misc/mosquitto/mosquitto-1.4.10.ebuild new file mode 100644 index 000000000000..15d5dd846825 --- /dev/null +++ b/app-misc/mosquitto/mosquitto-1.4.10.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit eutils systemd user python-any-r1 + +DESCRIPTION="An Open Source MQTT v3 Broker" +HOMEPAGE="http://mosquitto.org/" +SRC_URI="http://mosquitto.org/files/source/${P}.tar.gz" +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bridge examples +persistence +srv ssl tcpd" + +RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) + ssl? ( dev-libs/openssl:0= )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + srv? ( net-dns/c-ares )" + +LIBDIR=$(get_libdir) +QA_PRESTRIPPED="/usr/sbin/mosquitto + /usr/bin/mosquitto_passwd + /usr/bin/mosquitto_sub + /usr/bin/mosquitto_pub + /usr/${LIBDIR}/libmosquittopp.so.1 + /usr/${LIBDIR}/libmosquitto.so.1" + +pkg_setup() { + enewgroup mosquitto + enewuser mosquitto -1 -1 -1 mosquitto +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.4.9-conditional-tests.patch" + if use persistence; then + sed -i -e "s:^#autosave_interval:autosave_interval:" \ + -e "s:^#persistence false$:persistence true:" \ + -e "s:^#persistence_file:persistence_file:" \ + -e "s:^#persistence_location$:persistence_location /var/lib/mosquitto/:" \ + mosquitto.conf || die + fi + python_setup + python_fix_shebang test +} + +src_configure() { + makeopts=( + "LIB_SUFFIX=${LIBDIR:3}" + "WITH_BRIDGE=$(usex bridge)" + "WITH_PERSISTENCE=$(usex persistence)" + "WITH_SRV=$(usex srv)" + "WITH_TLS=$(usex ssl)" + "WITH_WRAP=$(usex tcpd)" + ) + einfo "${makeopts[@]}" +} + +src_compile() { + emake "${makeopts[@]}" +} + +src_test() { + emake "${makeopts[@]}" test +} + +src_install() { + emake "${makeopts[@]}" DESTDIR="${D}" prefix=/usr install + keepdir /var/lib/mosquitto + fowners mosquitto:mosquitto /var/lib/mosquitto + dodoc readme.md CONTRIBUTING.md ChangeLog.txt + doinitd "${FILESDIR}"/mosquitto + insinto /etc/mosquitto + doins mosquitto.conf + systemd_dounit "${FILESDIR}/mosquitto.service" + + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + insinto "/usr/share/doc/${PF}/examples" + doins -r examples/* + fi +} + +pkg_postinst() { + elog "" + elog "The Python module has been moved out of mosquitto." + elog "See http://mosquitto.org/documentation/python/" + elog "" + elog "To start the mosquitto daemon at boot, add it to the default runlevel with:" + elog "" + elog " rc-update add mosquitto default" + elog " or" + elog " systemctl enable mosquitto" +} |