diff options
author | William Hubbs <williamh@gentoo.org> | 2022-07-23 11:34:01 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-07-23 11:40:15 -0500 |
commit | 732692064bbaee1e315b38c9f0dec1b4ccf32318 (patch) | |
tree | 2c63249201f8725596f8d469768c3514cbaf5b80 /app-metrics | |
parent | app-emulation/ganeti: cleanup & update to EAPI8 (diff) | |
download | gentoo-732692064bbaee1e315b38c9f0dec1b4ccf32318.tar.gz gentoo-732692064bbaee1e315b38c9f0dec1b4ccf32318.tar.bz2 gentoo-732692064bbaee1e315b38c9f0dec1b4ccf32318.zip |
app-metrics/postgres_exporter: add 0.10.1
Bug: https://bugs.gentoo.org/844343
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/postgres_exporter/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/app-metrics/postgres_exporter/Manifest b/app-metrics/postgres_exporter/Manifest index b096857f2829..22f4f4347a58 100644 --- a/app-metrics/postgres_exporter/Manifest +++ b/app-metrics/postgres_exporter/Manifest @@ -428,6 +428,8 @@ DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20180728063816-88497007e858.mod 26 BLA DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20190102054323-c2f93a96b099.mod 26 BLAKE2B db6cc87a17bed88b955e6b36a17568930239c94a969211b02c2d5acc70386fbea63ac44365a0d3241e900125bd64644d698d8f1bdcabc3e6cf99c47259c63df5 SHA512 d00ae74b24e7fb3ff351ff68b88e59636153bbcf92b36e81e91556e3e75a7ccfb08ce471f757f92fd7612378944de3d7309c73923812e2df6a26b74e999ca9ce DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20190523083050-ea95bdfd59fc.mod 26 BLAKE2B db6cc87a17bed88b955e6b36a17568930239c94a969211b02c2d5acc70386fbea63ac44365a0d3241e900125bd64644d698d8f1bdcabc3e6cf99c47259c63df5 SHA512 d00ae74b24e7fb3ff351ff68b88e59636153bbcf92b36e81e91556e3e75a7ccfb08ce471f757f92fd7612378944de3d7309c73923812e2df6a26b74e999ca9ce DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.1-2019.2.3.mod 300 BLAKE2B 3e3f5a2be0918cbaacd5e43e59fcc6c7c6999645f0c9214cd5a522c31d34b6d3dad61e3ddae8ccdb2f3f0d90b406c047802ee3d9d54dc40fe6eff9cd35620792 SHA512 0c8aa788d0c03d6d049f0dd7468d0f81ce2131ccedd5a5a3a18362b7d30eef7ef325277844eefe4b707b1ad71c6f83a44e110b7af7b98e05406d347237a7bafb +DIST postgres_exporter-0.10.1-deps.tar.xz 106506900 BLAKE2B 3f32d804d9bd07a91ac623656896d23bba217e2ceed90ff2fcfa19d02093912fe35008064b1248ee98a23e02efdef2761ad7c1dfc96c636d051686ed4a58eceb SHA512 842c6d519c537989cfba36961d38b1cb0e315241a88e1f53532ebf1829d31c7c17b5986680193663e4de3c5cfab3bb25f38e5c6afe6b2ab14ce2efd47a052ae7 +DIST postgres_exporter-0.10.1.tar.gz 73157 BLAKE2B bc56dfdd50878615768fc4e4a193784b73ee48cb1b2743deae21d6caf5db60e3eabe2987cee27742081bea1c506a9c96fb11808304a0007c5e2e252a1e4cb752 SHA512 75ba08354174980d55fb1deed1035323d89f3331f0c366165a0262b4081b99d083f14dbcdd7539836399d0d69a75a296cb978a42d94ff0b1c0bcb8f3933fcabc DIST postgres_exporter-0.9.0.tar.gz 63464 BLAKE2B c51a6fed1438a67959442f225a062ba2c5a04d0bf652d3328408aeb765eb38b3fdce50aa8e33509dffe95c64ff55a1c169fc7ea846b2206ed9a7bc47a7bdf19b SHA512 811485dae75f8d7e85db2a8774bbaa6a52b0c34b76b488cd9a348f7fddfb4886fd7489e0330bd81abb65a65a0fa2e0794404796eb11e0195940df6aa207f32e8 DIST sigs.k8s.io%2Fyaml%2F@v%2Fv1.1.0.mod 24 BLAKE2B d33080dbc62b185d029eb43f75d66328dbfa7c463a3117b3efd5419ab8e1e52cc6f5d5a288d553421025c785ec6948b3aa68588cae19bd325f6acc0d043bb5fb SHA512 78f6402daccb04510f4ef35ee457ee13e4f447fba8e6aa33b4d32aa666e925861bf3b3f22c5ba9573871ec7e830f99e4caae0969724a54eadf40e6a7ed7931a0 DIST sourcegraph.com%2Fsourcegraph%2Fappdash%2F@v%2Fv0.0.0-20190731080439-ebfcffb1b5c0.mod 43 BLAKE2B 44d562f1cdabdb24ca05eb508183dc158939129a4cf6ec0c58815076367b2902b660ee0ef526aa01e920846fb633d001c499bf63a3cea16494213eec41587408 SHA512 7d863e4af4e480a247bc767d1de96ff8050b12a13a182a9a8fa68c983c2f0b1a16b509d40de3cca552082535f876458034e1510f0f0feef383f16e1f84f81282 diff --git a/app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild b/app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild new file mode 100644 index 000000000000..3f393e013f2f --- /dev/null +++ b/app-metrics/postgres_exporter/postgres_exporter-0.10.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module +GIT_COMMIT=6cff384d7433bcb1104efe3b496cd27c0658eb09 + +DESCRIPTION="PostgreSQL stats exporter for Prometheus" +HOMEPAGE="https://github.com/prometheus-community/postgres_exporter" +SRC_URI="https://github.com/prometheus-community/postgres_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 MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="acct-group/postgres_exporter + acct-user/postgres_exporter" +RDEPEND="${DEPEND}" +BDEPEND="dev-util/promu" + +RESTRICT=" test " + +src_prepare() { + default + sed -i \ + -e "s/{{.Branch}}/HEAD/" \ + -e "s/{{.Revision}}/${GIT_COMMIT}/" \ + .promu.yml || die "sed failed" +} + +src_compile() { + promu build -v --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc README.md queries.yaml + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} |