summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-07-05 15:47:09 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-07-05 15:51:17 -0500
commit304988cf287a81fd38ec576eebd16a4f70f6385e (patch)
treeb3367c3a815bd27d651ddc1211003b68123ff20e
parentdev-embedded/xa: Fix build system (diff)
downloadgentoo-304988cf287a81fd38ec576eebd16a4f70f6385e.tar.gz
gentoo-304988cf287a81fd38ec576eebd16a4f70f6385e.tar.bz2
gentoo-304988cf287a81fd38ec576eebd16a4f70f6385e.zip
app-metrics/memcached_exporter: 0.6.0 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
-rw-r--r--app-metrics/memcached_exporter/Manifest1
-rw-r--r--app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/app-metrics/memcached_exporter/Manifest b/app-metrics/memcached_exporter/Manifest
index cd83175830c9..a0a62149d212 100644
--- a/app-metrics/memcached_exporter/Manifest
+++ b/app-metrics/memcached_exporter/Manifest
@@ -1 +1,2 @@
DIST memcached_exporter-0.5.0.tar.gz 1350752 BLAKE2B e9a326ca155e0e0a89dd556f0a97ba9bbe73e3e02a905497c55a5390be2cbf211dde9dda37355dd043b711258c78cf911c79ae898b6e0934f2d4b2ddef7ae946 SHA512 62ec7f9cefc88425ea3b53a634b2d5ff1534624b6e149c962372e81a7271fc1bf3c01c7d8641dc49250b8d124bec740b3c2768e62d51cfdc025a29f71a49b428
+DIST memcached_exporter-0.6.0.tar.gz 1709929 BLAKE2B 3b2f3272289d7745b560eb466918c00a2b65947dfcc219d2971cf6215a5590809c48e4b4385e572ff38c1abe7af74c9bf1575450498382b18644a46d1dab3dd7 SHA512 02238da4e901c3e3b57144501d64fa19502bdcf1aa65e775188ef18f9e524c4e2a44d87e8dcc926261b589715a8347628b87c2e418bcbcc63b5a18058ef771be
diff --git a/app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild b/app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild
new file mode 100644
index 000000000000..913258dc59d0
--- /dev/null
+++ b/app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module user
+
+DESCRIPTION="Prometheus exporter for memcached"
+HOMEPAGE="https://github.com/prometheus/memcached_exporter"
+SRC_URI="https://github.com/prometheus/memcached_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="dev-util/promu"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_compile() {
+ mkdir bin || die
+ promu build --prefix bin || die
+}
+
+src_install() {
+ newbin bin/${P} ${PN}
+ dodoc *.md
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}