summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-04-11 08:18:51 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-04-11 08:20:58 +0300
commit6cb32750b35d2a3bffb2ac73431ff0be371ec0c8 (patch)
treed0678954680bdcddea5f23bdfafeec43cb2bc156 /app-metrics
parentsys-apps/syd: drop 3.15.6 (diff)
downloadgentoo-6cb32750b35d2a3bffb2ac73431ff0be371ec0c8.tar.gz
gentoo-6cb32750b35d2a3bffb2ac73431ff0be371ec0c8.tar.bz2
gentoo-6cb32750b35d2a3bffb2ac73431ff0be371ec0c8.zip
app-metrics/postfix_exporter: add 0.3.0, EAPI8
Closes: https://bugs.gentoo.org/844619 Closes: https://bugs.gentoo.org/771087 Closes: https://bugs.gentoo.org/679092 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/postfix_exporter/Manifest2
-rw-r--r--app-metrics/postfix_exporter/postfix_exporter-0.3.0.ebuild42
2 files changed, 44 insertions, 0 deletions
diff --git a/app-metrics/postfix_exporter/Manifest b/app-metrics/postfix_exporter/Manifest
index 0d848ba69037..f5249a3782a1 100644
--- a/app-metrics/postfix_exporter/Manifest
+++ b/app-metrics/postfix_exporter/Manifest
@@ -8,3 +8,5 @@ DIST github.com-prometheus-client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
DIST github.com-prometheus-common-38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a.tar.gz 63007 BLAKE2B a62f727ef9dd42d52f495ab7449cbafbe7c7fcdb1bc171df97c40348dcb7fe12788223d7a2aea3398cae7dd17ec73ae6349b5e5f35f4785f2796cc9a16c2d420 SHA512 4f1ab6cffc309a00ed68959b9372e1d3ea4f8d597b8c462a4e365cf22737245e601b8bda0764bbd1f0172d773805d16e90a8aa90cb95e9462e35320043e04060
DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.gz 56873 BLAKE2B 31ae12d51b6a28c285bd5854b137d2634499d0db3c2c65c0404ca5a902ffec2e9bf689261ea51c2fe1643733f09a780c437f7a7899a5e6c3e3d100a36e07b897 SHA512 a548c6bc71456c9878cb34ad1514d92c8737e01b555e953f848cc1ae7944424b06a14a8ab0c6de4d99dbb189a0f29e2bb9ae09b5adffc327c28f5c50c2819892
DIST postfix_exporter-0.1.2.tar.gz 11552 BLAKE2B 987c81482fc984e8f6c870fdaf7ce2ef67b3fa66e5782713a645d35b76a1bde1dde97a79705569d1423a9356309d0b7240c77dba386127e8a5035990220d2a62 SHA512 579793281dedd858538ab9a931e0003cfc9989204ebf4352dd4860e5a7f62b919d77a9e0facb9daff6706771010f9e807061dace8cb88928635d55111c7c482a
+DIST postfix_exporter-0.3.0-deps.tar.xz 10261848 BLAKE2B 3ab985ae873f53019b093266df90d4593b3a1755bafb6a0df600ae84411fd73f578cfeb6749fdfade5392ec55ec4df1916cf6b86f0ea0b5e04828dda50687789 SHA512 d591ef808fd3ccc7b48f37257ae6925b8ae491decef9ac679f13af08d0c6717b162a53cc2cd2ffb98361f38eaceaac24b2fba1db958fc9fa172fbe5060b639b1
+DIST postfix_exporter-0.3.0.tar.gz 26528 BLAKE2B 9d1b17917f4a6a6e73e1477e973454d9ce774d218463f151117e8772f77ea17c00536d0262789644716992c3c6ddcbf8b26d9c92eea77f9750e971e3a7c0d1d4 SHA512 1812d2ad95803290c12615975ba6e44c0a6f73dd0e10db927a9f1c58bfce27b71c9c2928f58623e263ba2737d2780f220e6a7fe0992e2607f290478eaa080b39
diff --git a/app-metrics/postfix_exporter/postfix_exporter-0.3.0.ebuild b/app-metrics/postfix_exporter/postfix_exporter-0.3.0.ebuild
new file mode 100644
index 000000000000..ec665dd32649
--- /dev/null
+++ b/app-metrics/postfix_exporter/postfix_exporter-0.3.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Prometheus Exporter for Postfix"
+HOMEPAGE="https://github.com/kumina/postfix_exporter"
+SRC_URI="
+ https://github.com/kumina/postfix_exporter/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="systemd"
+RESTRICT+=" test"
+
+RDEPEND="
+ acct-group/postfix_exporter
+ acct-user/postfix_exporter
+"
+DEPEND="${RDEPEND}
+ systemd? ( sys-apps/systemd )
+"
+
+src_compile() {
+ ego build -tags "$(usex systemd '' 'nosystemd')" -v -o bin/${PN}
+}
+
+src_install() {
+ dobin bin/${PN}
+ dodoc {CHANGELOG,README}.md
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+}