1 |
commit: ce2c25dc3dc1fa486130aec57853336f9293ab02 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 16:59:16 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 16:59:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce2c25dc |
7 |
|
8 |
app-metrics/uwsgi_exporter: drop old version |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781254 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
app-metrics/uwsgi_exporter/Manifest | 1 - |
15 |
.../uwsgi_exporter/uwsgi_exporter-0.7.0.ebuild | 54 ---------------------- |
16 |
.../uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild | 54 ---------------------- |
17 |
3 files changed, 109 deletions(-) |
18 |
|
19 |
diff --git a/app-metrics/uwsgi_exporter/Manifest b/app-metrics/uwsgi_exporter/Manifest |
20 |
index 658891a62f9..f37b4229fd9 100644 |
21 |
--- a/app-metrics/uwsgi_exporter/Manifest |
22 |
+++ b/app-metrics/uwsgi_exporter/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST uwsgi_exporter-0.7.0.tar.gz 3039893 BLAKE2B a6efdae7f9a19ad21a283b586b5667bd99456274ed419d1b64aaf4cdb4df1e1c4fb2a08edf6df2b15813d21311fe54c2f2394f0bf25ac11c49db8a924596da05 SHA512 380ef4515eaa81d4dee853682efa7a5e82af2ec00c096e7471028c9932d46e0a7406b75cb40f0f8efec15cd77b06c5477a07919d0b44720e3e194b5bb023b593 |
25 |
DIST uwsgi_exporter-0.8.0.tar.gz 3040547 BLAKE2B 5b6769487b3a08752cdff9dccc727096bc6b9d49e12e8aa35d04bbd0c3534503c19a4dda882c7efd7409549f3cae750021fa7ce87d12b798a2998efcdfc9f1cf SHA512 a5a1439f554749c7db4857651a11cbbf0ad0a0a8da0ffd421e374fe08194ba289a6bb04a95e4169ba6a75d0358c7a96e5b9f3cc5813cc39004f81dce42edb3ed |
26 |
|
27 |
diff --git a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.7.0.ebuild b/app-metrics/uwsgi_exporter/uwsgi_exporter-0.7.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index b705627040f..00000000000 |
30 |
--- a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.7.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,54 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
-inherit user golang-build golang-vcs-snapshot systemd |
38 |
- |
39 |
-EGO_PN="github.com/timonwong/uwsgi_exporter" |
40 |
-EGIT_COMMIT="v${PV/_rc/-rc.}" |
41 |
-UWSGI_EXPORTER_COMMIT="20e35a9" |
42 |
-ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
43 |
-KEYWORDS="~amd64" |
44 |
- |
45 |
-DESCRIPTION="uWSGI metrics exporter for prometheus.io" |
46 |
-HOMEPAGE="https://github.com/timonwong/uwsgi_exporter" |
47 |
-SRC_URI="${ARCHIVE_URI}" |
48 |
-LICENSE="Apache-2.0 BSD ISC MIT" |
49 |
-SLOT="0" |
50 |
-IUSE="" |
51 |
- |
52 |
-DEPEND="dev-util/promu" |
53 |
- |
54 |
-pkg_setup() { |
55 |
- enewgroup ${PN} |
56 |
- enewuser ${PN} -1 -1 -1 ${PN} |
57 |
-} |
58 |
- |
59 |
-src_prepare() { |
60 |
- default |
61 |
- sed -i -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
62 |
-} |
63 |
- |
64 |
-src_compile() { |
65 |
- pushd src/${EGO_PN} || die |
66 |
- mkdir -p bin || die |
67 |
- GOPATH="${S}" promu build -v --prefix bin || die |
68 |
- popd || die |
69 |
-} |
70 |
- |
71 |
-src_install() { |
72 |
- pushd src/${EGO_PN} || die |
73 |
- dobin bin/uwsgi_exporter |
74 |
- dodoc README.md |
75 |
- popd || die |
76 |
- local dir |
77 |
- for dir in /var/{lib,log}/${PN}; do |
78 |
- keepdir "${dir}" |
79 |
- fowners ${PN}:${PN} "${dir}" |
80 |
- done |
81 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
82 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
83 |
- insinto /etc/logrotate.d |
84 |
- newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
85 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
86 |
-} |
87 |
|
88 |
diff --git a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild b/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild |
89 |
deleted file mode 100644 |
90 |
index 05b3d84ad98..00000000000 |
91 |
--- a/app-metrics/uwsgi_exporter/uwsgi_exporter-0.8.0.ebuild |
92 |
+++ /dev/null |
93 |
@@ -1,54 +0,0 @@ |
94 |
-# Copyright 1999-2019 Gentoo Authors |
95 |
-# Distributed under the terms of the GNU General Public License v2 |
96 |
- |
97 |
-EAPI=7 |
98 |
-inherit user golang-build golang-vcs-snapshot systemd |
99 |
- |
100 |
-EGO_PN="github.com/timonwong/uwsgi_exporter" |
101 |
-EGIT_COMMIT="v${PV/_rc/-rc.}" |
102 |
-UWSGI_EXPORTER_COMMIT="ddbc18f" |
103 |
-ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
104 |
-KEYWORDS="~amd64" |
105 |
- |
106 |
-DESCRIPTION="uWSGI metrics exporter for prometheus.io" |
107 |
-HOMEPAGE="https://github.com/timonwong/uwsgi_exporter" |
108 |
-SRC_URI="${ARCHIVE_URI}" |
109 |
-LICENSE="Apache-2.0 BSD ISC MIT" |
110 |
-SLOT="0" |
111 |
-IUSE="" |
112 |
- |
113 |
-DEPEND="dev-util/promu" |
114 |
- |
115 |
-pkg_setup() { |
116 |
- enewgroup ${PN} |
117 |
- enewuser ${PN} -1 -1 -1 ${PN} |
118 |
-} |
119 |
- |
120 |
-src_prepare() { |
121 |
- default |
122 |
- sed -i -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die |
123 |
-} |
124 |
- |
125 |
-src_compile() { |
126 |
- pushd src/${EGO_PN} || die |
127 |
- mkdir -p bin || die |
128 |
- GOPATH="${S}" promu build -v --prefix bin || die |
129 |
- popd || die |
130 |
-} |
131 |
- |
132 |
-src_install() { |
133 |
- pushd src/${EGO_PN} || die |
134 |
- dobin bin/uwsgi_exporter |
135 |
- dodoc README.md |
136 |
- popd || die |
137 |
- local dir |
138 |
- for dir in /var/{lib,log}/${PN}; do |
139 |
- keepdir "${dir}" |
140 |
- fowners ${PN}:${PN} "${dir}" |
141 |
- done |
142 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
143 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
144 |
- insinto /etc/logrotate.d |
145 |
- newins "${FILESDIR}/${PN}.logrotated" "${PN}" |
146 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
147 |
-} |