diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-12-16 13:38:29 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-12-16 13:38:29 +0100 |
commit | d67c495601f383d9b719e00e0c50bc1600a66b01 (patch) | |
tree | 6f4f7dc19744fbf53c2703f4ced553609b196b12 /app-metrics | |
parent | net-dns/coredns: Version bump to 1.3.0 (diff) | |
download | gentoo-d67c495601f383d9b719e00e0c50bc1600a66b01.tar.gz gentoo-d67c495601f383d9b719e00e0c50bc1600a66b01.tar.bz2 gentoo-d67c495601f383d9b719e00e0c50bc1600a66b01.zip |
app-metrics/postgres_exporter: Version bump to 0.4.7
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/postgres_exporter/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/postgres_exporter/postgres_exporter-0.4.7.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app-metrics/postgres_exporter/Manifest b/app-metrics/postgres_exporter/Manifest index 21dc66f7756a..80a9cd97a0c9 100644 --- a/app-metrics/postgres_exporter/Manifest +++ b/app-metrics/postgres_exporter/Manifest @@ -1 +1,2 @@ DIST postgres_exporter-0.4.6.tar.gz 3698795 BLAKE2B 5d8a370d6f5ddbe0c8570ad14d8547a5d56dbbd9d4f2d5ef604550cd0e1e97baa5c7bbd0940704f3d8f7f25da0f26d54318b4e4732a82f68e9394c5c9b044a20 SHA512 16062a372ad8048ca0bdb41e302bde9d18dfcdc519fbf387cc7ea414667d4a8ad2984b524e7a2c86132f4b37a175c6dd9d4ce67be5cc3c9d91aa9e73cb8c4e3b +DIST postgres_exporter-0.4.7.tar.gz 3699251 BLAKE2B b4232858464ae30f714dda58a414ec343aedc5972b44066aa45a85cf64d98ef40925ca77956c218a3962e22a35f3229795cc730fec9fc10565a43fc9e827200c SHA512 81afce765830a5c16597f0ac9a95d21466edb20e40cff8e26079663db75f0051a6e0eb4ff828eb825b51a6fc52b3b534e0f6ffbb2ecf2c94e2ec8656de4a2ff6 diff --git a/app-metrics/postgres_exporter/postgres_exporter-0.4.7.ebuild b/app-metrics/postgres_exporter/postgres_exporter-0.4.7.ebuild new file mode 100644 index 000000000000..09c01b139aab --- /dev/null +++ b/app-metrics/postgres_exporter/postgres_exporter-0.4.7.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit user golang-build golang-vcs-snapshot + +EGO_PN="github.com/wrouesnel/postgres_exporter" +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="PostgreSQL stats exporter for Prometheus" +HOMEPAGE="https://github.com/wrouesnel/postgres_exporter" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + pushd src/${EGO_PN} || die + VERSION_SHORT="${PV}" VERSION="${PV}" GOPATH="${S}" go run mage.go binary || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin ${PN} + dodoc README.md queries.yaml + popd || die + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} |