From ba28827dc9925ee983c73868de3236e56523b625 Mon Sep 17 00:00:00 2001 From: Federico Denkena Date: Thu, 1 Feb 2024 17:39:31 +0100 Subject: [PATCH] app-metrics/apache_exporter: new package, add 0.13.3 Signed-off-by: Federico Denkena --- app-metrics/apache_exporter/ChangeLog | 47 +++++++++++++++++++ app-metrics/apache_exporter/Manifest | 9 ++++ .../apache_exporter-0.13.3.ebuild | 36 ++++++++++++++ .../files/apache_exporter.confd | 2 + .../files/apache_exporter.initd | 23 +++++++++ .../files/apache_exporter.service | 10 ++++ .../files/sysconfig.apache_exporter | 1 + app-metrics/apache_exporter/metadata.xml | 11 +++++ 8 files changed, 139 insertions(+) create mode 100644 app-metrics/apache_exporter/ChangeLog create mode 100644 app-metrics/apache_exporter/Manifest create mode 100644 app-metrics/apache_exporter/apache_exporter-0.13.3.ebuild create mode 100644 app-metrics/apache_exporter/files/apache_exporter.confd create mode 100644 app-metrics/apache_exporter/files/apache_exporter.initd create mode 100644 app-metrics/apache_exporter/files/apache_exporter.service create mode 100644 app-metrics/apache_exporter/files/sysconfig.apache_exporter create mode 100644 app-metrics/apache_exporter/metadata.xml diff --git a/app-metrics/apache_exporter/ChangeLog b/app-metrics/apache_exporter/ChangeLog new file mode 100644 index 0000000..c221b19 --- /dev/null +++ b/app-metrics/apache_exporter/ChangeLog @@ -0,0 +1,47 @@ + 30 Apr 2022; Manuel Friedli + -apache_exporter-0.8.0-r1.ebuild: + app-metrics/apache_exporter: Prune old version. + + 30 Apr 2022; Manuel Friedli apache_exporter-0.11.0.ebuild: + app-metrics/apache_exporter: Fix build. + +*apache_exporter-0.11.0 (30 Apr 2022) + + 30 Apr 2022; Manuel Friedli + +apache_exporter-0.11.0.ebuild, -apache_exporter-0.10.1.ebuild: + app-metrics/apache_exporter: Add ebuild for 0.11.0 + +*apache_exporter-0.10.1 (12 Oct 2021) + + 12 Oct 2021; Manuel Friedli + +apache_exporter-0.10.1.ebuild: + app-metrics/apache_exporter: Bump version + +*apache_exporter-0.8.0-r1 (29 Sep 2020) + + 29 Sep 2020; Manuel Friedli + +apache_exporter-0.8.0-r1.ebuild, -apache_exporter-0.8.0.ebuild, + files/apache_exporter.service: + app-metrics/apache_exporter: Change location of sysconfig file + + 29 Sep 2020; Manuel Friedli -apache_exporter-0.7.0.ebuild: + app-metrics/apache_exporter: Purge old ebuild + +*apache_exporter-0.8.0 (29 Sep 2020) + + 29 Sep 2020; Manuel Friedli +apache_exporter-0.8.0.ebuild: + app-metrics/apache_exporter: Add ebuild for versin 0.8.0. This is conforming + to GLEP 81. + + 14 Nov 2019; apache_exporter-0.7.0.ebuild: + app-metrics/apache_exporter: Fix ebuild again. + + 14 Nov 2019; apache_exporter-0.7.0.ebuild: + app-metrics/apache_exporter: Fix ebuild for apache_exporter. + +*node_exporter-0.18.1 (10 Nov 2019) + + 10 Nov 2019; +files/node_exporter-0.18.1-systemd.patch, + +files/node_exporter-1.initd, +files/node_exporter.confd, +metadata.xml, + +node_exporter-0.18.1.ebuild: + app-metrics/node_exporter: Add systemd-patched ebuild fpr version 0.18.1. diff --git a/app-metrics/apache_exporter/Manifest b/app-metrics/apache_exporter/Manifest new file mode 100644 index 0000000..e0cbc94 --- /dev/null +++ b/app-metrics/apache_exporter/Manifest @@ -0,0 +1,9 @@ +AUX apache_exporter.confd 59 BLAKE2B 4466ae408352adc136fa882cf382c1562e8e0b6401edf8e5a8633d3736da20ecd3b2e10b0b2e6b2cbec30c74ea6aeac930863ff18568e2144544539306b79208 SHA512 eaf040d612155e8ed5359124283a591559b720170583a654a06d0b5e480cc9e99c1bcba97cffca03816f3c2b49d304e183f997067d325636ec71a33118a45df9 +AUX apache_exporter.initd 650 BLAKE2B 86d014a2bb4f98a54a5e98060884bb99d1ec4011ce028a981d9d39cc5a5292c39018a80df2a3f0ad4b97aa1a0da059e89ad151f0a0b3d13d6ba6386aa4a9d6d4 SHA512 42367bb35b79cb3c4946ae57e81fa918d94b9b5613469e1e070797ffc9ab7ae74aaa3ad244be35cef8fe5df043fb5e1a604449c3a416e01da7cb11ad95c2b5b1 +AUX apache_exporter.service 196 BLAKE2B b7429d240256bdbe594741900bd1715d7806f604d420b668c83ed2b4f66b32ba1ff142a54e04687182c0b24f43d58c6d74f5b319d69aaa4619d4b561a9567913 SHA512 a93847eb9407e94388a606972373a2e9c51ca46f16b8a87365d8544b680d1d0fbf47a6eb86865621375015a58c8b6480aeefa247f37c31fa0a84383a27a915f7 +AUX sysconfig.apache_exporter 11 BLAKE2B e83c8a1c6cf0d2269d032d80bfb5f37969adce8655298d49f942e19318e1fcabe7f618514ce65d9e0209959d5ccb38141e81fcccd65a754584eaf2db3b4fbd03 SHA512 f4d982f86de30c5b52b04c201cd38fffa87f860bef18af6ab85e856ae2081b919256b918b5f4821ee2fc4da0548d1a95c2522b29cddca57f694e2f26c1b1b2b9 +DIST apache_exporter-0.13.3-vendor.tar.xz 1311036 BLAKE2B d42c00dcb2617c2df730147f8711cea23bdfe231b4b27bca3962dc0c4396835bc520150758befc984e861f6d89e933c4a62990dd0b11fcd3119e73eb2c6b9b16 SHA512 09c221e21d49d3e9a3c4511b5122a36445ad877c34e3ce38e3600f98468588ccbaa185bd99fbc191e61a165c73306eb48d9ba4717bcccacc67defa4aaa45e97e +DIST apache_exporter-0.13.3.tar.gz 21352 BLAKE2B 159817b02e8721ab67745b586f9853ec2334ce43986cdfb42edfb372c8f7d873223918984aff5e01f4f2c998bdb743fe8ac28b463811a27fdf10a2bde5a04f3b SHA512 948190d1d97b13b1bbaba644941bbba960caea753806542211fbce33d783e5b53e01a02ab7de242965c83d336cb31b08556ee4a8caef5ff78607cc24601b7118 +EBUILD apache_exporter-0.13.3.ebuild 983 BLAKE2B 475ca32da293ac16e95c54fe25250a079eb839b27097f13881768e3a2e1623964221ec32b90bc26ae82d01f87f1234030515307b9b06e547221750034c403389 SHA512 875befb9bbc4e6b564fc06a56ca3b684c52595adf44f4014bd415c38e34807b84097bd15566de675d224ac654c0ba811efda447bc35dffcace3b12b99870635d +MISC ChangeLog 1784 BLAKE2B 711840e812185617076bb46a0932cf788ecb858410369aef3032da3e5a4a655f004d6f03fe2ea978d60e67bed11fc38632c2b794e9e344e14a85e6c5e8722886 SHA512 b95c61c77c453a542a101ae5aeb017b5801b6fe79a427cf1f1667e66956c94bc03e3ad49b75b2bdfaf33ad977fa1a9ff152fc782d2b223a21d4f3ffb82d2186d +MISC metadata.xml 358 BLAKE2B d25e9822dc9c9efcfc1a24029018651b9342ced362df7077945112137a50fa8d4a3e17189eb8ad502486ec2ff66d8d17c91f0a1add2bdae3534d055a6a386dc6 SHA512 7f005b095a76fac20912819c645cbe74abf41be6b844433af8778d28db77decfdfb9122f272fdc80f2d0756ad1ca02901aaf374bc5af81dbd3c48fce9fc3aa71 diff --git a/app-metrics/apache_exporter/apache_exporter-0.13.3.ebuild b/app-metrics/apache_exporter/apache_exporter-0.13.3.ebuild new file mode 100644 index 0000000..dd44498 --- /dev/null +++ b/app-metrics/apache_exporter/apache_exporter-0.13.3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd + +DESCRIPTION="Prometheus exporter for apache metrics" +HOMEPAGE="https://github.com/Lusitaniae/apache_exporter" +SRC_URI="https://github.com/Lusitaniae/apache_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://manuel.friedli.info/gentoo-overlay/${P}-vendor.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="acct-group/apache_exporter + acct-user/apache_exporter" + RDEPEND="${DEPEND}" + +src_compile() { + ego build +} + +src_install() { + dobin apache_exporter + dodoc README.md + newinitd "${FILESDIR}"/apache_exporter.initd apache_exporter + newconfd "${FILESDIR}"/apache_exporter.confd apache_exporter + + systemd_dounit "${FILESDIR}"/apache_exporter.service + insinto /etc/sysconfig + newins "${FILESDIR}/sysconfig.apache_exporter" apache_exporter + + keepdir /var/log/apache_exporter + fowners -R ${PN}:${PN} /var/log/apache_exporter +} diff --git a/app-metrics/apache_exporter/files/apache_exporter.confd b/app-metrics/apache_exporter/files/apache_exporter.confd new file mode 100644 index 0000000..63767d9 --- /dev/null +++ b/app-metrics/apache_exporter/files/apache_exporter.confd @@ -0,0 +1,2 @@ +# arguments for prometheus apache exporter +command_args="" diff --git a/app-metrics/apache_exporter/files/apache_exporter.initd b/app-metrics/apache_exporter/files/apache_exporter.initd new file mode 100644 index 0000000..fb7bf0a --- /dev/null +++ b/app-metrics/apache_exporter/files/apache_exporter.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 2016-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus apache metrics exporter" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/apache_exporter" +command_args="${command_args:-}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/apache_exporter/${RC_SVCNAME}.log \ + --stderr /var/log/apache_exporter/${RC_SVCNAME}.log" + +depend() { + after net +} + +start_pre() { + checkpath -q -d -m 0755 -o ${user}:${group} /var/log/apache_exporter +} diff --git a/app-metrics/apache_exporter/files/apache_exporter.service b/app-metrics/apache_exporter/files/apache_exporter.service new file mode 100644 index 0000000..a65ea94 --- /dev/null +++ b/app-metrics/apache_exporter/files/apache_exporter.service @@ -0,0 +1,10 @@ +[Unit] +Description=Apache Exporter + +[Service] +User=apache_exporter +EnvironmentFile=/etc/sysconfig/apache_exporter +ExecStart=/usr/bin/apache_exporter $OPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/app-metrics/apache_exporter/files/sysconfig.apache_exporter b/app-metrics/apache_exporter/files/sysconfig.apache_exporter new file mode 100644 index 0000000..9186ef7 --- /dev/null +++ b/app-metrics/apache_exporter/files/sysconfig.apache_exporter @@ -0,0 +1 @@ +OPTIONS="" diff --git a/app-metrics/apache_exporter/metadata.xml b/app-metrics/apache_exporter/metadata.xml new file mode 100644 index 0000000..251a871 --- /dev/null +++ b/app-metrics/apache_exporter/metadata.xml @@ -0,0 +1,11 @@ + + + + + federico.denkena@posteo.de + Federico Justus Denkena + + + prometheus/node_exporter + +