1 |
commit: 145703d88c2a178934cc8ad7f638738c10d16af7 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 21 02:47:00 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 21 02:47:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=145703d8 |
7 |
|
8 |
app-metrics/uwsgi_exporter: Bump to version 0.8.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-metrics/uwsgi_exporter/Manifest | 1 + |
14 |
.../uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild | 54 ++++++++++++++++++++++ |
15 |
2 files changed, 55 insertions(+) |
16 |
|
17 |
diff --git a/app-metrics/uwsgi_exporter/Manifest b/app-metrics/uwsgi_exporter/Manifest |
18 |
index b4a5124da24..658891a62f9 100644 |
19 |
--- a/app-metrics/uwsgi_exporter/Manifest |
20 |
+++ b/app-metrics/uwsgi_exporter/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST uwsgi_exporter-0.7.0.tar.gz 3039893 BLAKE2B a6efdae7f9a19ad21a283b586b5667bd99456274ed419d1b64aaf4cdb4df1e1c4fb2a08edf6df2b15813d21311fe54c2f2394f0bf25ac11c49db8a924596da05 SHA512 380ef4515eaa81d4dee853682efa7a5e82af2ec00c096e7471028c9932d46e0a7406b75cb40f0f8efec15cd77b06c5477a07919d0b44720e3e194b5bb023b593 |
23 |
+DIST uwsgi_exporter-0.8.0.tar.gz 3040547 BLAKE2B 5b6769487b3a08752cdff9dccc727096bc6b9d49e12e8aa35d04bbd0c3534503c19a4dda882c7efd7409549f3cae750021fa7ce87d12b798a2998efcdfc9f1cf SHA512 a5a1439f554749c7db4857651a11cbbf0ad0a0a8da0ffd421e374fe08194ba289a6bb04a95e4169ba6a75d0358c7a96e5b9f3cc5813cc39004f81dce42edb3ed |
24 |
|
25 |
diff --git a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild b/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..05b3d84ad98 |
28 |
--- /dev/null |
29 |
+++ b/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild |
30 |
@@ -0,0 +1,54 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit user golang-build golang-vcs-snapshot systemd |
36 |
+ |
37 |
+EGO_PN="github.com/timonwong/uwsgi_exporter" |
38 |
+EGIT_COMMIT="v${PV/_rc/-rc.}" |
39 |
+UWSGI_EXPORTER_COMMIT="ddbc18f" |
40 |
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
41 |
+KEYWORDS="~amd64" |
42 |
+ |
43 |
+DESCRIPTION="uWSGI metrics exporter for prometheus.io" |
44 |
+HOMEPAGE="https://github.com/timonwong/uwsgi_exporter" |
45 |
+SRC_URI="${ARCHIVE_URI}" |
46 |
+LICENSE="Apache-2.0 BSD ISC MIT" |
47 |
+SLOT="0" |
48 |
+IUSE="" |
49 |
+ |
50 |
+DEPEND="dev-util/promu" |
51 |
+ |
52 |
+pkg_setup() { |
53 |
+ enewgroup ${PN} |
54 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
55 |
+} |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ sed -i -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ pushd src/${EGO_PN} || die |
64 |
+ mkdir -p bin || die |
65 |
+ GOPATH="${S}" promu build -v --prefix bin || die |
66 |
+ popd || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ pushd src/${EGO_PN} || die |
71 |
+ dobin bin/uwsgi_exporter |
72 |
+ dodoc README.md |
73 |
+ popd || die |
74 |
+ local dir |
75 |
+ for dir in /var/{lib,log}/${PN}; do |
76 |
+ keepdir "${dir}" |
77 |
+ fowners ${PN}:${PN} "${dir}" |
78 |
+ done |
79 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
80 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
81 |
+ insinto /etc/logrotate.d |
82 |
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
83 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
84 |
+} |