commit:     dcb4efdf62c8c28e6d2ce66389ac287f326690ff
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 27 18:32:02 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jan 27 18:35:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb4efdf

app-metrics/fritzbox_smarthome_exporter: add 0.4.3

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-metrics/fritzbox_smarthome_exporter/Manifest   |  2 ++
 .../fritzbox_smarthome_exporter-0.4.3.ebuild       | 42 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/app-metrics/fritzbox_smarthome_exporter/Manifest 
b/app-metrics/fritzbox_smarthome_exporter/Manifest
index 42013366b123..e0b139c11910 100644
--- a/app-metrics/fritzbox_smarthome_exporter/Manifest
+++ b/app-metrics/fritzbox_smarthome_exporter/Manifest
@@ -1,2 +1,4 @@
 DIST fritzbox_smarthome_exporter-0.0.8-deps.tar.xz 26911468 BLAKE2B 
9d00a6fd0b3a94b6e7e9f53ddb7dfc08e3e7a1956fc6c251d0772aed2e34bcfa20ac3d9e51e717eb35ed977b5d7d733f61dbd57b7b540e1ec0fa8609cd654804
 SHA512 
4ffe8439469afa0b6d40eea7614bfc5d93d95264e3c4632889dcd1301343e6034f94d8023cf8480ab6ea3128e97a7f122a3bbbc07f5e9ecd305afe8f681a8d34
 DIST fritzbox_smarthome_exporter-0.0.8.tar.gz 27272 BLAKE2B 
5ac04ffd9a80a453a73f1b5428b0afecd65e9d5166a9b6ed042d63bff64822f0e7652e12dac67146ce11e6a1c0949229c3520e172283420ed8f9cc4a9a978310
 SHA512 
21e2e269e1e65845cd0d767b5d50c26646e0fcdb3959f7c76aeb221c4becf40490d21dfb839aa0c60b8577c3f7839d4a12a8e92c26f6ae969a514f006e2b7ba5
+DIST fritzbox_smarthome_exporter-0.4.3-deps.tar.xz 4487704 BLAKE2B 
87c9ec8bba0768ec92efcdaa9ca8dd0aae723849d506e1c3c8b17c918f20d03f0fd27d25cbaed008ee3c0e09870caf692b96eeea0cf95df60512c810a9dff15e
 SHA512 
801582c74ed8ae25dca8cf24a333ac4281a1a77630ce973d339f66d062a91b22d29b3e061bd9283849382546c6b930eb5d3b7fa257d2aa451203d5913e6ed0aa
+DIST fritzbox_smarthome_exporter-0.4.3.tar.gz 35339 BLAKE2B 
4ce01b831c5e72687eb8704859d227b3ea04b18d2dd21b74d7b5d7b451d89f39c4a1105d9c1109005f4ac9c01cc6e4ccbd58544f0e443f30e11f0a8612651ed8
 SHA512 
ab674b48ccfa32ecf9ef45674a612a0e3052bfc614ae40865158b9c32cc6c4714858edcdfe063ec91a8ea5a8a8f993f1b52a90764d07b9f52d18154efd04a5bd

diff --git 
a/app-metrics/fritzbox_smarthome_exporter/fritzbox_smarthome_exporter-0.4.3.ebuild
 
b/app-metrics/fritzbox_smarthome_exporter/fritzbox_smarthome_exporter-0.4.3.ebuild
new file mode 100644
index 000000000000..4a66f10f62ff
--- /dev/null
+++ 
b/app-metrics/fritzbox_smarthome_exporter/fritzbox_smarthome_exporter-0.4.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Prometheus exporter for FRITZ!Box Smart Home"
+HOMEPAGE="https://github.com/jayme-github/fritzbox_smarthome_exporter";
+SRC_URI="https://github.com/jayme-github/fritzbox_smarthome_exporter/archive/v${PV}.tar.gz
 -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+
+LICENSE="Apache-2.0 BSD GPL-3 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="acct-group/fritzbox_smarthome_exporter
+       acct-user/fritzbox_smarthome_exporter"
+
+RDEPEND="${DEPEND}"
+
+src_compile() {
+       ego build -v -o bin/${PN}
+}
+
+src_test() {
+       ego test -v ./...
+}
+
+src_install() {
+       dobin bin/*
+       einstalldocs
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+       # restrict access because conf.d entry could contain
+       # FRITZ!Box credentials
+       fperms 0640 /etc/conf.d/${PN}
+       insinto /etc/logrotate.d/
+       newins "${FILESDIR}"/${PN}.logrotate ${PN}
+       keepdir /var/log/${PN}
+       fowners ${PN}:${PN} /var/log/${PN}
+}

Reply via email to