From ccaccfe4f1da8c11d9fa110f6e4eb847358769d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jun 2024 00:10:02 +0100 Subject: gentoo auto-resync : 18:06:2024 - 00:10:02 --- sys-cluster/gmqtt/Manifest | 3 +++ sys-cluster/gmqtt/gmqtt-0.5.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 sys-cluster/gmqtt/gmqtt-0.5.0.ebuild (limited to 'sys-cluster/gmqtt') diff --git a/sys-cluster/gmqtt/Manifest b/sys-cluster/gmqtt/Manifest index b5e78428b16a..82203ef6218a 100644 --- a/sys-cluster/gmqtt/Manifest +++ b/sys-cluster/gmqtt/Manifest @@ -4,5 +4,8 @@ AUX initd 725 BLAKE2B b9f36dd63354d68b35f58633b7ce2501b31f5c4ecc4f18972c30ca35bc AUX logrotated 39 BLAKE2B e24efefdbb2e8352620a88e7f3beebd3aa2dc810f245971ac83b251a87b75987fe88d0029617c6226c886100788f091ccc13c515f0c04c676548eb71686f4847 SHA512 88a77ef365efb5680e7ea470b75d1784fbc916417069c68e8a4d566075a8050df38de7ea8e86d60246110ca7b2da1b8ec871536ee67574bc60a4557ac77ebcb5 DIST gmqtt-0.4.1-deps.tar.xz 50641100 BLAKE2B e2df0588178f3cee0f96a15c867352d9718deb9ed1b8acb0b0a26bf512308c40797275deee04be3f35d8725018b522aa807638ed17f300c337a062012fddc16d SHA512 6c77dcb5bc6c029296ac8715a5796f20091273e5b322fedbe952086cb81e5abf5d5fbe5b0005f22d674565dff1d3b9dbaf84812ec22203ef1b6ccd629405115d DIST gmqtt-0.4.1.tar.gz 338368 BLAKE2B 4114816d4e60f6421fcea2cb33006f416143040bc85eb97630fcbd588c9fb2e11cd0d1f9e6e56f8ad8461653a5d7772971e4978a3dfca357335309b7c9e138ed SHA512 cad45a7d3d9033d9d345c72bd0568c4e6115964d980ed02451da3fb6fe7fb92785ccc39b7777f1632c81242b269f5e61caba18255315e12f49d5debcfc1c105a +DIST gmqtt-0.5.0-deps.tar.xz 2274132 BLAKE2B c4eef28fbcf743128e9fee3f62106405343d8a6daeb018f168a16ee67f0028669a04d457ac6127e7528248c69ff38a5f469bbd242f3ce39178f8a44994706649 SHA512 d3f6036652d7185306f629db5660245bdb0d4e0f2bfa64ccf4e306bc725cfb2d3757097c32f495595b21ea8750ab7f0907b93b38c8512811e037f65fc38af852 +DIST gmqtt-0.5.0.tar.gz 256487 BLAKE2B ce1d032cf13806381c2c0d42aec5592c74b86e938d284252fd01bd23f7eb8b0c0e9b59558be5284b780edd778035c9755a0d6c6da30ccd851c8b3a06f6c49289 SHA512 8c696a54386282b51ce6a835fba787f465f862afd5f553fc0039b8e01a6a03660a4103deed346c683e4b0fe98fd3ac4105a3602f28f416f5c544dc6ee960645a EBUILD gmqtt-0.4.1.ebuild 1301 BLAKE2B 49993d5a899975f0473f26e9a9e8b6f51303bcb7319b75050d996e8c87eb8a5e78176a3a3f5ffa09e4586a06c705e398559fe1df08aba1c07490217b479b03f2 SHA512 2421ab085dd368751efdcb6c0a4a5b60950b0d11b2f399da76825824644f653dd3e2ee9d62e3d03e8663951565e72ebed1a350a88e587c4e119baa5dcdeb7425 +EBUILD gmqtt-0.5.0.ebuild 1315 BLAKE2B c91dbfd9cdc9a0751090272fcbd47b6c1b32c39e7a9a4531c66303a83345fcdd079023883cea4ed37e6aab3fd5c7c9481a025bb3df64b130d5d49ce4af20a686 SHA512 18dbc4bc5a2c4d8e71308ed106e0ad8a0a171ea5bc554869923d0e4afbecdfe5bd952ac75511bb166486e952b41d666bd91ff79a54711999cd043367b2dabcb4 MISC metadata.xml 324 BLAKE2B 6c767a9316e11b3f0ff0b169547f0a6293043fcf052d70b90a5c53e19cdc18ccb3de94fd47af221b932ce16c769d608901b78661fce959c8f2b4b79e5369d2f2 SHA512 2471a066a3cbdf146efe775c4191a39b57ecabdbfba8be65a3deba52c459b75798447f0aedbef448518471bc74b8e532e0c7acca1c8bdc743d0064f9e8aaf552 diff --git a/sys-cluster/gmqtt/gmqtt-0.5.0.ebuild b/sys-cluster/gmqtt/gmqtt-0.5.0.ebuild new file mode 100644 index 000000000000..b43ae3df0986 --- /dev/null +++ b/sys-cluster/gmqtt/gmqtt-0.5.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd + +DESCRIPTION="MQTT broker library with cluster support that implements MQTT V5.0 and V3.1.1" +HOMEPAGE="https://github.com/DrmagicE/gmqtt" +SRC_URI="https://github.com/DrmagicE/gmqtt/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD BSD-2 ISC MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +RESTRICT="test" + +src_compile() { + GOBIN=${S}/bin CGO_ENABLED=0 go install ./... || die +} + +src_install() { + dobin bin/{gmqctl,gmqttd} + keepdir /etc/${PN} + systemd_dounit "${FILESDIR}/${PN}d.service" + newinitd "${FILESDIR}/initd" "${PN}d" + newconfd "${FILESDIR}/confd" "${PN}d" + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotated" "${PN}" + docompress -x /usr/share/doc/${PF}/default_config.yml + dodoc CONTRIBUTING.md README*.md cmd/gmqttd/default_config.yml + docinto federation + dodoc -r plugin/federation/{examples,README.md} +} + +pkg_postinst() { + local config=/etc/gmqtt/gmqttd.yml dest=${ROOT}/ + if [[ ! ${REPLACING_VERSIONS} && ! -e ${ROOT}${config} ]]; then + einfo "Copying default config to ${config} for first install" + cp "${ROOT}/usr/share/doc/${PF}/default_config.yml" "${ROOT}${config}" + fi +} -- cgit v1.2.3