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 /app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild
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>
Diffstat (limited to 'app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild')
-rw-r--r--app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild34
1 files changed, 34 insertions, 0 deletions
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}
+}