app-metrics/pushgateway: Move package from net-analyzer/prometheus-pushgateway
authorManuel Rüger <mrueg@gentoo.org>
Fri, 30 Mar 2018 17:05:52 +0000 (19:05 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Fri, 30 Mar 2018 17:05:52 +0000 (19:05 +0200)
app-metrics/pushgateway/Manifest [new file with mode: 0644]
app-metrics/pushgateway/files/pushgateway.confd [moved from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd with 100% similarity]
app-metrics/pushgateway/files/pushgateway.initd [moved from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd with 100% similarity]
app-metrics/pushgateway/files/pushgateway.logrotated [new file with mode: 0644]
app-metrics/pushgateway/files/pushgateway.service [moved from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service with 80% similarity]
app-metrics/pushgateway/metadata.xml [moved from net-analyzer/prometheus-pushgateway/metadata.xml with 100% similarity]
app-metrics/pushgateway/pushgateway-0.4.0.ebuild [moved from net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild with 93% similarity]
net-analyzer/prometheus-pushgateway/Manifest [deleted file]
net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated [deleted file]
profiles/updates/1Q-2018

diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest
new file mode 100644 (file)
index 0000000..6d857bd
--- /dev/null
@@ -0,0 +1 @@
+DIST pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927
diff --git a/app-metrics/pushgateway/files/pushgateway.logrotated b/app-metrics/pushgateway/files/pushgateway.logrotated
new file mode 100644 (file)
index 0000000..c94b739
--- /dev/null
@@ -0,0 +1,7 @@
+/var/log/pushgateway/pushgateway.log {
+       missingok
+       size 5M
+       rotate 3
+       compress
+       copytruncate
+}
similarity index 80%
rename from net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service
rename to app-metrics/pushgateway/files/pushgateway.service
index 4377850f2c5c2656212947991209847a8be32774..3915fdb5b337412066fbd4d12a96775efbb2ad5f 100644 (file)
@@ -4,9 +4,9 @@ Documentation=https://prometheus.io/docs/instrumenting/pushing/
 After=network-online.target
 
 [Service]
-User=prometheus-pushgateway
+User=pushgateway
 Restart=on-failure
-Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/prometheus-pushgateway/persistence.gob"
+Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/pushgateway/persistence.gob"
 ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS
 ExecReload=/bin/kill -HUP $MAINPID
 TimeoutStopSec=20s
similarity index 93%
rename from net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild
rename to app-metrics/pushgateway/pushgateway-0.4.0.ebuild
index 848c8d3c334e50ccb4305e04c5977c89ce342aff..c701fc15d86901cfc1d0f43975e9f0b810d0b9e6 100644 (file)
@@ -32,13 +32,13 @@ src_prepare() {
 src_compile() {
        pushd src/${EGO_PN} || die
        mkdir -p bin || die
-       GOPATH="${S}" promu build -v --prefix pushgateway || die
+       GOPATH="${S}" promu build -v --prefix bin || die
        popd || die
 }
 
 src_install() {
        pushd src/${EGO_PN} || die
-       dobin pushgateway/pushgateway
+       dobin bin/pushgateway
        dodoc {README,CHANGELOG,CONTRIBUTING}.md
        popd || die
        keepdir /var/lib/${PN} /var/log/${PN}
diff --git a/net-analyzer/prometheus-pushgateway/Manifest b/net-analyzer/prometheus-pushgateway/Manifest
deleted file mode 100644 (file)
index 8006b32..0000000
+++ /dev/null
@@ -1 +0,0 @@
-DIST prometheus-pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927
diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated
deleted file mode 100644 (file)
index 3645c9b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/var/log/prometheus-pushgateway/prometheus-pushgateway.log {
-       missingok
-       size 5M
-       rotate 3
-       compress
-       copytruncate
-}
index bbb63fd0dc44838f5f7c47360587bed27abf130f..903ea63ca1719cfd220c6b4d416a21d88e32dec2 100644 (file)
@@ -20,3 +20,4 @@ move net-analyzer/prometheus-blackbox_exporter app-metrics/blackbox_exporter
 move net-analyzer/prometheus-snmp_exporter app-metrics/snmp_exporter
 move net-analyzer/prometheus-redis_exporter app-metrics/redis_exporter
 move net-analyzer/prometheus-uwsgi_exporter app-metrics/uwsgi_exporter
+move net-analyzer/prometheus-pushgateway app-metrics/pushgateway