Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/prometheus-pushgateway/, app-metrics/pushgateway/files/, ...
Date: Fri, 30 Mar 2018 17:06:10
Message-Id: 1522429552.476e87a3d843681e868f4e73cb543bbb815691ad.mrueg@gentoo
1 commit: 476e87a3d843681e868f4e73cb543bbb815691ad
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 30 17:05:52 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 30 17:05:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=476e87a3
7
8 app-metrics/pushgateway: Move package from net-analyzer/prometheus-pushgateway
9
10 app-metrics/pushgateway/Manifest | 1 +
11 .../pushgateway/files/pushgateway.confd | 0
12 .../pushgateway/files/pushgateway.initd | 0
13 app-metrics/pushgateway/files/pushgateway.logrotated | 7 +++++++
14 .../pushgateway/files/pushgateway.service | 4 ++--
15 .../pushgateway}/metadata.xml | 0
16 .../pushgateway/pushgateway-0.4.0.ebuild | 4 ++--
17 net-analyzer/prometheus-pushgateway/Manifest | 1 -
18 .../prometheus-pushgateway/files/prometheus-pushgateway.logrotated | 7 -------
19 profiles/updates/1Q-2018 | 1 +
20 10 files changed, 13 insertions(+), 12 deletions(-)
21
22 diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest
23 new file mode 100644
24 index 00000000000..6d857bd20ce
25 --- /dev/null
26 +++ b/app-metrics/pushgateway/Manifest
27 @@ -0,0 +1 @@
28 +DIST pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927
29
30 diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd b/app-metrics/pushgateway/files/pushgateway.confd
31 similarity index 100%
32 rename from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd
33 rename to app-metrics/pushgateway/files/pushgateway.confd
34
35 diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd b/app-metrics/pushgateway/files/pushgateway.initd
36 similarity index 100%
37 rename from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd
38 rename to app-metrics/pushgateway/files/pushgateway.initd
39
40 diff --git a/app-metrics/pushgateway/files/pushgateway.logrotated b/app-metrics/pushgateway/files/pushgateway.logrotated
41 new file mode 100644
42 index 00000000000..c94b73952bc
43 --- /dev/null
44 +++ b/app-metrics/pushgateway/files/pushgateway.logrotated
45 @@ -0,0 +1,7 @@
46 +/var/log/pushgateway/pushgateway.log {
47 + missingok
48 + size 5M
49 + rotate 3
50 + compress
51 + copytruncate
52 +}
53
54 diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service b/app-metrics/pushgateway/files/pushgateway.service
55 similarity index 80%
56 rename from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service
57 rename to app-metrics/pushgateway/files/pushgateway.service
58 index 4377850f2c5..3915fdb5b33 100644
59 --- a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service
60 +++ b/app-metrics/pushgateway/files/pushgateway.service
61 @@ -4,9 +4,9 @@ Documentation=https://prometheus.io/docs/instrumenting/pushing/
62 After=network-online.target
63
64 [Service]
65 -User=prometheus-pushgateway
66 +User=pushgateway
67 Restart=on-failure
68 -Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/prometheus-pushgateway/persistence.gob"
69 +Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/pushgateway/persistence.gob"
70 ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS
71 ExecReload=/bin/kill -HUP $MAINPID
72 TimeoutStopSec=20s
73
74 diff --git a/net-analyzer/prometheus-pushgateway/metadata.xml b/app-metrics/pushgateway/metadata.xml
75 similarity index 100%
76 rename from net-analyzer/prometheus-pushgateway/metadata.xml
77 rename to app-metrics/pushgateway/metadata.xml
78
79 diff --git a/net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild b/app-metrics/pushgateway/pushgateway-0.4.0.ebuild
80 similarity index 93%
81 rename from net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild
82 rename to app-metrics/pushgateway/pushgateway-0.4.0.ebuild
83 index 848c8d3c334..c701fc15d86 100644
84 --- a/net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild
85 +++ b/app-metrics/pushgateway/pushgateway-0.4.0.ebuild
86 @@ -32,13 +32,13 @@ src_prepare() {
87 src_compile() {
88 pushd src/${EGO_PN} || die
89 mkdir -p bin || die
90 - GOPATH="${S}" promu build -v --prefix pushgateway || die
91 + GOPATH="${S}" promu build -v --prefix bin || die
92 popd || die
93 }
94
95 src_install() {
96 pushd src/${EGO_PN} || die
97 - dobin pushgateway/pushgateway
98 + dobin bin/pushgateway
99 dodoc {README,CHANGELOG,CONTRIBUTING}.md
100 popd || die
101 keepdir /var/lib/${PN} /var/log/${PN}
102
103 diff --git a/net-analyzer/prometheus-pushgateway/Manifest b/net-analyzer/prometheus-pushgateway/Manifest
104 deleted file mode 100644
105 index 8006b32ae23..00000000000
106 --- a/net-analyzer/prometheus-pushgateway/Manifest
107 +++ /dev/null
108 @@ -1 +0,0 @@
109 -DIST prometheus-pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927
110
111 diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated
112 deleted file mode 100644
113 index 3645c9be176..00000000000
114 --- a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated
115 +++ /dev/null
116 @@ -1,7 +0,0 @@
117 -/var/log/prometheus-pushgateway/prometheus-pushgateway.log {
118 - missingok
119 - size 5M
120 - rotate 3
121 - compress
122 - copytruncate
123 -}
124
125 diff --git a/profiles/updates/1Q-2018 b/profiles/updates/1Q-2018
126 index bbb63fd0dc4..903ea63ca17 100644
127 --- a/profiles/updates/1Q-2018
128 +++ b/profiles/updates/1Q-2018
129 @@ -20,3 +20,4 @@ move net-analyzer/prometheus-blackbox_exporter app-metrics/blackbox_exporter
130 move net-analyzer/prometheus-snmp_exporter app-metrics/snmp_exporter
131 move net-analyzer/prometheus-redis_exporter app-metrics/redis_exporter
132 move net-analyzer/prometheus-uwsgi_exporter app-metrics/uwsgi_exporter
133 +move net-analyzer/prometheus-pushgateway app-metrics/pushgateway