dev-python/json_exporter: Add 1.0.2

Signed-off-by: Zen <z@pyl.onl>
This commit is contained in:
Zen
2024-06-05 14:06:53 -05:00
parent e4a6ef7d9b
commit 58b478c99b
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST json_exporter-1.0.2.tar.gz 11721 BLAKE2B 16649e749a0611bc082b44e61e1cf32a5c7e627a5eeae8ff03c2d2d0f0f5ca86c9b1a193bb01939a23a131377131fa00cc6192642580a59353ea3acf8f3d1a48 SHA512 eb2eda756e82f9eb6b92b441c66f19dbc0001ea1a57b5748930bb3c7c2cb89b83161e629f9c78ff11b33f330f5db104079ebb6f47bc2d186754851296dfdd1e2

View File

@@ -0,0 +1,33 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..12} )
inherit distutils-r1
DESCRIPTION="Python-based library for exporting JSON data as metrics for Prometheus."
HOMEPAGE="https://github.com/desultory/json_exporter"
SRC_URI="https://github.com/desultory/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=dev-python/zenlib-2.1.2[${PYTHON_USEDEP}]
>=dev-python/prometheus_exporter-1.0.0[${PYTHON_USEDEP}]
"
src_install() {
# Install the package
distutils-r1_src_install
# Copy hid_ups_exporter.include to /etc/init.d
newinitd json_exporter.include json_exporter
# Create /var/log/json_exporter
keepdir /var/log/json_exporter
# Create /etc/json_exporter
keepdir /etc/json_exporter
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>dev@pyl.onl</email>
<name>Zen</name>
</maintainer>
<upstream>
<remote-id type="github">desultory/json_exporter</remote-id>
</upstream>
</pkgmetadata>