From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- app-metrics/Manifest.gz | Bin 5282 -> 5277 bytes app-metrics/alertmanager/Manifest | 2 +- .../alertmanager/alertmanager-0.21.0.ebuild | 4 +- app-metrics/bind_exporter/Manifest | 2 - .../bind_exporter-0.2.0_p20190226.ebuild | 59 --- app-metrics/blackbox_exporter/Manifest | 2 + .../blackbox_exporter-0.17.0.ebuild | 52 ++ app-metrics/collectd/Manifest | 5 +- app-metrics/collectd/collectd-5.10.0.ebuild | 2 +- app-metrics/collectd/collectd-5.11.0-r2.ebuild | 549 -------------------- app-metrics/collectd/collectd-5.11.0-r3.ebuild | 551 +++++++++++++++++++++ .../files/collectd-5.11.0-libsigrok-0.4+.patch | 157 ++++++ app-metrics/github-exporter/Manifest | 44 ++ .../github-exporter/github-exporter-1.0.1.ebuild | 84 ++++ app-metrics/memcached_exporter/Manifest | 2 + .../memcached_exporter-0.6.0.ebuild | 34 ++ app-metrics/mongodb_exporter/Manifest | 2 + .../mongodb_exporter-0.11.0.ebuild | 34 ++ app-metrics/mysqld_exporter/Manifest | 3 + .../files/mysqld_exporter-0.12.1-skip-tests.patch | 22 + .../mysqld_exporter-0.12.1_p20200622.ebuild | 78 +++ app-metrics/nginx-vts-exporter/Manifest | 3 + .../nginx-vts-exporter-0.10.7-r1.ebuild | 44 ++ .../nginx-vts-exporter-0.10.7.ebuild | 42 ++ app-metrics/node_exporter/Manifest | 5 +- .../node_exporter-1.0.0_rc0-r1.ebuild | 45 -- .../node_exporter/node_exporter-1.0.0_rc0.ebuild | 53 -- .../node_exporter/node_exporter-1.0.1.ebuild | 45 ++ app-metrics/openvpn_exporter/Manifest | 20 + .../openvpn_exporter/openvpn_exporter-0.3.0.ebuild | 59 +++ app-metrics/postfix_exporter/Manifest | 1 + .../postfix_exporter-0.1.2-r1.ebuild | 54 ++ app-metrics/process-exporter/Manifest | 38 ++ .../process-exporter/process-exporter-0.7.1.ebuild | 69 +++ app-metrics/prom2json/Manifest | 4 +- app-metrics/prom2json/metadata.xml | 5 +- app-metrics/prom2json/prom2json-1.3.0.ebuild | 35 ++ app-metrics/prometheus/Manifest | 2 +- app-metrics/prometheus/prometheus-2.19.1.ebuild | 2 +- app-metrics/pushgateway/Manifest | 2 +- app-metrics/pushgateway/pushgateway-1.0.0.ebuild | 23 +- app-metrics/redis_exporter/Manifest | 2 +- .../redis_exporter/redis_exporter-1.2.1.ebuild | 18 +- 43 files changed, 1510 insertions(+), 749 deletions(-) delete mode 100644 app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild create mode 100644 app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild delete mode 100644 app-metrics/collectd/collectd-5.11.0-r2.ebuild create mode 100644 app-metrics/collectd/collectd-5.11.0-r3.ebuild create mode 100644 app-metrics/collectd/files/collectd-5.11.0-libsigrok-0.4+.patch create mode 100644 app-metrics/github-exporter/github-exporter-1.0.1.ebuild create mode 100644 app-metrics/memcached_exporter/memcached_exporter-0.6.0.ebuild create mode 100644 app-metrics/mongodb_exporter/mongodb_exporter-0.11.0.ebuild create mode 100644 app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch create mode 100644 app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild create mode 100644 app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild create mode 100644 app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild delete mode 100644 app-metrics/node_exporter/node_exporter-1.0.0_rc0-r1.ebuild delete mode 100644 app-metrics/node_exporter/node_exporter-1.0.0_rc0.ebuild create mode 100644 app-metrics/node_exporter/node_exporter-1.0.1.ebuild create mode 100644 app-metrics/openvpn_exporter/openvpn_exporter-0.3.0.ebuild create mode 100644 app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild create mode 100644 app-metrics/process-exporter/process-exporter-0.7.1.ebuild create mode 100644 app-metrics/prom2json/prom2json-1.3.0.ebuild (limited to 'app-metrics') diff --git a/app-metrics/Manifest.gz b/app-metrics/Manifest.gz index f35eb101333e..fe6604e73757 100644 Binary files a/app-metrics/Manifest.gz and b/app-metrics/Manifest.gz differ diff --git a/app-metrics/alertmanager/Manifest b/app-metrics/alertmanager/Manifest index d13bf001dfbe..990e629f8044 100644 --- a/app-metrics/alertmanager/Manifest +++ b/app-metrics/alertmanager/Manifest @@ -5,5 +5,5 @@ DIST alertmanager-0.19.0.tar.gz 5862442 BLAKE2B a79336286ca1099dcc73cce897eccaff DIST alertmanager-0.21.0.tar.gz 5704209 BLAKE2B 646ac0b05eb194d1c35f49e38c0a206d09a9c45d4f2f7c371a53ecfff5deba6e2c2af82f3f4ce2b591338c557241766395f42b8bd3c91ae2da4ef7e570666fda SHA512 72568407af4e90455975eff504ed49f4877eb517673532f655b6b0459725db5df7bbd1a3be120106c46b30dd7056714cc0b34b46df9c4d8c98e1f8c9eb0c39da EBUILD alertmanager-0.18.0.ebuild 1389 BLAKE2B 4757558e01287f8afff1a39c04dfd1cccaaae3ee14584c8196300280acea50393a05b56e6a255cc35cca408464044273e9935e37ecfd03f86ceb17867ac814f9 SHA512 e64b174b7433b0bab0d6c549d470582737a6b138f0d79e042a9bb7e9b7220dcfe5f22652188f159b6a550622a9bd160c6dac34a910ab2f8b0a30ce5ba4910e32 EBUILD alertmanager-0.19.0.ebuild 1389 BLAKE2B e4845bb46c400e9185c28f13b43432c177a8708bb08cbc36f27ea1c9cb90ca5c8d6172090dc84c156acd288b5f812b5a64ce1668f5aff318d4a59e60c583c329 SHA512 fa273caa4bc24e6cfb118b370605ae0513975c8184f1e14ce98f48fd036d10aa21f0e5b5c45393dbfee0e1f1002c03c3571c09ba1701c6a7fe8a2a0eb2b8802c -EBUILD alertmanager-0.21.0.ebuild 1100 BLAKE2B 8399e968c5543a8ee3c7301d372fdffb954bd3ce0d23830d654d557234a8007802509dd58faad9b8a152c0c0a4efb90ff22f29b1081308f484a7dc94cc46ad51 SHA512 7a9ddb85663a61eebb95be83a77a5adbcb9179564850dd6cb9e1f22adb23d09cc380c4f76ddc31c2bc9758645e3315d0864281b4863cca7444c7d7a84a2c5d4d +EBUILD alertmanager-0.21.0.ebuild 1087 BLAKE2B 2fb6c1f3912f0d6c317d4f74ea20b9e13a029349ac20f15cd5b8148a7b8f39ce17d6b71291e47a16eead0d5bf319ac4b6773eb301f8bb36f0a9144bf8283955b SHA512 454da87a83080f70aea747fc9ec3a3c3be2ba9e0ccecf869a0e8cb617e5d1942f186d009357a0fc35171e52b6764183194d126ebc6753f5b3870b762d3fedb90 MISC metadata.xml 336 BLAKE2B 2cab21f76be9803ce08848025fd889354e4595fe5195f36361a4b5a2f2bc2e8e3e0c697fef2933db48d178d10f838a960e7ad2a8ea74bae42ebe395a6d150484 SHA512 63a13c6b9bff1f75c79b2c0cf1cb16e4973d58e666e04e1ef50bb746caaea8e5358cb61a39c257c082b67264960dbcc78da5ae24dcad94d7e72f833483c8e5bd diff --git a/app-metrics/alertmanager/alertmanager-0.21.0.ebuild b/app-metrics/alertmanager/alertmanager-0.21.0.ebuild index 028f242a3a36..7fff854258f8 100644 --- a/app-metrics/alertmanager/alertmanager-0.21.0.ebuild +++ b/app-metrics/alertmanager/alertmanager-0.21.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -35,7 +35,7 @@ src_compile() { src_install() { dobin bin/* - dodoc {README,CHANGELOG,CONTRIBUTING}.md + dodoc {README,CHANGELOG}.md insinto /etc/alertmanager/ newins doc/examples/simple.yml config.yml.example keepdir /var/lib/alertmanager /var/log/alertmanager diff --git a/app-metrics/bind_exporter/Manifest b/app-metrics/bind_exporter/Manifest index 889b43cab8d5..39358464e931 100644 --- a/app-metrics/bind_exporter/Manifest +++ b/app-metrics/bind_exporter/Manifest @@ -1,7 +1,5 @@ AUX bind_exporter.confd 57 BLAKE2B dfffea2f2859b377d5132a2c56ace0260f2d272463c104144acea0a2489141d01e35f4899d53af1526fe0ca1ae760fef62c96a0b6849c8b8678b7693a53ac20f SHA512 54c5162993d488eecec2453b06b2cbedd5eb4599074cf43fda644e2faba4c35ad481840dbb8b05979bf1a0dcdff32edd9efa56bc779f264d81056793d1d00be0 AUX bind_exporter.initd 550 BLAKE2B fcb4eb3066023024b8605a2c9787ba7c8871d05d1b11a1ea97ebab91e403e21876c8b29136b114c6ceef29e9be79056accdde7061e13f615b1f55c25998b938e SHA512 1471a0644c1c2d5a242987638b6fa0576913b9dfbcf886ade42951b3cc71f632c210060a619637988c5239a3ff934c2073e2bd34b913abd9871eb028fd71e2e1 -DIST bind_exporter-0.2.0_p20190226.tar.gz 874497 BLAKE2B ce04a168be6844d43ed2c358aa6469d5dbae1730825e4c3c038805f4bbf071bfae2936a6a5341832939e3ed249e5d484f2ca0908ac0e717cd2b5ced496c44a49 SHA512 95a8ae6f7c6470345d5a5f7e4e36eae282e5ca74393dd4372342f44732b54a6cc977ae037d6d16ae4ce6a9ac526b2e01721f5468a6469c30ae60ca59dfec8d5a DIST bind_exporter-0.3.0.tar.gz 1796507 BLAKE2B a79b9e0d159d3deb83f1a040325ad34bc0d4ae50b6af205dce4ebf8d7152ccbd4b7d46fda40bf76db953996ddf4237ca13058250478b08cca51b8bea08ccc31b SHA512 762901a63a9493f852e5514429f55b10400931f0a77d2e11c7565e93e1ff759eb30d3bbc9278451bb9df358a983aa099bd55cf57241cf36187d2789c89a3852d -EBUILD bind_exporter-0.2.0_p20190226.ebuild 1555 BLAKE2B 690fa683e16713c3c6b927a658e4e5224987f55e0281bf935c4dad7c9b564f87cc7f3c28354c17cca400b21896ebf02060bf7566f0279f2046ab554d8f654866 SHA512 f525809082cb855c9d6b508cd5134fb3e3f94a0ba8945e98269482c8c21b40db99cc466d00ce8cc83202b2feab8ed67246553f43adb8f44c1ab0f7f8dcc1de12 EBUILD bind_exporter-0.3.0.ebuild 1400 BLAKE2B eb2a64a149ec29ca9ecc031670d00fbc894bc030f0dc85320ba9ccd994a1accf1e1f3a2604dc37821963a5507f0c8e71c91b22a0ab48df514e40c935b340c375 SHA512 6a1c67bf82f55e247289a3152024f23a95b748b7f7656dc8e9975c06f7928c3c90ba51e7d9f343dc970997cfdca064558eb30854cf646c1b517bbf0404b2c509 MISC metadata.xml 339 BLAKE2B 69da31cf1303e569cebeac7ff77b09d2cf2c0790b53a519f8bbb52df39b813704b4b7929da94b88c5aedded5048e5d33248f242d8a59eec4a7c09b91b2ebdcea SHA512 dccb1013f9acacb8a639829d46d8f71328591725086e64a043f3750f0c95502772a429e0bb6f44772322fb4087e03f021ac60f04f153372b9292e8507e18c520 diff --git a/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild b/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild deleted file mode 100644 index e9417f245b26..000000000000 --- a/app-metrics/bind_exporter/bind_exporter-0.2.0_p20190226.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/digitalocean/bind_exporter" -EXPORTER_COMMIT="9289b40af62a455ebd587ed4701dd543f4cc5877" -ARCHIVE_URI="https://${EGO_PN}/archive/${EXPORTER_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus exporter for BIND" -HOMEPAGE="https://github.com/digitalocean/bind_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0 BSD MIT" -SLOT="0" -IUSE="" - -DEPEND="dev-util/promu" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "/-s$/d" -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - mkdir -p bin || die - GOPATH="${S}" promu build -v --prefix bin || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin bin/${PN} - dodoc {README,CHANGELOG}.md - popd || die - keepdir /var/log/${PN} - fowners ${PN}:${PN} /var/log/${PN} - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} - -pkg_postinst() { - elog "Make sure BIND was built with libxml2 support. You can check with the" - elog "following command: named -V | grep libxml2." - elog "Configure BIND to open a statistics channel. It's recommended to run" - elog "the bind_exporter next to BIND, so it's only necessary to open a port" - elog "locally." - elog "" - elog "statistics-channels {" - elog "inet 127.0.0.1 port 8053 allow { 127.0.0.1; };" - elog "};" -} diff --git a/app-metrics/blackbox_exporter/Manifest b/app-metrics/blackbox_exporter/Manifest index 83305ce0fece..824263277d95 100644 --- a/app-metrics/blackbox_exporter/Manifest +++ b/app-metrics/blackbox_exporter/Manifest @@ -3,6 +3,8 @@ AUX blackbox_exporter.initd 615 BLAKE2B fce98f2c0740db2309d0395cf1e7e3f8b3b305c6 AUX blackbox_exporter.logrotated 107 BLAKE2B 255c64f5f0cee8b0b7a3bf2b3a55725f87f3f8067f840a94e9c70819820d1d42b3c2a7727323edf00d32797aab45060d0033fb5d5762263d502e4f0f1ad3d492 SHA512 2bb4782f925f9f416addf9f0a20ada0f0b61d964667eb8114b5fbdc758f69c07c91bf8e6fd18758d3ec21a7e41c931bd9bf42d16d3dfc45e2718126ffb0f21a6 DIST blackbox_exporter-0.15.1.tar.gz 2120525 BLAKE2B c21a621dce663ccbc184c87b66e894ddc6a94bee9bbd2b9fb432a4d349afb35410f07ad150e946c5f8eb9ec8e6e7f2e6d4cbcafe118e8b2efe34902fbd0bf38a SHA512 2c7d0989bc70982a0fd528c7c6ed5ec6686f5e93db0a90db2b06e4e578503443da0750aaa2d6a01ae4fcd4c722eef522c0e06b019aa59a2eb837f233e317d4e2 DIST blackbox_exporter-0.16.0.tar.gz 2121367 BLAKE2B 92c55dbc3f47d7a2d8c37ad116857dd1d7314a6684d9f228039b09cc086edf72bdf5e0c2cc770ce45d687c45a38f6de72e612c0491ec66f836bed28b75b2e5a9 SHA512 85103b62e345ab5d59626e658047ac75649f9ef991c9bbaff32b95ea75ec2da2bf916573e664520766158805c6cf24163f2850c885a594d32b4f9c4c9dbed1a8 +DIST blackbox_exporter-0.17.0.tar.gz 2615179 BLAKE2B 3746ceef8ffdfe017921a78873c09f196d82c3874aa24a0795b56d8858c355f2a4f9f557c65708037358fdbe8445a680c56a3725e7af4d634ef9396419bb4221 SHA512 9e79d083c5c8caebbc19b6feef04dd189bc91a72dcb3aa946a96543fbe28ae2c49cafeed3f42618747661421897adc17988ffc6cf0d7054cf0a385b85eeafc61 EBUILD blackbox_exporter-0.15.1.ebuild 1559 BLAKE2B c27b5940d73adecf5fb91c804cca2aa01ae303cf6d828ebf5af883d4b16cd7fc99ce115b29134116911e63a2ad676b6b63ed927998612d1c5825e81a20ed629c SHA512 b2b434684e1303c98ae868161cbc65814be5324c2593ba8e15988d3c1fc518e1ef0954ff369e5a3f48f1e069962985cbd60672de90068c65c9787e921a27d9f1 EBUILD blackbox_exporter-0.16.0.ebuild 1559 BLAKE2B dbbca41eec9dd2cec880afdc6c8246e59264aa065640779621a585ae154ee3467102ef1eaf71c3efca486392f170ca43f387075a14417bf8b933fb78588003f2 SHA512 eb15af2b26b2bdbb044cbbdccc221c8d71eecb079840d0c80948b8a9d7fd6ec7d69adada283107446365337b88d6c29397b8dc288188afca247fafe9e5eccd7b +EBUILD blackbox_exporter-0.17.0.ebuild 1306 BLAKE2B a32595440f64d2b8f808d97593aa45acc9c1b270986db22a4373fdea496e8c58b12064d05ce90352a7242f48a33d2e3f21e0469a58cbaecd2342723341f7e174 SHA512 192bf5c4bbcead884f60d4b09bb9c16bcaa71585d8b6fab4a32abb578071200c30aa4dd1c0f4c7b82853c14777715f83948c5f88cd7c3ebdda950459a451c585 MISC metadata.xml 341 BLAKE2B 30f7b2aac9cbea1444b1555a5a1279a07dfce5908bf507dff2d032daf3ecab8b98588d6e916d3e3e3cc04a5c70ed287504913f685e30aa87dcaad96abebff506 SHA512 65a7d67649765acc64976c511fc26f6f35c172538b03945367bcab3ed9c9766130c2a72a581a2e5b62068c7cf31d9ec2f39c3d7b5f580060a9e9c99035f7663f diff --git a/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild b/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild new file mode 100644 index 000000000000..9d7d5ee5b741 --- /dev/null +++ b/app-metrics/blackbox_exporter/blackbox_exporter-0.17.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit fcaps go-module user + +EGO_PN=github.com/prometheus/blackbox_exporter +MY_PV="v${PV/_rc/-rc.}" +GIT_COMMIT=1bc7680 + +DESCRIPTION="Prometheus exporter for blackbox probing via HTTP, HTTPS, DNS, TCP and ICMP" +HOMEPAGE="https://github.com/prometheus/blackbox_exporter" +SRC_URI="https://github.com/prometheus/blackbox_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" + +FILECAPS=( + cap_net_raw usr/bin/blackbox_exporter +) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc {README,CONFIGURATION}.md blackbox.yml + insinto /etc/blackbox_exporter + newins example.yml blackbox.yml.example + keepdir /var/lib/blackbox_exporter /var/log/blackbox_exporter + fowners ${PN}:${PN} /var/lib/blackbox_exporter /var/log/blackbox_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} diff --git a/app-metrics/collectd/Manifest b/app-metrics/collectd/Manifest index 885cf9bb17c8..3643cba865e0 100644 --- a/app-metrics/collectd/Manifest +++ b/app-metrics/collectd/Manifest @@ -1,9 +1,10 @@ +AUX collectd-5.11.0-libsigrok-0.4+.patch 5447 BLAKE2B 6de12feb7226ae3a16a89f3282b54d363cc64e176fe4f9cc9a6bfef0874bca0447a8d21689f8d3c91b2840d12ba4abd3c6f38cfc0b4e885582cc42c81865a1f8 SHA512 a7c99664f632eaff35eef18a0bd8da5bfa39812d223eb6449acd0fa871c5d43a401ed48b1003275a2ae0362b92c69ab52b46af39fa69dd7e4cc2b2969dc4b2de AUX collectd.confd-r2 2001 BLAKE2B fbf1a64aab6ec60111553466c3a8b725200ab13d0e09c1ba1d71e68213e8f978c3cad0dfc5eb2c536ced8213f172804f0596b3494f9b42b0cacf3432105cab5a SHA512 729f2b4e06c4a8c95d32c03c6f3f292eaa4895780ace180b74fcf139a949e9c28a2b3ae823bdebec0014f9b4d919adb399bc7f019c68c0e268b263326959edb7 AUX collectd.initd-r2 1843 BLAKE2B ccb12e55de72565aa7b6bb0f2c4e7a5a6d15ff23d5bc75e9cb36e1f2dba85b3b2b587336f976059af165ae89333d681ffe0cf53bbcd8098eaeff75228cb80b68 SHA512 8f0a73f0f2b2280c0f2e35894a9dfa38af937930eb090eab52cbe81089a146bd974f6a2a3062b7147611f9c13b770a945a1a9228a026405d31578e27a3fd3b80 AUX collectd.logrotate 115 BLAKE2B ce2a79787096b04af6ecd128633dde68fb868a02cc1d246c3e512c1733133fcc8da41b3ab2a0051b4da78c53e6629b2ad8085872dec1d4c28e397c88cafe3a90 SHA512 87ec01784d415f00834c2b20614f11f7e08b70f88d7c87509a8b8fd7e1af8758565b9ed6a6840af7bf1006cb941a61a6ff4f3176f6ded722728f24483b08bc8e AUX collectd.tmpfile 39 BLAKE2B 0d1ee2f02e539e854b62b47032308d08505fa31d8428e98f8d150c924201074c5edae22eea3990edf3a7837f1473193fe009a501645bf064638c532ec53a36cc SHA512 55fb70da9ece74b143c3e971b890954842230691039f8ad2240cc4c8d699e4e7a21efcbfd0b3cb2503e90af0bbdd0c7d886e09baf9fc86ec26c115a0bce6a668 DIST collectd-5.10.0.tar.bz2 1856377 BLAKE2B d4c011c5d2d9bfcf8400a35ca92f0b8c82fd58c3201b1b57a6b48c98af63efaab03c5fb1144bae28e7661743626871eaa962959929ff7fcdd5778b72c7054c4e SHA512 1296085fb19bba0c7b7d8684ec877851158b25c9f7b58fc3ae602fba7d7dc718876e730e1cdba96d39101cc5452705bb3445aaee717b219025ae816299b6a3c5 DIST collectd-5.11.0.tar.bz2 1851663 BLAKE2B b07c727ed553b3d11967da734a98fda753794be199377b08a2780b7d3f79acef345f160d930dda68cd12aa0949bbc0aee6ca5e7ae01e16a5e392a4a73e272d1d SHA512 87671545e3d01770c204ba4439265d1c0add6a105bf04ff02dc04db3731fd933d32ecb9b0dc15f2e504d70c3e421a64cf19728c897aa4fb1fda86e393ffc15bf -EBUILD collectd-5.10.0.ebuild 19527 BLAKE2B bf575f7baf55daa3cffaa4364314173633953fc000c5e3b8e7d148dff55b1682add29042fe2e0822dc8083ebd7fa255515f3f79f3f5f841741633af224918705 SHA512 e6b7526484732b452eba2d39d23e37e97b75a077531584abd00c544f0c935e7324988a96bf991fa403dfb2b757b63dc71026f2a4d864f2abe500d95776913c5f -EBUILD collectd-5.11.0-r2.ebuild 20112 BLAKE2B 000f4fa19daedd49bad9b7505c87b18c6ef6b277503fffb0a3c7e534b077cb68a745e32220d4936241aa816b7f04f41d581b37631b55d7bca33ff5afe02e07ca SHA512 05acb7c3fb06fc0987ea64206f12cf10f336b03eb52ab646770ac945241c132fdcb52f91d1a9a94862fb13634c0fb886954ab227e1157a956138cc939f191991 +EBUILD collectd-5.10.0.ebuild 19520 BLAKE2B e646e57372302d728b631cb1ed5f72dd80bfce4ca7a205a94ce2e519331af2da6b73b510ee664370dfddb7c7844bf0e9b745f6193072d805294aca574f85c426 SHA512 a46634c0e2c9b1635df9f8c3b506236687f9d2f65fb43c81a4706452e06300317a35218fe88fb7230a840f752356a171bb40000ef5c94989b250d1450b5d2e09 +EBUILD collectd-5.11.0-r3.ebuild 20165 BLAKE2B 45e097795910d4ba94f87ae1d229ff16d6fa506dea277d13c95c264ef86fe2bdf0b719aabff95b2a8648e8bab3471793a4de862463ad30759703912d6234ba5b SHA512 48a422500ad9a5c8a577a6b60987cee1898ec4e7cab67bed78f33579167457c9a16150217b0f0fba5d26ea95deca83e4bb905ee4cabdef899510eb4d5382c452 MISC metadata.xml 1515 BLAKE2B 5525766b822463f94f7c2cddbdf78b4c4ea5a473880a473d0b51481d948569cfc7f51bd2e74eb67065ab2be1b23e4fb7ee99512d018c6e6b5ac1ee7331eae9eb SHA512 51c17c16d27b722d729d036d67c562ab76e212dac9bcd004a7e43c2c5e041b8c46e74f9a130f30c2e18cc95ca1b367034246eff02cfaf55f6f9375ff836749e5 diff --git a/app-metrics/collectd/collectd-5.10.0.ebuild b/app-metrics/collectd/collectd-5.10.0.ebuild index 16fc096048b0..08653b81531b 100644 --- a/app-metrics/collectd/collectd-5.10.0.ebuild +++ b/app-metrics/collectd/collectd-5.10.0.ebuild @@ -56,7 +56,7 @@ COLLECTD_TESTED_PLUGINS="aggregation amqp apache apcups ascent battery bind memcachec memcached memory modbus mqtt multimeter mysql netlink network network nfs nginx notify_desktop notify_email notify_nagios ntpd numa nut olsrd onewire openldap openvpn oracle ovs_events - ovs_stats perl ping postgresql powerdns processes protocols python + ovs_stats perl ping postgresql powerdns processes protocols python redis routeros rrdcached rrdtool sensors serial sigrok smart snmp snmp_agent statsd swap sysevent syslog table tail tail_csv target_notification target_replace target_scale target_set tcpconns diff --git a/app-metrics/collectd/collectd-5.11.0-r2.ebuild b/app-metrics/collectd/collectd-5.11.0-r2.ebuild deleted file mode 100644 index 85a978ee3c47..000000000000 --- a/app-metrics/collectd/collectd-5.11.0-r2.ebuild +++ /dev/null @@ -1,549 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python3_{6,7,8} ) -JAVA_PKG_OPT_USE="collectd_plugins_java" - -inherit autotools fcaps flag-o-matic java-pkg-opt-2 linux-info multilib perl-functions python-single-r1 systemd tmpfiles user - -DESCRIPTION="Collects system statistics and provides mechanisms to store the values" - -HOMEPAGE="https://collectd.org/" -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" - -LICENSE="MIT GPL-2 GPL-2+ GPL-3 GPL-3+" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~x86" -IUSE="contrib debug java kernel_Darwin kernel_FreeBSD kernel_linux perl selinux static-libs udev xfs" - -# The plugin lists have to follow here since they extend IUSE - -# Plugins that don't build (e.g. dependencies not in Gentoo) -# apple_sensors: Requires libIOKit -# amqp1: Requires libqpid-proton -# aquaero: Requires aerotools-ng/libaquaero5 -# barometer: Requires libi2c (i2c_smbus_read_i2c_block_data) -# dpdkevents: Requires dpdk -# dpdkstat: Requires dpdk -# dpdk_telemetry: Requires dpdk -# grpc: Requires libgrpc -# intel_pmu: Requires libjevents (pmu-tools) -# intel_rdt: Requires libpqos from intel-cmt-cat project -# lpar: Requires libperfstat (AIX only) -# mic: Requires Intel Many Integrated Core Architecture API -# (part of Intel's Xeon Phi software) -# netapp: Requires libnetapp (http://communities.netapp.com/docs/DOC-1110) -# pf: Requires BSD packet filter -# pinba: Requires MySQL Pinba engine (http://pinba.org/) -# redfish: Requires libredfish -# tape: Requires libkstat (Solaris only) -# tokyotyrant: Requires tokyotyrant -# write_riemann: Requires riemann-c-client -# xmms: Requires libxmms (v1) -# zone: Solaris only... -COLLECTD_IMPOSSIBLE_PLUGINS="apple_sensors amqp1 aquaero barometer - dpdkevents dpdkstat dpdk_telemetry grpc intel_pmu intel_rdt lpar - mic netapp pf pinba redfish tape tokyotyrant write_riemann xmms zone" - -# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS -COLLECTD_TESTED_PLUGINS="aggregation amqp apache apcups ascent battery bind - buddyinfo capabilities ceph cgroups check_uptime chrony connectivity - conntrack contextswitch cpu cpufreq cpusleep csv curl curl_json - curl_xml dbi df disk dns drbd email entropy ethstat exec fhcount - filecount fscache gmond gps hddtemp hugepages interface ipc ipmi - iptables ipvs irq java lua load logfile logparser log_logstash - madwifi match_empty_counter match_hashed match_regex match_timediff - match_value mbmon mcelog md memcachec memcached memory modbus mqtt - multimeter mysql netlink network network nfs nginx notify_desktop - notify_email notify_nagios ntpd numa nut olsrd onewire openldap - openvpn oracle ovs_events ovs_stats pcie_errors perl ping postgresql - powerdns procevent processes protocols python python redis routeros - rrdcached rrdtool sensors serial sigrok slurm smart snmp snmp_agent - statsd swap synproxy sysevent syslog table tail tail_csv - target_notification target_replace target_scale target_set tcpconns - teamspeak2 ted thermal threshold turbostat ubi unixsock uptime users - uuid varnish virt vmem vserver wireless write_graphite write_http - write_influxdb_udp write_kafka write_log write_mongodb write_prometheus - write_redis write_sensu write_stackdriver write_syslog write_tsdb - xencpu zfs_arc zookeeper" - -COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS}" - -COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} - -for plugin in ${COLLECTD_ALL_PLUGINS}; do - IUSE="${IUSE} collectd_plugins_${plugin}" -done -unset plugin - -# Now come the dependencies. - -COMMON_DEPEND=" - dev-libs/libgcrypt:= - dev-libs/libltdl:0= - sys-libs/libcap - perl? ( dev-lang/perl:=[ithreads] ) - udev? ( virtual/udev ) - xfs? ( sys-fs/xfsprogs ) - collectd_plugins_amqp? ( net-libs/rabbitmq-c ) - collectd_plugins_apache? ( net-misc/curl:0= ) - collectd_plugins_ascent? ( net-misc/curl:0= dev-libs/libxml2:2= ) - collectd_plugins_bind? ( net-misc/curl:0= dev-libs/libxml2:2= ) - collectd_plugins_ceph? ( dev-libs/yajl:= ) - collectd_plugins_capabilities? ( dev-libs/jansson net-libs/libmicrohttpd:= ) - collectd_plugins_connectivity? ( dev-libs/yajl:= net-libs/libmnl ) - collectd_plugins_curl? ( net-misc/curl:0= ) - collectd_plugins_curl_json? ( net-misc/curl:0= dev-libs/yajl:= ) - collectd_plugins_curl_xml? ( net-misc/curl:0= dev-libs/libxml2:2= ) - collectd_plugins_dbi? ( dev-db/libdbi ) - collectd_plugins_dns? ( net-libs/libpcap ) - collectd_plugins_gmond? ( sys-cluster/ganglia ) - collectd_plugins_gps? ( sci-geosciences/gpsd:= ) - collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) - collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13:0= ) - collectd_plugins_log_logstash? ( dev-libs/yajl:= ) - collectd_plugins_lua? ( dev-lang/lua:0= ) - collectd_plugins_memcachec? ( dev-libs/libmemcached ) - collectd_plugins_modbus? ( dev-libs/libmodbus ) - collectd_plugins_mqtt? ( app-misc/mosquitto ) - collectd_plugins_mysql? ( dev-db/mysql-connector-c:= ) - collectd_plugins_netlink? ( net-libs/libmnl ) - collectd_plugins_nginx? ( net-misc/curl:0= ) - collectd_plugins_notify_desktop? ( x11-libs/libnotify ) - collectd_plugins_notify_email? ( net-libs/libesmtp ) - collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 ) - collectd_plugins_openldap? ( net-nds/openldap ) - collectd_plugins_onewire? ( >=sys-fs/owfs-3.1:= ) - collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) - collectd_plugins_ovs_events? ( dev-libs/yajl:= ) - collectd_plugins_ovs_stats? ( dev-libs/yajl:= ) - collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) - collectd_plugins_ping? ( net-libs/liboping ) - collectd_plugins_postgresql? ( dev-db/postgresql:= ) - collectd_plugins_procevent? ( dev-libs/yajl:= ) - collectd_plugins_python? ( ${PYTHON_DEPS} ) - collectd_plugins_redis? ( dev-libs/hiredis:= ) - collectd_plugins_routeros? ( net-libs/librouteros ) - collectd_plugins_rrdcached? ( net-analyzer/rrdtool:= ) - collectd_plugins_rrdtool? ( net-analyzer/rrdtool:= ) - collectd_plugins_sensors? ( sys-apps/lm-sensors:= ) - collectd_plugins_sigrok? ( =dev-libs/librdkafka-0.9.0.99:= dev-libs/yajl:= ) - collectd_plugins_write_mongodb? ( >=dev-libs/mongo-c-driver-1.8.2:= ) - collectd_plugins_write_prometheus? ( >=dev-libs/protobuf-c-1.2.1-r1:= net-libs/libmicrohttpd:= ) - collectd_plugins_write_redis? ( dev-libs/hiredis:= ) - collectd_plugins_write_stackdriver? ( net-misc/curl:0= dev-libs/yajl:= ) - collectd_plugins_xencpu? ( app-emulation/xen-tools:= ) - - kernel_FreeBSD? ( - collectd_plugins_disk? ( sys-libs/libstatgrab:= ) - collectd_plugins_interface? ( sys-libs/libstatgrab:= ) - collectd_plugins_load? ( sys-libs/libstatgrab:= ) - collectd_plugins_memory? ( sys-libs/libstatgrab:= ) - collectd_plugins_swap? ( sys-libs/libstatgrab:= ) - collectd_plugins_users? ( sys-libs/libstatgrab:= ) - )" - -# Enforcing !=sys-kernel/linux-headers-4.5 > due to #577846 -DEPEND="${COMMON_DEPEND} - collectd_plugins_iptables? ( || ( <=sys-kernel/linux-headers-4.4 >=sys-kernel/linux-headers-4.6 ) ) - collectd_plugins_java? ( >=virtual/jdk-1.6 ) - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - collectd_plugins_java? ( >=virtual/jre-1.6 ) - collectd_plugins_syslog? ( virtual/logger ) - selinux? ( sec-policy/selinux-collectd )" - -REQUIRED_USE=" - collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} ) - collectd_plugins_smart? ( udev ) - contrib? ( perl )" - -# @FUNCTION: collectd_plugin_kernel_linux -# @DESCRIPTION: -# USAGE: -# kernel_options is a list of kernel configurations options; the check tests whether at least -# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message -# is emitted. -collectd_plugin_kernel_linux() { - local multi_opt opt - if has ${1} ${COLLECTD_ALL_PLUGINS}; then - if use collectd_plugins_${1}; then - for opt in ${2}; do - if linux_chkconfig_present ${opt}; then - return 0; - fi - done - multi_opt=${2//\ /\ or\ } - case ${3} in - (info) - elog "The ${1} plugin can use kernel features that are disabled now; enable ${multi_opt} in your kernel" - ;; - (warn) - ewarn "The ${1} plugin uses kernel features that are disabled now; enable ${multi_opt} in your kernel" - ;; - (error) - eerror "The ${1} plugin needs kernel features that are disabled now; enable ${multi_opt} in your kernel" - ;; - (*) - die "function collectd_plugin_kernel_linux called with invalid third argument" - ;; - esac - fi - fi -} - -collectd_linux_kernel_checks() { - if ! linux_chkconfig_present PROC_FS; then - ewarn "/proc file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable PROC_FS in your kernel" - fi - - if ! linux_chkconfig_present SYSFS; then - ewarn "/sys file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable SYSFS in your kernel" - fi - - # battery.c: /proc/pmu/battery_%i - # battery.c: /proc/acpi/battery - collectd_plugin_kernel_linux battery ACPI_BATTERY warn - - # cgroups.c: /sys/fs/cgroup/ - collectd_plugin_kernel_linux cgroups CGROUPS warn - - # cpufreq.c: /sys/devices/system/cpu/cpu%d/cpufreq/ - collectd_plugin_kernel_linux cpufreq SYSFS warn - collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn - - # drbd.c: /proc/drbd - collectd_plugin_kernel_linux drbd BLK_DEV_DRBD warn - - # conntrack.c: /proc/sys/net/netfilter/* - collectd_plugin_kernel_linux conntrack NETFILTER warn - - # fscache.c: /proc/fs/fscache/stats - collectd_plugin_kernel_linux fscache FSCACHE warn - - # nfs.c: /proc/net/rpc/nfs - # nfs.c: /proc/net/rpc/nfsd - collectd_plugin_kernel_linux nfs NFS_COMMON warn - - # serial.c: /proc/tty/driver/serial - # serial.c: /proc/tty/driver/ttyS - collectd_plugin_kernel_linux serial SERIAL_CORE warn - - # swap.c: /proc/meminfo - collectd_plugin_kernel_linux swap SWAP warn - - # thermal.c: /proc/acpi/thermal_zone - # thermal.c: /sys/class/thermal - collectd_plugin_kernel_linux thermal ACPI_THERMAL warn - - # turbostat.c: /dev/cpu/%d/msr - collectd_plugin_kernel_linux turbostat X86_MSR warn - - # vmem.c: /proc/vmstat - collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn - - # vserver.c: /proc/virtual - collectd_plugin_kernel_linux vserver VSERVER warn - - # uuid.c: /sys/hypervisor/uuid - collectd_plugin_kernel_linux uuid SYSFS info - - # wireless.c: /proc/net/wireless - collectd_plugin_kernel_linux wireless "WIRELESS MAC80211 IEEE80211" warn - - # zfs_arc.c: /proc/spl/kstat/zfs/arcstats - collectd_plugin_kernel_linux zfs_arc "SPL ZFS" warn -} - -pkg_setup() { - if use kernel_linux; then - linux-info_pkg_setup - - if linux_config_exists; then - einfo "Checking your linux kernel configuration:" - collectd_linux_kernel_checks - else - elog "Cannot find a linux kernel configuration. Continuing anyway." - fi - fi - - if use collectd_plugins_java; then - java-pkg-opt-2_pkg_setup - fi - - use collectd_plugins_python && python-single-r1_pkg_setup - - enewgroup collectd - enewuser collectd -1 -1 /var/lib/collectd collectd -} - -src_prepare() { - default - - # There's some strange prefix handling in the default config file, resulting in - # paths like "/usr/var/..." - sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die - - # Adjust upstream's systemd unit - # - Get rid of EnvironmentFile directive; These files don't exist on Gentoo! - # - Add User=collectd to run collectd as user "collectd" per default - sed -i \ - -e '/^EnvironmentFile=.*/d' \ - -e '/^\[Service\]/aUser=collectd' \ - contrib/systemd.${PN}.service || die - - eautoreconf -} - -src_configure() { - # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here - # should work independent of the operating system. - - local linux_plugins="barometer battery cpu cpufreq disk - drbd entropy ethstat hugepages interface iptables - ipvs irq ipc load memory md netlink nfs numa processes - serial swap tcpconns thermal turbostat users vmem wireless - zfc_arc" - - local need_libstatgrab=0 - local libstatgrab_plugins="cpu disk interface load memory swap users" - local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfc_arc" - - local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" - - local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" - local myos_plugins="" - if use kernel_linux; then - einfo "Enabling Linux plugins." - myos_plugins=${linux_plugins} - elif use kernel_FreeBSD; then - einfo "Enabling FreeBSD plugins." - myos_plugins=${bsd_plugins} - elif use kernel_Darwin; then - einfo "Enabling Darwin plugins." - myos_plugins=${darwin_plugins} - fi - - local myconf="--disable-werror" - - # Do we debug? - myconf+=" $(use_enable debug)" - - # udev support? - # Required for smart plugin via REQUIRED_USE; Optional for disk plugin - if use udev; then - myconf+=" --with-libudev" - else - myconf+=" --without-libudev" - fi - - local plugin - - # Disable what needs to be disabled. - for plugin in ${COLLECTD_DISABLED_PLUGINS}; do - if [[ "${plugin}" == 'dpdkstat' ]]; then - myconf+=" --without-libdpdk" - else - myconf+=" --disable-${plugin}" - fi - done - - # Set enable/disable for each single plugin. - for plugin in ${COLLECTD_ALL_PLUGINS}; do - if has ${plugin} ${osdependent_plugins}; then - # plugin is os-dependent ... - if has ${plugin} ${myos_plugins}; then - # ... and available in this os - myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" - # ... must we link against libstatgrab? Bug #541518 - if use kernel_FreeBSD && has ${plugin} ${libstatgrab_plugins}; then - einfo "We must link against libstatgrab due to plugin \"${plugin}\" ..." - need_libstatgrab=1 - fi - else - # ... and NOT available in this os - if use collectd_plugins_${plugin}; then - ewarn "You try to enable the ${plugin} plugin, but it is not available for this" - ewarn "kernel. Disabling it automatically." - fi - myconf+=" --disable-${plugin}" - fi - elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then - if use collectd_plugins_perl && ! use perl; then - ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" - myconf+= --disable-perl - else - myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" - fi - else - myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" - fi - done - - if [ "${need_libstatgrab}" -eq 1 ]; then - myconf+=" --with-libstatgrab" - else - myconf+=" --without-libstatgrab" - fi - - # JAVA_HOME is set by eclasses. - if use collectd_plugins_java; then - myconf+=" --with-java" - fi - - # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. - # lots of libs are only needed for plugins, if they are disabled, also disable the lib - use collectd_plugins_iptables || myconf+=" --with-libiptc=no" - use collectd_plugins_openldap || myconf+=" --with-libldap=no" - use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no" - use collectd_plugins_smart || myconf+=" --with-libatasmart=no" - use collectd_plugins_gps || myconf+=" --with-libgps=no" - - if use perl; then - myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" - else - myconf+=" --without-perl-bindings" - fi - - # No need for v5upgrade - myconf+=" --disable-target_v5upgrade" - - # Python - if use collectd_plugins_python; then - myconf+=" --with-libpython=yes" - export PYTHON_CONFIG=$(python_get_PYTHON_CONFIG) - else - myconf+=" --with-libpython=no" - fi - - # XFS support - myconf+=" $(use_enable xfs)" - - # Finally, run econf. - KERNEL_DIR="${KERNEL_DIR}" econf --config-cache \ - $(use_enable static-libs static) \ - --localstatedir=/var ${myconf} -} - -src_install() { - emake DESTDIR="${D%/}" install - - perl_delete_localpod - - find "${ED}"usr/ -name "*.la" -delete || die - - if use collectd_plugins_java; then - java-pkg_regjar "${ED}"usr/share/${PN}/java/*.jar - fi - - fowners root:collectd /etc/collectd.conf - fperms u=rw,g=r,o= /etc/collectd.conf - - dodoc AUTHORS ChangeLog README - - if use contrib ; then - insinto /usr/share/${PN} - doins -r contrib - fi - - keepdir /var/lib/${PN} - fowners collectd:collectd /var/lib/${PN} - - newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} - systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service - - insinto /etc/logrotate.d - newins "${FILESDIR}/${PN}.logrotate" ${PN} - - newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf - - sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":#PIDFile "/run/collectd.pid":' "${ED}"etc/collectd.conf || die - sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/run/collectd/collectd.socket":' "${ED}"etc/collectd.conf || die - sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# \n# Globals true\n# :' "${ED}"etc/collectd.conf || die - sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# \n# Globals true\n# :' "${ED}"etc/collectd.conf || die -} - -pkg_postinst() { - tmpfiles_process "${PN}.conf" - - if use filecaps; then - local caps=() - use collectd_plugins_ceph && caps+=('CAP_DAC_OVERRIDE') - use collectd_plugins_exec && caps+=('CAP_SETUID' 'CAP_SETGID') - use collectd_plugins_iptables && caps+=('CAP_NET_ADMIN') - use collectd_plugins_filecount && caps+=('CAP_DAC_READ_SEARCH') - - if use collectd_plugins_dns || use collectd_plugins_ping; then - caps+=('CAP_NET_RAW') - fi - - if use collectd_plugins_turbostat || use collectd_plugins_smart; then - caps+=('CAP_SYS_RAWIO') - fi - - if [ ${#caps[@]} -gt 0 ]; then - local caps_str=$(IFS=","; echo "${caps[*]}") - fcaps ${caps_str} usr/sbin/collectd - elog "Capabilities for ${EROOT}usr/sbin/collectd set to:" - elog " ${caps_str}+EP" - elog - - local systemd_unit="$(systemd_get_systemunitdir)/collectd.service" - if [[ -e "${systemd_unit}" ]]; then - caps_str="${caps[*]}" - sed -i -e "s:^CapabilityBoundingSet=.*:CapabilityBoundingSet=${caps_str}:" "${systemd_unit}" || \ - die "Failed to set CapabilityBoundingSet in '${systemd_unit}'" - - elog "CapabilityBoundingSet in '${systemd_unit}'" - elog "updated to match capabilities set above." - elog - else - if has_version "sys-apps/systemd"; then - # Bug 596852 - ewarn "Failed to update CapabilityBoundingSet in '${systemd_unit}'" - ewarn "because unit was not found. Please file a bug about this." - fi - fi - fi - fi - - elog "Note: Collectd is only the collector." - elog " You need to install 'data' sources (applications) locally or" - elog " remotely on your own." - - elog - elog "Collectd is configured to run as unprivileged user by default." - elog "You may want to revisit the configuration." - elog - - if use collectd_plugins_email; then - ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." - fi - - if use collectd_plugins_smart; then - elog "" - elog "If you are using smart plugin and don't run collectd as root make sure" - elog "that the collectd user is allowed to access the disk you want to monitor" - elog "(can be done via udev rule for example) and that collectd has the required" - elog "capabilities set (which is the default when package was emerged with" - elog "'filecaps' USE flag set)." - fi - - if use contrib; then - elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," - elog "dev-perl/CGI, dev-perl/Config-General and net-analyzer/rrdtool[perl] to be installed." - fi -} diff --git a/app-metrics/collectd/collectd-5.11.0-r3.ebuild b/app-metrics/collectd/collectd-5.11.0-r3.ebuild new file mode 100644 index 000000000000..a455ee29e466 --- /dev/null +++ b/app-metrics/collectd/collectd-5.11.0-r3.ebuild @@ -0,0 +1,551 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python3_{6,7,8} ) +JAVA_PKG_OPT_USE="collectd_plugins_java" + +inherit autotools fcaps flag-o-matic java-pkg-opt-2 linux-info multilib perl-functions python-single-r1 systemd tmpfiles user + +DESCRIPTION="Collects system statistics and provides mechanisms to store the values" + +HOMEPAGE="https://collectd.org/" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="MIT GPL-2 GPL-2+ GPL-3 GPL-3+" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~x86" +IUSE="contrib debug java kernel_Darwin kernel_FreeBSD kernel_linux perl selinux static-libs udev xfs" + +# The plugin lists have to follow here since they extend IUSE + +# Plugins that don't build (e.g. dependencies not in Gentoo) +# apple_sensors: Requires libIOKit +# amqp1: Requires libqpid-proton +# aquaero: Requires aerotools-ng/libaquaero5 +# barometer: Requires libi2c (i2c_smbus_read_i2c_block_data) +# dpdkevents: Requires dpdk +# dpdkstat: Requires dpdk +# dpdk_telemetry: Requires dpdk +# grpc: Requires libgrpc +# intel_pmu: Requires libjevents (pmu-tools) +# intel_rdt: Requires libpqos from intel-cmt-cat project +# lpar: Requires libperfstat (AIX only) +# mic: Requires Intel Many Integrated Core Architecture API +# (part of Intel's Xeon Phi software) +# netapp: Requires libnetapp (http://communities.netapp.com/docs/DOC-1110) +# pf: Requires BSD packet filter +# pinba: Requires MySQL Pinba engine (http://pinba.org/) +# redfish: Requires libredfish +# tape: Requires libkstat (Solaris only) +# tokyotyrant: Requires tokyotyrant +# write_riemann: Requires riemann-c-client +# xmms: Requires libxmms (v1) +# zone: Solaris only... +COLLECTD_IMPOSSIBLE_PLUGINS="apple_sensors amqp1 aquaero barometer + dpdkevents dpdkstat dpdk_telemetry grpc intel_pmu intel_rdt lpar + mic netapp pf pinba redfish tape tokyotyrant write_riemann xmms zone" + +# Plugins that have been (compile) tested and can be enabled via COLLECTD_PLUGINS +COLLECTD_TESTED_PLUGINS="aggregation amqp apache apcups ascent battery bind + buddyinfo capabilities ceph cgroups check_uptime chrony connectivity + conntrack contextswitch cpu cpufreq cpusleep csv curl curl_json + curl_xml dbi df disk dns drbd email entropy ethstat exec fhcount + filecount fscache gmond gps hddtemp hugepages interface ipc ipmi + iptables ipvs irq java lua load logfile logparser log_logstash + madwifi match_empty_counter match_hashed match_regex match_timediff + match_value mbmon mcelog md memcachec memcached memory modbus mqtt + multimeter mysql netlink network network nfs nginx notify_desktop + notify_email notify_nagios ntpd numa nut olsrd onewire openldap + openvpn oracle ovs_events ovs_stats pcie_errors perl ping postgresql + powerdns procevent processes protocols python redis routeros + rrdcached rrdtool sensors serial sigrok slurm smart snmp snmp_agent + statsd swap synproxy sysevent syslog table tail tail_csv + target_notification target_replace target_scale target_set tcpconns + teamspeak2 ted thermal threshold turbostat ubi unixsock uptime users + uuid varnish virt vmem vserver wireless write_graphite write_http + write_influxdb_udp write_kafka write_log write_mongodb write_prometheus + write_redis write_sensu write_stackdriver write_syslog write_tsdb + xencpu zfs_arc zookeeper" + +COLLECTD_DISABLED_PLUGINS="${COLLECTD_IMPOSSIBLE_PLUGINS}" + +COLLECTD_ALL_PLUGINS=${COLLECTD_TESTED_PLUGINS} + +for plugin in ${COLLECTD_ALL_PLUGINS}; do + IUSE="${IUSE} collectd_plugins_${plugin}" +done +unset plugin + +# Now come the dependencies. + +COMMON_DEPEND=" + dev-libs/libgcrypt:= + dev-libs/libltdl:0= + sys-libs/libcap + perl? ( dev-lang/perl:=[ithreads] ) + udev? ( virtual/udev ) + xfs? ( sys-fs/xfsprogs ) + collectd_plugins_amqp? ( net-libs/rabbitmq-c ) + collectd_plugins_apache? ( net-misc/curl:0= ) + collectd_plugins_ascent? ( net-misc/curl:0= dev-libs/libxml2:2= ) + collectd_plugins_bind? ( net-misc/curl:0= dev-libs/libxml2:2= ) + collectd_plugins_ceph? ( dev-libs/yajl:= ) + collectd_plugins_capabilities? ( dev-libs/jansson net-libs/libmicrohttpd:= ) + collectd_plugins_connectivity? ( dev-libs/yajl:= net-libs/libmnl ) + collectd_plugins_curl? ( net-misc/curl:0= ) + collectd_plugins_curl_json? ( net-misc/curl:0= dev-libs/yajl:= ) + collectd_plugins_curl_xml? ( net-misc/curl:0= dev-libs/libxml2:2= ) + collectd_plugins_dbi? ( dev-db/libdbi ) + collectd_plugins_dns? ( net-libs/libpcap ) + collectd_plugins_gmond? ( sys-cluster/ganglia ) + collectd_plugins_gps? ( sci-geosciences/gpsd:= ) + collectd_plugins_ipmi? ( >=sys-libs/openipmi-2.0.16-r1 ) + collectd_plugins_iptables? ( >=net-firewall/iptables-1.4.13:0= ) + collectd_plugins_log_logstash? ( dev-libs/yajl:= ) + collectd_plugins_lua? ( dev-lang/lua:0= ) + collectd_plugins_memcachec? ( dev-libs/libmemcached ) + collectd_plugins_modbus? ( dev-libs/libmodbus ) + collectd_plugins_mqtt? ( app-misc/mosquitto ) + collectd_plugins_mysql? ( dev-db/mysql-connector-c:= ) + collectd_plugins_netlink? ( net-libs/libmnl ) + collectd_plugins_nginx? ( net-misc/curl:0= ) + collectd_plugins_notify_desktop? ( x11-libs/libnotify ) + collectd_plugins_notify_email? ( net-libs/libesmtp ) + collectd_plugins_nut? ( >=sys-power/nut-2.7.2-r2 ) + collectd_plugins_openldap? ( net-nds/openldap ) + collectd_plugins_onewire? ( >=sys-fs/owfs-3.1:= ) + collectd_plugins_oracle? ( dev-db/oracle-instantclient-basic ) + collectd_plugins_ovs_events? ( dev-libs/yajl:= ) + collectd_plugins_ovs_stats? ( dev-libs/yajl:= ) + collectd_plugins_perl? ( dev-lang/perl:=[ithreads] ) + collectd_plugins_ping? ( net-libs/liboping ) + collectd_plugins_postgresql? ( dev-db/postgresql:= ) + collectd_plugins_procevent? ( dev-libs/yajl:= ) + collectd_plugins_python? ( ${PYTHON_DEPS} ) + collectd_plugins_redis? ( dev-libs/hiredis:= ) + collectd_plugins_routeros? ( net-libs/librouteros ) + collectd_plugins_rrdcached? ( net-analyzer/rrdtool:= ) + collectd_plugins_rrdtool? ( net-analyzer/rrdtool:= ) + collectd_plugins_sensors? ( sys-apps/lm-sensors:= ) + collectd_plugins_sigrok? ( >=sci-libs/libsigrok-0.4:= dev-libs/glib:2 ) + collectd_plugins_slurm? ( sys-cluster/slurm ) + collectd_plugins_smart? ( dev-libs/libatasmart:0= ) + collectd_plugins_snmp? ( net-analyzer/net-snmp ) + collectd_plugins_snmp_agent? ( net-analyzer/net-snmp ) + collectd_plugins_sysevent? ( dev-libs/yajl:= ) + collectd_plugins_varnish? ( www-servers/varnish:= ) + collectd_plugins_virt? ( app-emulation/libvirt:= dev-libs/libxml2:2= ) + collectd_plugins_write_http? ( net-misc/curl:0= dev-libs/yajl:= ) + collectd_plugins_write_kafka? ( >=dev-libs/librdkafka-0.9.0.99:= dev-libs/yajl:= ) + collectd_plugins_write_mongodb? ( >=dev-libs/mongo-c-driver-1.8.2:= ) + collectd_plugins_write_prometheus? ( >=dev-libs/protobuf-c-1.2.1-r1:= net-libs/libmicrohttpd:= ) + collectd_plugins_write_redis? ( dev-libs/hiredis:= ) + collectd_plugins_write_stackdriver? ( net-misc/curl:0= dev-libs/yajl:= ) + collectd_plugins_xencpu? ( app-emulation/xen-tools:= ) + + kernel_FreeBSD? ( + collectd_plugins_disk? ( sys-libs/libstatgrab:= ) + collectd_plugins_interface? ( sys-libs/libstatgrab:= ) + collectd_plugins_load? ( sys-libs/libstatgrab:= ) + collectd_plugins_memory? ( sys-libs/libstatgrab:= ) + collectd_plugins_swap? ( sys-libs/libstatgrab:= ) + collectd_plugins_users? ( sys-libs/libstatgrab:= ) + )" + +# Enforcing !=sys-kernel/linux-headers-4.5 > due to #577846 +DEPEND="${COMMON_DEPEND} + collectd_plugins_iptables? ( || ( <=sys-kernel/linux-headers-4.4 >=sys-kernel/linux-headers-4.6 ) ) + collectd_plugins_java? ( >=virtual/jdk-1.6 ) + virtual/pkgconfig" + +RDEPEND="${COMMON_DEPEND} + collectd_plugins_java? ( >=virtual/jre-1.6 ) + collectd_plugins_syslog? ( virtual/logger ) + selinux? ( sec-policy/selinux-collectd )" + +REQUIRED_USE=" + collectd_plugins_python? ( ${PYTHON_REQUIRED_USE} ) + collectd_plugins_smart? ( udev ) + contrib? ( perl )" + +PATCHES=( "${FILESDIR}"/${PN}-5.11.0-libsigrok-0.4+.patch ) + +# @FUNCTION: collectd_plugin_kernel_linux +# @DESCRIPTION: +# USAGE: +# kernel_options is a list of kernel configurations options; the check tests whether at least +# one of them is enabled. If no, depending on the third argument an elog, ewarn, or eerror message +# is emitted. +collectd_plugin_kernel_linux() { + local multi_opt opt + if has ${1} ${COLLECTD_ALL_PLUGINS}; then + if use collectd_plugins_${1}; then + for opt in ${2}; do + if linux_chkconfig_present ${opt}; then + return 0; + fi + done + multi_opt=${2//\ /\ or\ } + case ${3} in + (info) + elog "The ${1} plugin can use kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (warn) + ewarn "The ${1} plugin uses kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (error) + eerror "The ${1} plugin needs kernel features that are disabled now; enable ${multi_opt} in your kernel" + ;; + (*) + die "function collectd_plugin_kernel_linux called with invalid third argument" + ;; + esac + fi + fi +} + +collectd_linux_kernel_checks() { + if ! linux_chkconfig_present PROC_FS; then + ewarn "/proc file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable PROC_FS in your kernel" + fi + + if ! linux_chkconfig_present SYSFS; then + ewarn "/sys file system support is disabled, many plugins will not be able to read any statistics from your system unless you enable SYSFS in your kernel" + fi + + # battery.c: /proc/pmu/battery_%i + # battery.c: /proc/acpi/battery + collectd_plugin_kernel_linux battery ACPI_BATTERY warn + + # cgroups.c: /sys/fs/cgroup/ + collectd_plugin_kernel_linux cgroups CGROUPS warn + + # cpufreq.c: /sys/devices/system/cpu/cpu%d/cpufreq/ + collectd_plugin_kernel_linux cpufreq SYSFS warn + collectd_plugin_kernel_linux cpufreq CPU_FREQ_STAT warn + + # drbd.c: /proc/drbd + collectd_plugin_kernel_linux drbd BLK_DEV_DRBD warn + + # conntrack.c: /proc/sys/net/netfilter/* + collectd_plugin_kernel_linux conntrack NETFILTER warn + + # fscache.c: /proc/fs/fscache/stats + collectd_plugin_kernel_linux fscache FSCACHE warn + + # nfs.c: /proc/net/rpc/nfs + # nfs.c: /proc/net/rpc/nfsd + collectd_plugin_kernel_linux nfs NFS_COMMON warn + + # serial.c: /proc/tty/driver/serial + # serial.c: /proc/tty/driver/ttyS + collectd_plugin_kernel_linux serial SERIAL_CORE warn + + # swap.c: /proc/meminfo + collectd_plugin_kernel_linux swap SWAP warn + + # thermal.c: /proc/acpi/thermal_zone + # thermal.c: /sys/class/thermal + collectd_plugin_kernel_linux thermal ACPI_THERMAL warn + + # turbostat.c: /dev/cpu/%d/msr + collectd_plugin_kernel_linux turbostat X86_MSR warn + + # vmem.c: /proc/vmstat + collectd_plugin_kernel_linux vmem VM_EVENT_COUNTERS warn + + # vserver.c: /proc/virtual + collectd_plugin_kernel_linux vserver VSERVER warn + + # uuid.c: /sys/hypervisor/uuid + collectd_plugin_kernel_linux uuid SYSFS info + + # wireless.c: /proc/net/wireless + collectd_plugin_kernel_linux wireless "WIRELESS MAC80211 IEEE80211" warn + + # zfs_arc.c: /proc/spl/kstat/zfs/arcstats + collectd_plugin_kernel_linux zfs_arc "SPL ZFS" warn +} + +pkg_setup() { + if use kernel_linux; then + linux-info_pkg_setup + + if linux_config_exists; then + einfo "Checking your linux kernel configuration:" + collectd_linux_kernel_checks + else + elog "Cannot find a linux kernel configuration. Continuing anyway." + fi + fi + + if use collectd_plugins_java; then + java-pkg-opt-2_pkg_setup + fi + + use collectd_plugins_python && python-single-r1_pkg_setup + + enewgroup collectd + enewuser collectd -1 -1 /var/lib/collectd collectd +} + +src_prepare() { + default + + # There's some strange prefix handling in the default config file, resulting in + # paths like "/usr/var/..." + sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die + + # Adjust upstream's systemd unit + # - Get rid of EnvironmentFile directive; These files don't exist on Gentoo! + # - Add User=collectd to run collectd as user "collectd" per default + sed -i \ + -e '/^EnvironmentFile=.*/d' \ + -e '/^\[Service\]/aUser=collectd' \ + contrib/systemd.${PN}.service || die + + eautoreconf +} + +src_configure() { + # Now come the lists of os-dependent plugins. Any plugin that is not listed anywhere here + # should work independent of the operating system. + + local linux_plugins="barometer battery cpu cpufreq disk + drbd entropy ethstat hugepages interface iptables + ipvs irq ipc load memory md netlink nfs numa processes + serial swap tcpconns thermal turbostat users vmem wireless + zfc_arc" + + local need_libstatgrab=0 + local libstatgrab_plugins="cpu disk interface load memory swap users" + local bsd_plugins="cpu tcpconns ${libstatgrab_plugins} zfc_arc" + + local darwin_plugins="apple_sensors battery cpu disk interface memory processes tcpconns" + + local osdependent_plugins="${linux_plugins} ${bsd_plugins} ${darwin_plugins}" + local myos_plugins="" + if use kernel_linux; then + einfo "Enabling Linux plugins." + myos_plugins=${linux_plugins} + elif use kernel_FreeBSD; then + einfo "Enabling FreeBSD plugins." + myos_plugins=${bsd_plugins} + elif use kernel_Darwin; then + einfo "Enabling Darwin plugins." + myos_plugins=${darwin_plugins} + fi + + local myconf="--disable-werror" + + # Do we debug? + myconf+=" $(use_enable debug)" + + # udev support? + # Required for smart plugin via REQUIRED_USE; Optional for disk plugin + if use udev; then + myconf+=" --with-libudev" + else + myconf+=" --without-libudev" + fi + + local plugin + + # Disable what needs to be disabled. + for plugin in ${COLLECTD_DISABLED_PLUGINS}; do + if [[ "${plugin}" == 'dpdkstat' ]]; then + myconf+=" --without-libdpdk" + else + myconf+=" --disable-${plugin}" + fi + done + + # Set enable/disable for each single plugin. + for plugin in ${COLLECTD_ALL_PLUGINS}; do + if has ${plugin} ${osdependent_plugins}; then + # plugin is os-dependent ... + if has ${plugin} ${myos_plugins}; then + # ... and available in this os + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + # ... must we link against libstatgrab? Bug #541518 + if use kernel_FreeBSD && has ${plugin} ${libstatgrab_plugins}; then + einfo "We must link against libstatgrab due to plugin \"${plugin}\" ..." + need_libstatgrab=1 + fi + else + # ... and NOT available in this os + if use collectd_plugins_${plugin}; then + ewarn "You try to enable the ${plugin} plugin, but it is not available for this" + ewarn "kernel. Disabling it automatically." + fi + myconf+=" --disable-${plugin}" + fi + elif [[ "${plugin}" = "collectd_plugins_perl" ]]; then + if use collectd_plugins_perl && ! use perl; then + ewarn "Perl plugin disabled as perl bindings disabled by -perl use flag" + myconf+= --disable-perl + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + else + myconf+=" $(use_enable collectd_plugins_${plugin} ${plugin})" + fi + done + + if [ "${need_libstatgrab}" -eq 1 ]; then + myconf+=" --with-libstatgrab" + else + myconf+=" --without-libstatgrab" + fi + + # JAVA_HOME is set by eclasses. + if use collectd_plugins_java; then + myconf+=" --with-java" + fi + + # Need libiptc ONLY for iptables. If we try to use it otherwise bug 340109 happens. + # lots of libs are only needed for plugins, if they are disabled, also disable the lib + use collectd_plugins_iptables || myconf+=" --with-libiptc=no" + use collectd_plugins_openldap || myconf+=" --with-libldap=no" + use collectd_plugins_redis || use collectd_plugins_write_redis || myconf+=" --with-libhiredis=no" + use collectd_plugins_smart || myconf+=" --with-libatasmart=no" + use collectd_plugins_gps || myconf+=" --with-libgps=no" + + if use perl; then + myconf+=" --with-perl-bindings=INSTALLDIRS=vendor" + else + myconf+=" --without-perl-bindings" + fi + + # No need for v5upgrade + myconf+=" --disable-target_v5upgrade" + + # Python + if use collectd_plugins_python; then + myconf+=" --with-libpython=yes" + export PYTHON_CONFIG=$(python_get_PYTHON_CONFIG) + else + myconf+=" --with-libpython=no" + fi + + # XFS support + myconf+=" $(use_enable xfs)" + + # Finally, run econf. + KERNEL_DIR="${KERNEL_DIR}" econf --config-cache \ + $(use_enable static-libs static) \ + --localstatedir=/var ${myconf} +} + +src_install() { + emake DESTDIR="${D%/}" install + + perl_delete_localpod + + find "${ED}"usr/ -name "*.la" -delete || die + + if use collectd_plugins_java; then + java-pkg_regjar "${ED}"usr/share/${PN}/java/*.jar + fi + + fowners root:collectd /etc/collectd.conf + fperms u=rw,g=r,o= /etc/collectd.conf + + dodoc AUTHORS ChangeLog README + + if use contrib ; then + insinto /usr/share/${PN} + doins -r contrib + fi + + keepdir /var/lib/${PN} + fowners collectd:collectd /var/lib/${PN} + + newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} + newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} + systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + newtmpfiles "${FILESDIR}"/${PN}.tmpfile ${PN}.conf + + sed -i -e 's:^.*PIDFile "/var/run/collectd.pid":#PIDFile "/run/collectd.pid":' "${ED}"etc/collectd.conf || die + sed -i -e 's:^# SocketFile "/var/run/collectd-unixsock":# SocketFile "/run/collectd/collectd.socket":' "${ED}"etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin perl$:# The new, correct way to load the perl plugin -- \n# \n# Globals true\n# :' "${ED}"etc/collectd.conf || die + sed -i -e 's:^.*LoadPlugin python$:# The new, correct way to load the python plugin -- \n# \n# Globals true\n# :' "${ED}"etc/collectd.conf || die +} + +pkg_postinst() { + tmpfiles_process "${PN}.conf" + + if use filecaps; then + local caps=() + use collectd_plugins_ceph && caps+=('CAP_DAC_OVERRIDE') + use collectd_plugins_exec && caps+=('CAP_SETUID' 'CAP_SETGID') + use collectd_plugins_iptables && caps+=('CAP_NET_ADMIN') + use collectd_plugins_filecount && caps+=('CAP_DAC_READ_SEARCH') + + if use collectd_plugins_dns || use collectd_plugins_ping; then + caps+=('CAP_NET_RAW') + fi + + if use collectd_plugins_turbostat || use collectd_plugins_smart; then + caps+=('CAP_SYS_RAWIO') + fi + + if [ ${#caps[@]} -gt 0 ]; then + local caps_str=$(IFS=","; echo "${caps[*]}") + fcaps ${caps_str} usr/sbin/collectd + elog "Capabilities for ${EROOT}usr/sbin/collectd set to:" + elog " ${caps_str}+EP" + elog + + local systemd_unit="$(systemd_get_systemunitdir)/collectd.service" + if [[ -e "${systemd_unit}" ]]; then + caps_str="${caps[*]}" + sed -i -e "s:^CapabilityBoundingSet=.*:CapabilityBoundingSet=${caps_str}:" "${systemd_unit}" || \ + die "Failed to set CapabilityBoundingSet in '${systemd_unit}'" + + elog "CapabilityBoundingSet in '${systemd_unit}'" + elog "updated to match capabilities set above." + elog + else + if has_version "sys-apps/systemd"; then + # Bug 596852 + ewarn "Failed to update CapabilityBoundingSet in '${systemd_unit}'" + ewarn "because unit was not found. Please file a bug about this." + fi + fi + fi + fi + + elog "Note: Collectd is only the collector." + elog " You need to install 'data' sources (applications) locally or" + elog " remotely on your own." + + elog + elog "Collectd is configured to run as unprivileged user by default." + elog "You may want to revisit the configuration." + elog + + if use collectd_plugins_email; then + ewarn "The email plug-in is deprecated. To submit statistics please use the unixsock plugin." + fi + + if use collectd_plugins_smart; then + elog "" + elog "If you are using smart plugin and don't run collectd as root make sure" + elog "that the collectd user is allowed to access the disk you want to monitor" + elog "(can be done via udev rule for example) and that collectd has the required" + elog "capabilities set (which is the default when package was emerged with" + elog "'filecaps' USE flag set)." + fi + + if use contrib; then + elog "The scripts in /usr/share/doc/${PF}/collection3 for generating graphs need dev-perl/HTML-Parser," + elog "dev-perl/CGI, dev-perl/Config-General and net-analyzer/rrdtool[perl] to be installed." + fi +} diff --git a/app-metrics/collectd/files/collectd-5.11.0-libsigrok-0.4+.patch b/app-metrics/collectd/files/collectd-5.11.0-libsigrok-0.4+.patch new file mode 100644 index 000000000000..981864e81c32 --- /dev/null +++ b/app-metrics/collectd/files/collectd-5.11.0-libsigrok-0.4+.patch @@ -0,0 +1,157 @@ +Backport of https://github.com/u1f35c/collectd/commit/9e36cd85a2bbd6daa55f1f392f60f9c95573ae2c +aka https://github.com/collectd/collectd/issues/1574 + +--- a/configure.ac ++++ b/configure.ac +@@ -5367,7 +5367,7 @@ AC_SUBST([BUILD_WITH_LIBSENSORS_LIBS]) + # libsigrok {{{ + AC_SUBST([LIBSIGROK_CFLAGS]) + AC_SUBST([LIBSIGROK_LIBS]) +-PKG_CHECK_MODULES([LIBSIGROK], [libsigrok < 0.4], ++PKG_CHECK_MODULES([LIBSIGROK], [libsigrok >= 0.4], + [with_libsigrok="yes"], + [with_libsigrok="no (pkg-config could not find libsigrok)"] + ) +--- a/src/sigrok.c ++++ b/src/sigrok.c +@@ -127,22 +127,22 @@ static int sigrok_config(oconfig_item_t *ci) { + return 0; + } + +-static const char *sigrok_value_type(const struct sr_datafeed_analog *analog) { ++static const char *sigrok_value_type(const struct sr_analog_meaning *meaning) { + const char *s; + +- if (analog->mq == SR_MQ_VOLTAGE) ++ if (meaning->mq == SR_MQ_VOLTAGE) + s = "voltage"; +- else if (analog->mq == SR_MQ_CURRENT) ++ else if (meaning->mq == SR_MQ_CURRENT) + s = "current"; +- else if (analog->mq == SR_MQ_FREQUENCY) ++ else if (meaning->mq == SR_MQ_FREQUENCY) + s = "frequency"; +- else if (analog->mq == SR_MQ_POWER) ++ else if (meaning->mq == SR_MQ_POWER) + s = "power"; +- else if (analog->mq == SR_MQ_TEMPERATURE) ++ else if (meaning->mq == SR_MQ_TEMPERATURE) + s = "temperature"; +- else if (analog->mq == SR_MQ_RELATIVE_HUMIDITY) ++ else if (meaning->mq == SR_MQ_RELATIVE_HUMIDITY) + s = "humidity"; +- else if (analog->mq == SR_MQ_SOUND_PRESSURE_LEVEL) ++ else if (meaning->mq == SR_MQ_SOUND_PRESSURE_LEVEL) + s = "spl"; + else + s = "gauge"; +@@ -172,7 +172,7 @@ static void sigrok_feed_callback(const struct sr_dev_inst *sdi, + ERROR("sigrok plugin: Received data from driver \"%s\" but " + "can't find a configuration / device matching " + "it.", +- sdi->driver->name); ++ sr_dev_inst_driver_get(sdi)->name); + return; + } + +@@ -191,11 +191,11 @@ static void sigrok_feed_callback(const struct sr_dev_inst *sdi, + + /* Ignore all but the first sample on the first probe. */ + analog = packet->payload; +- vl.values = &(value_t){.gauge = analog->data[0]}; ++ vl.values = &(value_t){.gauge = ((float *) analog->data)[0]}; + vl.values_len = 1; + sstrncpy(vl.plugin, "sigrok", sizeof(vl.plugin)); + sstrncpy(vl.plugin_instance, cfdev->name, sizeof(vl.plugin_instance)); +- sstrncpy(vl.type, sigrok_value_type(analog), sizeof(vl.type)); ++ sstrncpy(vl.type, sigrok_value_type(&analog->meaning[0]), sizeof(vl.type)); + + plugin_dispatch_values(&vl); + cfdev->last_dispatch = cdtime(); +@@ -207,6 +207,7 @@ static void sigrok_free_drvopts(struct sr_config *src) { + } + + static int sigrok_init_driver(struct config_device *cfdev, ++ struct sr_session *session, + struct sr_dev_driver *drv) { + struct sr_config *src; + GSList *devlist, *drvopts; +@@ -248,21 +249,22 @@ static int sigrok_init_driver(struct config_device *cfdev, + cfdev->sdi = devlist->data; + g_slist_free(devlist); + ssnprintf(hwident, sizeof(hwident), "%s %s %s", +- cfdev->sdi->vendor ? cfdev->sdi->vendor : "", +- cfdev->sdi->model ? cfdev->sdi->model : "", +- cfdev->sdi->version ? cfdev->sdi->version : ""); ++ sr_dev_inst_vendor_get(cfdev->sdi), ++ sr_dev_inst_model_get(cfdev->sdi), ++ sr_dev_inst_version_get(cfdev->sdi)); + INFO("sigrok plugin: Device \"%s\" is a %s", cfdev->name, hwident); + + if (sr_dev_open(cfdev->sdi) != SR_OK) + return -1; + +- if (sr_session_dev_add(cfdev->sdi) != SR_OK) ++ if (sr_session_dev_add(session, cfdev->sdi) != SR_OK) + return -1; + + return 1; + } + + static void *sigrok_read_thread(void *arg __attribute__((unused))) { ++ struct sr_session *session; + struct sr_dev_driver *drv, **drvlist; + GSList *l; + struct config_device *cfdev; +@@ -277,11 +279,11 @@ static void *sigrok_read_thread(void *arg __attribute__((unused))) { + return NULL; + } + +- if (!sr_session_new()) ++ if (!sr_session_new(sr_ctx, &session)) + return NULL; + + num_devices = 0; +- drvlist = sr_driver_list(); ++ drvlist = sr_driver_list(sr_ctx); + for (l = config_devices; l; l = l->next) { + cfdev = l->data; + drv = NULL; +@@ -296,7 +298,7 @@ static void *sigrok_read_thread(void *arg __attribute__((unused))) { + return NULL; + } + +- if ((ret = sigrok_init_driver(cfdev, drv)) < 0) ++ if ((ret = sigrok_init_driver(cfdev, session, drv)) < 0) + /* Error was already logged. */ + return NULL; + +@@ -305,21 +307,22 @@ static void *sigrok_read_thread(void *arg __attribute__((unused))) { + + if (num_devices > 0) { + /* Do this only when we're sure there's hardware to talk to. */ +- if (sr_session_datafeed_callback_add(sigrok_feed_callback, NULL) != SR_OK) ++ if (sr_session_datafeed_callback_add(session, sigrok_feed_callback, ++ NULL) != SR_OK) + return NULL; + + /* Start acquisition on all devices. */ +- if (sr_session_start() != SR_OK) ++ if (sr_session_start(session) != SR_OK) + return NULL; + + /* Main loop, runs forever. */ +- sr_session_run(); ++ sr_session_run(session); + +- sr_session_stop(); +- sr_session_dev_remove_all(); ++ sr_session_stop(session); ++ sr_session_dev_remove_all(session); + } + +- sr_session_destroy(); ++ sr_session_destroy(session); + + sr_exit(sr_ctx); + diff --git a/app-metrics/github-exporter/Manifest b/app-metrics/github-exporter/Manifest index 8422bbf90519..20f28bff22b1 100644 --- a/app-metrics/github-exporter/Manifest +++ b/app-metrics/github-exporter/Manifest @@ -1,6 +1,44 @@ AUX github-exporter.confd 507 BLAKE2B 46ace5b98c0ec60c7a93c50524258e44537e1a4ed13d77c3b4f6651ce56f5323f2342d967b145515a544edb3203b71052edb12019f9105b8e6b4bce9da0d14aa SHA512 10430a3d1fcb6a7e125fcddfb27a610843f6646091efb8e53fa9eca7bd434c528562857267b59f75452eb78c78821e8856716d417145a9e930861e4340382d1a AUX github-exporter.initd 1512 BLAKE2B ab1f34d3084655da8b7f5345e7001f968d0f7361d8c0eb45070e8a7c1bb6216b65ccfec754897c2472b91fa457a50b363d51939ccc772ae64e153abe97b10cba SHA512 d0ebac39a04d94a10f6d38cbad660b7c8f4bf570bbda334d7e7eb6c2d635f6ac4425f462e2ed9b68bd4f8ac56842deaa6ab15b6c883cf4fd17078115feaaa9be DIST github-exporter-04.tar.gz 7023 BLAKE2B a2502fab29f7d987e7fe02a739d9d3bcc34376315581830033dc99d9c16be0bca52a30b8f491682de34ded4732c9216a05e8bfc1d2ac6510a22bd752a50bb5b9 SHA512 4837d78d058e8adb110ced899a9d136eed86aa3facf7258a6d7b392a3a61aa827662e63f8bd64b0ca44e6ed78518a6ae669068018ffc18d3bb42d19f4fb364be +DIST github-exporter-1.0.1.tar.gz 20538 BLAKE2B 059802e5e735838f25f0fb56482c8d80c2e0325a7b10ba954af9ea4e39cea1826540e267db9b3fbc6ee4eb181185fd6b34128d09202faf43604fd1e3431bdafc SHA512 8f984cc766d8fc40cb230d88f9aac15563713333d4e6bb98e882b5fbf79cd15c1664cfdc09ccb242d11d0de8a29232124f1a2ab6859cdcb7bd84e862bfb56423 +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.mod 31 BLAKE2B f69b0989e51b0b649f81b044169fe4309f130eba5bcc6ff33aa9666b1b754aa0e524b8c7a627a91000ccc4f93bf93cdee3e97bd3b2184b050878bc3f413f0c72 SHA512 f21fd002853e4435421f8396e6be016f65be1537815c60d23940caf26e3f14dd6f2caac802cb64cd586b1b1f1220b2727de347b3d1816b8e741f68d87ebcf03f +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.zip 15013 BLAKE2B daecbcbb12a60a1423c4f419db44a0d63108fe622cf843593abb16fd75dcea703b3cf56f1c13433959eccbfb2a9bd5640f837f4be3296220366438dd7ed04f86 SHA512 44ccb3d6134742a80ac15830613c169d1b0d43e6ce40c2f2fdea07203bec134e1ba80dc57c6d14a007014ea141dca311b3ebe61b12d2181311665a9ffe83ca39 +DIST github.com%2Fdavecgh%2Fgo-spew%2F@v%2Fv1.1.0.mod 34 BLAKE2B 7e09c2779bf7a84a9271e31522ebbe600a1c11b107d651d91f58c8373e4336332a3a881f3e12b382543d75f20398af66085fcb3e780eed341e870e9c30f29267 SHA512 5e079462f7e0dff0efda71f580aa185700cfa936b718a19d0e2a8c63212e47a07022dca0c282832d48e5165aae8e82aeeeb2ac3664268f1148fc772010fb860e +DIST github.com%2Fdavecgh%2Fgo-spew%2F@v%2Fv1.1.1.mod 34 BLAKE2B 7e09c2779bf7a84a9271e31522ebbe600a1c11b107d651d91f58c8373e4336332a3a881f3e12b382543d75f20398af66085fcb3e780eed341e870e9c30f29267 SHA512 5e079462f7e0dff0efda71f580aa185700cfa936b718a19d0e2a8c63212e47a07022dca0c282832d48e5165aae8e82aeeeb2ac3664268f1148fc772010fb860e +DIST github.com%2Fdavecgh%2Fgo-spew%2F@v%2Fv1.1.1.zip 60320 BLAKE2B 86bdbc333e5c23ccf4f805945ca9f2aecc5c242d2ae824d20127eceaa2bf7bbab239ff2799572a2c8fa206166a36e97d5eccc8fc5021743d8ad32f39cd53b9eb SHA512 7b4e4df2fea731e23e05437f26f24e32b2e99028d685b72e3a726c1cb616ada4a77ca4fb9db4a6fae48178cc5172e724b74499bc776d63a9110cb97377d5edeb +DIST github.com%2Ffatih%2Fstructs%2F@v%2Fv1.1.0.mod 32 BLAKE2B a73ae1e577fbb84fd72de422c367c1003355c117a9660cadbb5d6d52fcd0c102fa3b22c7c7dfb6e149dc14ddcb9b5fef847fb2a7b9379a35405c7bd9d83ff1b5 SHA512 2ef8ab60b4320b9358614a28a02b4207f3986c4a06798c3e253a79bfb63692dfb1765476e9d154e15f9d5e30983609c98b6ee39ae910c678a3773fddca208cee +DIST github.com%2Ffatih%2Fstructs%2F@v%2Fv1.1.0.zip 17890 BLAKE2B 663ee535dd3ddf1a89ae274a400bb744d6e22689a212b58e6f6a3ae45890be76761fd4cd08d1836ffa3b8fc290249a408c798001b343104d0f06d7e2abede6a2 SHA512 e42c37f71719ed662a4b3efc9c03725a3569ce04849d6bc845bb7967228b0e648d6b2cdf73ea18430e54df85486b2a3819aca6170538eca4401ac3ea4a512d3c +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.2.0.mod 34 BLAKE2B a4239cba934b6e80714b93d47e88f22ad28ce41d1d984c4261cc3f5f3b857fb28785223fa911b258e2665be2a9d24ffbd925e9e0f374452a2aacd712ad9d5f75 SHA512 e059a34363bb826bbcb8981adbfc10da90e04b86dc5376ab20bdfe1fab135953cff41ef1daa116aff10e9f3e6503168f6baf902f09aa0e8cd9a0da96b932f4b6 +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.2.0.zip 482403 BLAKE2B 47db66e9c8187c20b27b9aeb8584f0f2289084103ccda25406eb30059147c3bcb867c76d145c4cab7eae801ed4cf76a63efe23f091e05c9206fcadc3358a02f6 SHA512 d102d00618f077f7d677eea9f0d4aff600e4b95caaca6ae6021355e64ed0a8fe418fd731370baa968f6fd338e377b5d3a2077b0b8a1ee399f992b8a7717cf77f +DIST github.com%2Finfinityworks%2Fgo-common%2F@v%2Fv0.0.0-20170820165359-7f20a140fd37.mod 42 BLAKE2B 64d26b1f81939711e8f2bca3008ecba725654d555924bedcfc338525482c660ea0e4e320227f7ea11b4c6208b5c2ddf0daba3cb3bcfbd636bd22147f0a04c65e SHA512 d646ee87f12c8b3cb17da15a6b7297862955422015b522f9af1b3b06d11bf6c36116a041a172088bffc92370005352105a2ed818e63ffc7420a0dd9b248de122 +DIST github.com%2Finfinityworks%2Fgo-common%2F@v%2Fv0.0.0-20170820165359-7f20a140fd37.zip 6182 BLAKE2B 61d9dab2f8646634e46e8f52c94cc94f204cef4f475beda1e75c9c647ec0e05e73cafe7d667cd70d8b2725965c2dcae074c111c359a6471fe70a4a724ae0cd0f SHA512 c27fe7b9adf139719cf7fd3559a1f12a764e0904d894a2863d050bc37db8bf353d09e72577be95665de06b6397ebd5f520f3e9b9d0d3daf05eb73fcb3eef5ef9 +DIST github.com%2Fkonsorten%2Fgo-windows-terminal-sequences%2F@v%2Fv1.0.1.mod 58 BLAKE2B 4cf48282c28d2b8237fe9ff852ad25d102cce038fbd1852a1938bcf69c895df05dfdef6e533b3c0b4da28103eb5e3a9561f802414ccdd99b2d3ec2e2db0807ee SHA512 fe33ca4de6588b95f0155458b8b6daab218553b58de5dac220efe54019dfab085838cc6a22012a106fa36a6094447f744825cad04aaf0b158fce5aa676048fe5 +DIST github.com%2Fkonsorten%2Fgo-windows-terminal-sequences%2F@v%2Fv1.0.1.zip 3567 BLAKE2B 80b7bf217df9367160180d44c1fab6a9f10154bb9a6455538860158a08c5bf8c794fff973b899b1376e4e65764a9aa0d6b8b162a6d9ebe1adb1368b9a2a42786 SHA512 27910ae03fc9fbf573ac31454635c43bfd771d2a91325eca544f7be0e24b43c2798ed8e74b4c31e8c20c1a9cd266b835017aea3a3e24c2ecb43a14a6143af8e1 +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.mod 56 BLAKE2B 50d2d6dc9c1ee92d629af8c9aae9fe5f70a0c6fe270a95a8232cee3c50132ef90c68218ac64a3b5b72d94e23ecbea5f567fef39a81be3d4585bae3f4f5348545 SHA512 5235188477921a263176fefaffccdaca4bf8175a2e248356a06596e37fa868400203172c7fe9fb80d0a65d335d23d80edefd242657de0eb83d9360589e063bba +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.zip 44378 BLAKE2B 15ccda2b94bb024656859fb8a6968782b9a1bffb786b0b1ed69a3284b01f4a2100b3f3c46b6ebcb8f7febedb5bd4f6762fe333b7d4f1d14c700f8fce60843352 SHA512 e9349ee2a7d5e5b129ec6a1c0507854aebca82cf9ac2d0a681cac2f4630ea35551ede48e1931494362232a83dc9f26b6b4162c6114e0176084c50101b1da46b0 +DIST github.com%2Fpmezard%2Fgo-difflib%2F@v%2Fv1.0.0.mod 37 BLAKE2B 94636062c94f8ff68cdcab7593a3acae7b9ffff616cad7b1d5c9cd147a4a1042d33666cbeed6fd816d6793113abfb595183097dcc46de7a3dfadc1423ed43e79 SHA512 c3d5c48cdb8ba6af7071a07cfede06e0ab67e3726d9de592a952fad40167dcbdd9621dc2c4df1bd3c28eb99d70b1b6d8d812441237c35bf492e5b7f07bd33902 +DIST github.com%2Fpmezard%2Fgo-difflib%2F@v%2Fv1.0.0.zip 12433 BLAKE2B 0c911c9d173080abd8edbbab1f47222343801d8eeae36b4add24773e3282fc2a39283fdf519a3d4483e39cdb7d9509b8570d151f46841ac1a616f312dc4cb0ba SHA512 3b85697185ba85cdef6202444ab6cabeabfad8a03d66b3839a852586b1f91ddae7897a57c8c138d5647022aa44906c7ef3c5339d520f90eeea0742a935da8cf2 +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.9.2.mod 540 BLAKE2B 4d43a0901fa46da74e62fa22f61dfebdf6468f2766bd43dfd487d7a5434f961d181ecf26015ff9134e8d3f9c2dc03da6abbcd0030348facda3a499af9a04665d SHA512 9add81238044589ae2cf38042b963953d507e40945118fd62ac1cbf41bde1b001a69423c50b7045b721488b3d53489b4ce3c544b68f6c4e31e340d2581f7c8a6 +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.9.2.zip 193855 BLAKE2B 992f1dd35201c2f388e3fb03bc51a592a4b36db69a27b52d9e840a95d920cfdffcb2dce6fe2b8fc30a718d87b07383df2ce8e97a4a2a40d4f2f0ceec35c1d4a7 SHA512 79cebb06e6a958cded21781e651e1afd406c7502a945f2c97c9b910d0621a46a7a84f8fc8fbe7c21547146ec407a8f475eb0e711f37273e28f2fa5b3062ad19d +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.mod 42 BLAKE2B 5519896b44b7bc3089a8965dc61aae63745c64ba1a390d3fff1202be7f8dd34f59862c04b49e377d6616a93a0341662becce65d431d445703a160ba49eda208b SHA512 c84dfe43954b19c1e4ac5ff8738e79db469f3bc1dc55e69b12503d0a5cf125cc74f4797ddbfe64b2a1bd1e2940575c32678671d51f67161c4f5b53b2a85ac46a +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.zip 68325 BLAKE2B 9b783cb98fd4f1ceb158d8a72ffdc7d0c232a8a9740de221b4321b2c7e240d98bb5f2bfca74222c6a7796368d48b1d3e315229a9d2c0436d5590bc200be31817 SHA512 25290d540c185fa2010b06596a70b6d06d4ae14fd92b4e5596b48074e4e5ef5ec6b990c8d0bc39cb44f0c2a83a0a1ac4415f86ea4e3fb69970bb2496f148d0c9 +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20181126121408-4724e9255275.mod 36 BLAKE2B 39120b6af83d45857c990115ff52d8828278a9ce158b01621d8dcc517c23ff139532a2c2e53ec97616f0c65a2e0db3ede7c5fe59eb33be277e2c60650362b232 SHA512 1b262da0100655c3a56c0e551866491b81d2b88fd5fed9cc43a57bce3634c88c82c798ed1a823237011f6be68b5f0e1fe8284526cd68204851de30a44fc34fbf +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20181126121408-4724e9255275.zip 132691 BLAKE2B 9bfe80a4f61a6b7a2e0dbd235e1a05ca032982ef14a9989c415ad143c84c42cdcace926a5683f2273b84c5babe8c0e5b95c680805324217a7afa18b3c82b0bec SHA512 4459c32fb8b90650c6fca37477e2ec49c5e3eb68a8151c88099017fd2c9c13d2a066bef75061a47ed27398e96aa40a6cbe2524146ad1f315d94d7359d0a7ba74 +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.0-20181204211112-1dc9a6cbc91a.mod 36 BLAKE2B 3c6acbd1022261065a321c6f3cfa2946b58011f45fae9b98761397eb7e5e0984dae4ea34c4f837f798ab29ca8e26ed3f07771be10e500a99ce7e5e9f4c401b5c SHA512 05f032eba0c264b186936c2b9831624a01999972d4f1bba6aa15c452407eb10d402f1ac674eb41e2d24fa66e85ae2e56efd2326fc4ecc741169b9908d7935335 +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.0-20181204211112-1dc9a6cbc91a.zip 103337 BLAKE2B 0bbcc8096a261b4697bf5cb23b3141a885a5d987db3187d776860206ee796c41e78210e5e36942fdee76862033d629f2e2fbe72522a50c846aef973c22ff6d74 SHA512 132a26cbef951377102cff398932b442920500d12e80ad50bbe05ced623d1618e0d56d95ec5fa36354f4295ef9757e4750fe91a25add4f2175d12e6245269425 +DIST github.com%2Fsirupsen%2Flogrus%2F@v%2Fv1.4.2.mod 337 BLAKE2B 94ce7d2e23281061ee0ac0b1be2f8c3439c86e62c56ecf556a81123d57d819b1e0e95ec3b7c6425f13abaaa1683942b7a3d0bb8ad489577284b2a6063c777b37 SHA512 38a79599dbd09661614d54fc92149fe581575b7833e89dd73a3f754fafa4bc549c6c9078753ab8e2a85ce2be3ab81e528e29b6d19e7c329e0cb0f74896d2e418 +DIST github.com%2Fsirupsen%2Flogrus%2F@v%2Fv1.4.2.zip 58627 BLAKE2B f4276f0095188324c06e4412303ac19e3006b18823985e26ca49b2de54ef58cade626b3d2439f5f2a29c47618420b890951f94e5a4801dbaad4c3294f6555a4e SHA512 3bf6be07dd9a97bde938309857e16dc425587c100e35b2acd1a6f11a9ac196238b0844abbaded43fcc01be0664efa15b64f159f6259322043e3046e7d361dc20 +DIST github.com%2Fsteinfletcher%2Fapitest%2F@v%2Fv1.3.8.mod 84 BLAKE2B 2590cb607a9e6ef1f6c95c7b0c542a761f3c648cf772e4b646736a6ab446ef9545ec76a6e5823ed1d38ff592ec062c606da48132e332a616b7d4e654976958df SHA512 994fd16b71bc9661c9758dcf77f2ddbdd422c3fb2421db59285d9d5dbebb34eef1e27f96c004058595e9acc8ddc36feeb99f435b902d98dc1a48ec49fb4ff731 +DIST github.com%2Fsteinfletcher%2Fapitest%2F@v%2Fv1.3.8.zip 602774 BLAKE2B 6f1d90675cd0b4630ddb158bca32e1e86cb6a7b01b46d7c403c5c15f02c26573d4bc80892a8927ecfa704a35dbc4611d5ae32929a5b773111da444b437e01589 SHA512 c4040d87ce832c3d6bc52828d98862e5ab75c7c5a9fb8dadd614c9e07eafbc0c96ac372f51cb8fb809e35f1ee10da917382aabe9fa5bbaa5de3f3a4788c2393a +DIST github.com%2Fstretchr%2Fobjx%2F@v%2Fv0.1.0.mod 32 BLAKE2B d698910da1ef00a70a1673b8c74105de195020ccd95d1e70c5dd1e1615210886ff9acbc9cfd03f46e99f5223b60b04695b8d362b9e0edd4e485480f802bd229a SHA512 4e366e5a60559a8863cb2a50280deb307d8bf885ca5440cce1b49a084b4cc4583b3481240125f35f161226592a43f2c0a426152f117d79b68c92c72a93f751d5 +DIST github.com%2Fstretchr%2Fobjx%2F@v%2Fv0.1.1.mod 32 BLAKE2B d698910da1ef00a70a1673b8c74105de195020ccd95d1e70c5dd1e1615210886ff9acbc9cfd03f46e99f5223b60b04695b8d362b9e0edd4e485480f802bd229a SHA512 4e366e5a60559a8863cb2a50280deb307d8bf885ca5440cce1b49a084b4cc4583b3481240125f35f161226592a43f2c0a426152f117d79b68c92c72a93f751d5 +DIST github.com%2Fstretchr%2Ftestify%2F@v%2Fv1.2.2.mod 35 BLAKE2B 0357260904c9ba41892132c7e07d2add9b10ce4a09e8db4966219d1f515f917581e2afa0987094c90759634bc2aeb66e758074e023ff331a8337f5090c0102f6 SHA512 5b7ce867497852e4918b8cde5f75ecf2f24b9c95ad112478ac132322e904243f1cea3d16f5731646efb669256dbefc129ac70a499c8b1d25403a14c7e4fad10b +DIST github.com%2Fstretchr%2Ftestify%2F@v%2Fv1.2.2.zip 81710 BLAKE2B 245149718759e71d8c882731fb51813924beee131aa16c9d6ea83a72738721011bceee80411d88dedf91653219d3c8ae33f66349e2d373b08931c28aa2e16d8d SHA512 b2cb918d623065d391a318f4f5c532aec12635662d176a441c30cbe3b042b60be848c7eb685679c5258e661f5780ebc3db3f9dbbb8a37e157da214b4f57fde88 +DIST github.com%2Fstretchr%2Ftestify%2F@v%2Fv1.3.0.mod 154 BLAKE2B 60cd7801e7cd33746305cd636b048b25a86270ec3b29a21c3c078c7e95b769bce7e80c2c7c5474113786bd788c7f88f3719e34f02141038e0d161b36e32f39b9 SHA512 bb808fad059f5abd0171e4bdc724411eff2c7e8d303a4ffb3608a00e21bb3cfafe9e83b4b4e9bccd42c9a4331f67ddc6043e3dd5eaa9a122c86626eed43a8383 +DIST github.com%2Fstretchr%2Ftestify%2F@v%2Fv1.3.0.zip 83537 BLAKE2B 6d6de57cc5e393aaef1cdc7e2140143eb7fa324bb2ea3b9f63bfe1e8652c02d24eb441fc3b435c6b287f165c5540a008a7c21ab4070d8bc77c77e6fb608f7e46 SHA512 c5cd06f825bbfdcf2ae58ea21edbeea03c110de3fc20fcf69db07aae26c9ae67a8ac57a9ffedec9b3b4f1f3b016089935049d75d92a9a03e45ce6345b4c9c611 +DIST github.com%2Ftomnomnom%2Flinkheader%2F@v%2Fv0.0.0-20180905144013-02ca5825eb80.mod 39 BLAKE2B 840f3d7d2793049b8fa6ac94032a8267e45d4af8ed76c41a359fbd08dac3ca559ca1d5d18e763a64ec5e99634dec94a8e29ab350a32fda00153abef5d2d5fecc SHA512 4e89a196af72b72d06b5a51a0d29d45e10dced6e30f42ad6cc76349b36dd7fc80db3877ee8696eb5ac7fad64ab6cfda4baa2aec863d57f36bae7a598ae5689e1 +DIST github.com%2Ftomnomnom%2Flinkheader%2F@v%2Fv0.0.0-20180905144013-02ca5825eb80.zip 7607 BLAKE2B b13f1ca85260e2eae04a93ce489bab3a40677b1eb0605868d11ae0d0345c51ba8149a72838dc58e393ea29584df88cc5d25dfad8387000e429687880e2545044 SHA512 88653226421d4ba5d8c12c79542e1e3dee0394929b00330f3a5827779c263aac3a87820bc3877c660946d0127861fa7c7dbd436ddcd7d2c0c7b814c4c9eef22d DIST github.com-beorn7-perks-3a771d9.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277 DIST github.com-fatih-structs-878a968.tar.gz 14629 BLAKE2B 673a25a39cab677bd275ccaf14675a1fa7847d1a089ceaa20cc981ca01a1cbba597e94467e7accdd1a4319acd44c5d7bd0f6e2de0eebd7fe2f43cc6cc9a94271 SHA512 3c00f10e17e6dd818422a6b8e1ef5454b3dd9cc78da22c56ec3c474bd7a590bb3dd56e803c01882b52ce12a6a4deda7935bbb786c3cebc2e60b379337a884752 DIST github.com-golang-crypto-ff983b9.tar.gz 1645106 BLAKE2B 3d7271479ef812761a02c1d20429800cd29706e802a8ccf57e916bdb8befc87a9b1b1a88d42adb764a32fa5f4c5f5a5e434af63812a5bcd3de625658792a49a3 SHA512 19746e84901c0749da544ba02c74c8ccabfee5f186a0d00509e54f20c191da9ea56844de988265f072af1fae671d78d741a44f782b8c1704c9da0441436c2122 @@ -13,6 +51,12 @@ DIST github.com-prometheus-client_model-f287a10.tar.gz 57203 BLAKE2B 2d56b90ced9 DIST github.com-prometheus-common-2998b13.tar.gz 87368 BLAKE2B fc6c6e197d4cc61afefa9fb8e3a8d6b36ab029f62e3cf9adf8359e4885554f94427f17218d45c90c9d7f4a6985b2e4143a4d304d39f806bd70d2c6f05de29bc2 SHA512 b2095da96596fc500ece6b331cda2558f8c813720853f2489aee3dec65de95eb13f7b0853e3812433fdc040f16990d2f05b2a6b8b41275210c504ff333ca625d DIST github.com-prometheus-procfs-b1a0a9a.tar.gz 61720 BLAKE2B 2f9b25506527aaf6e1bf560a1b680b958d1281acbaa2bb896bfea50b5b7de8992d10e8e812f8ae449ab67145c88179c15afe1f719851d1717b28963071088082 SHA512 5938b4a8fa9a5ee32be995fed0d0e6b26941765470aca4eda63a7c42db457e83da43fde2f33b2d4ded3545e5643f607ec7060406b0a1b15e64cc732bb2badd4a DIST github.com-sirupsen-logrus-eef6b76.tar.gz 38613 BLAKE2B 32ff02d46dcdf08b273c406323236b0750433bda16a5072e4161b166863f5a062817166dc871e15fb169bfdb95ff45f167bc30b2e259294e0a51111b8a78afd3 SHA512 e7ca358b72bebbf663af426a110cd8da22bf33e2ec14fb7337af75a1cdd4aecb371436b8cc83f04a52a52ced56c02a762b12c2fe5ae5e64d7aee261a7254b14e +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20181201002055-351d144fa1fc.mod 24 BLAKE2B dad51d0aff48ef669f448f7b41bcdb153dbdc48863761ba1cac6aa3e3eaeec838e22733e6c61796b22bcc95d9e0a274085676bf191a8072717a398a067fe9e62 SHA512 d7446d3dd844b97512470f7ff05fce72d099f7800396e2738a54d41796f0f76be07e7aea1f638fee0190c7d8ce65eefc54eebe6917a06d14da04d0c9c8f9891a +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20181108010431-42b317875d0f.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0 +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20181108010431-42b317875d0f.zip 24743 BLAKE2B 916fbb71a738b80833a6e9ab44ac53568d4bf6e9400b8a63197cfcc96488c60b43d602664366fd82fb686bc9b5ebf80d2d6fda3cb791a83042c03d965ab7efb4 SHA512 cbc53e045f3837deea920bc08867a45c5ef3e0afb99f7f5179653790d36a541f4e96e5f9e3e36560aff2b38ebde5a5004992c09a8e2722d44cfaf81d654de5b4 +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190422165155-953cdadca894.mod 33 BLAKE2B 8be160de26713fd50f15adfb6fd7fff2643ee587aa17de9385b1e315869d0ecf102fc567294666bf232aa677d1ab04ba8341157f3d9b66a0f53543a7a47cf148 SHA512 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190422165155-953cdadca894.zip 1699831 BLAKE2B 66aec13709b2599fcb618806b62a9fe8a9678d320b11df7eee7c217c2eeb7f009d26385895a5165f398ae89051c065d745865f32e6d91e18828d3ac610968f5b SHA512 f8e187d488cd1e6721ccf6f3139c1e09f65e82973f3f08ccad2e84d37a5f83783fbbfe40ab7e270b8f7eabe802c3eb28aa2f291f0296651ffbe752a277ffba84 EBUILD github-exporter-04-r1.ebuild 1969 BLAKE2B 8b4c0b54f271aa7d4d4fec274783b3ef5807dfc593841baa4bbd09656cc28f00f3c82fb86c536cfaa1b4211ed9160ae885ec149f65b9dc19a227321886871794 SHA512 768245f5f8c737ab82db9658a5a09ed052efabe354760e27f67951a8241fd03ebe9d12517a312b569d64a280818bbb7d7fb29c12198b67a2ebf50173f87133cd EBUILD github-exporter-04.ebuild 1964 BLAKE2B f8d3f3ed589c2a66b5042ff04a6421849a56e484a682d18e72d97816e086db461ba84ce904c3991cf9fa06ed5b4e6ed70b444326807c0b67b8c8a2fd29248304 SHA512 16ddcca855cbf72929228032a2aa00fd67140f5d68c8585e7ff56f2a03b24f25902153bbf17122869992d6eaa3373b9c17c3f9252754fa1b40d383e19646586f +EBUILD github-exporter-1.0.1.ebuild 3205 BLAKE2B a23bcdab76512ff50df527142665bde82dbed2081fb3420332761d2e4083899c2c59e13106c83602ade528ca41c9f7dc0cfd16075408650bfbfbb6739618829e SHA512 467efb2ab8a13b1b1ab622dee54e92c75f91cb0e0ad8f9eae561b4b4d1157a205b30e5c393ff1623746f81396912d7455e1fa87e3cd8df1aa02813dd9d53cbbc MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/github-exporter/github-exporter-1.0.1.ebuild b/app-metrics/github-exporter/github-exporter-1.0.1.ebuild new file mode 100644 index 000000000000..6e6ed68ef853 --- /dev/null +++ b/app-metrics/github-exporter/github-exporter-1.0.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module user systemd +DESCRIPTION="Github statistics exporter for prometheus" +HOMEPAGE="https://github.com/infinityworks/github-exporter" + +EGO_SUM=( + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973" + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod" + "github.com/davecgh/go-spew v1.1.0/go.mod" + "github.com/davecgh/go-spew v1.1.1" + "github.com/davecgh/go-spew v1.1.1/go.mod" + "github.com/fatih/structs v1.1.0" + "github.com/fatih/structs v1.1.0/go.mod" + "github.com/golang/protobuf v1.2.0" + "github.com/golang/protobuf v1.2.0/go.mod" + "github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37" + "github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37/go.mod" + "github.com/konsorten/go-windows-terminal-sequences v1.0.1" + "github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod" + "github.com/matttproud/golang_protobuf_extensions v1.0.1" + "github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod" + "github.com/pmezard/go-difflib v1.0.0" + "github.com/pmezard/go-difflib v1.0.0/go.mod" + "github.com/prometheus/client_golang v0.9.2" + "github.com/prometheus/client_golang v0.9.2/go.mod" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod" + "github.com/prometheus/common v0.0.0-20181126121408-4724e9255275" + "github.com/prometheus/common v0.0.0-20181126121408-4724e9255275/go.mod" + "github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a" + "github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod" + "github.com/sirupsen/logrus v1.4.2" + "github.com/sirupsen/logrus v1.4.2/go.mod" + "github.com/steinfletcher/apitest v1.3.8" + "github.com/steinfletcher/apitest v1.3.8/go.mod" + "github.com/stretchr/objx v0.1.0/go.mod" + "github.com/stretchr/objx v0.1.1/go.mod" + "github.com/stretchr/testify v1.2.2" + "github.com/stretchr/testify v1.2.2/go.mod" + "github.com/stretchr/testify v1.3.0" + "github.com/stretchr/testify v1.3.0/go.mod" + "github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80" + "github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80/go.mod" + "golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod" + "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f" + "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod" + "golang.org/x/sys v0.0.0-20190422165155-953cdadca894" + "golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod" + ) +go-module_set_globals +SRC_URI="https://github.com/infinityworks/github-exporter/archive/${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI}" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + set -- go build . + echo "$@" + "$@" || die "build failed" +} + +src_install() { + dobin ${PN} + dodoc *.md + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Before you can use ${PN}, you must configure it in" + elog "${EROOT}/etc/conf.d/${PN}" + fi +} diff --git a/app-metrics/memcached_exporter/Manifest b/app-metrics/memcached_exporter/Manifest index 67f911c2d432..a6cc0690c91a 100644 --- a/app-metrics/memcached_exporter/Manifest +++ b/app-metrics/memcached_exporter/Manifest @@ -1,5 +1,7 @@ AUX memcached_exporter.confd 62 BLAKE2B b663b955cddd850ea26292f92e8462132057424cff4292a7c95b40f79c000e90aef739652cd0ca3d419bd648b3062b5374b38bf934ce30c9c5084d6abda7e196 SHA512 8859128c27264826b665f8be1ea87d7df4f9c4731dfc065914f69efb1a3fedb1cdc09cac99a2a67ef12668b87ceda2f2ae4ccd99c30d23b9eb424bfc51406452 AUX memcached_exporter.initd 485 BLAKE2B c4e34f4ae1e43b78291f24f32857e548a9ba384f9f359962a65e2349c45096d665debad5b85f5109de4972cd957c87825d46cbedca5d954c76a1a34071e1a616 SHA512 78219e03ab100aa1fecb61ecc8bd8964eab03c1eeb0566185a6135c3fc4ce6fab07e303fb638ae6137d19fd41b6064aa9cfddc9be9739d56e1c8bd15d1e6f04f DIST memcached_exporter-0.5.0.tar.gz 1350752 BLAKE2B e9a326ca155e0e0a89dd556f0a97ba9bbe73e3e02a905497c55a5390be2cbf211dde9dda37355dd043b711258c78cf911c79ae898b6e0934f2d4b2ddef7ae946 SHA512 62ec7f9cefc88425ea3b53a634b2d5ff1534624b6e149c962372e81a7271fc1bf3c01c7d8641dc49250b8d124bec740b3c2768e62d51cfdc025a29f71a49b428 +DIST memcached_exporter-0.6.0.tar.gz 1709929 BLAKE2B 3b2f3272289d7745b560eb466918c00a2b65947dfcc219d2971cf6215a5590809c48e4b4385e572ff38c1abe7af74c9bf1575450498382b18644a46d1dab3dd7 SHA512 02238da4e901c3e3b57144501d64fa19502bdcf1aa65e775188ef18f9e524c4e2a44d87e8dcc926261b589715a8347628b87c2e418bcbcc63b5a18058ef771be EBUILD memcached_exporter-0.5.0.ebuild 1008 BLAKE2B e49de3104ba4dc962e543fde5cd45b4464ff68966849ac284ec9fbea20cd01bc1d1b5807a0a127f2393b77b103111100d4a8aa8a3e2bc8afab72ebfb3074d040 SHA512 36f9ca2d015a94bd8ac666eb1a4524e44ff29ab2e44c7e274ceefbde8a443c59093cf114076466ad1daca8220458b52113c830f5e3d28653c59bbe4d7ebf069f +EBUILD memcached_exporter-0.6.0.ebuild 757 BLAKE2B 61a9086408162717e79a567ebf5f496734fac87240b3bd2e646b154e1d30aac00e4adfa78c7b6d41848393636cbf763936455142758553fcc9c6c522c0920de1 SHA512 e64e27e35ba8225b810703fb57f5170c26bc3170c415b77bbc958842429203de3d1b068b2eb8a1584e3ce51dd53ec48b6d0f4ff78d5a33d3e39c0f03f61c3371 MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 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} +} diff --git a/app-metrics/mongodb_exporter/Manifest b/app-metrics/mongodb_exporter/Manifest index 609e8458fcb6..c689d669c935 100644 --- a/app-metrics/mongodb_exporter/Manifest +++ b/app-metrics/mongodb_exporter/Manifest @@ -1,5 +1,7 @@ AUX mongodb_exporter.confd 94 BLAKE2B 25c98466e22b137a33f347d2c8c53fb15e0727423b6e0d8d804547a9b4220ca1c742cfdea6f6afbbb1fc6a38adafda56d1d372b5175bf3293ee5094ba2c835d5 SHA512 3ead6c80528042a436d8b0d013998e410c9a4216f532876766b7631187051b29b37bc4d834dcdc1483b1575dfa3b975baaef03e0637e63e279a5fbd9b3b75073 AUX mongodb_exporter.initd 591 BLAKE2B bc176954356a3633fc9a3ca314803e1149c14767f11da5d3d6c29cef0e0455b6e61571ca85b19628a5d6e61c653c2de37b16bed34d0d36e51aee1c3fc2ff1c7e SHA512 d81430cce189c5655c2432e5133826e73a92f04f33b3a4d632d0bcf27dc31d9fc2fcaf7a3322e9c6905606770be032647b5beaa1561c967522a4f331f43fe939 +DIST mongodb_exporter-0.11.0.tar.gz 2638227 BLAKE2B c8d6cde2fcc40bcdbbd84276d78e8ee2012a0237637ce51a67d458d030a4f8b8d5b72b3eb434cbbfd403aa7481ed76651b2af181b3785abf913ae6cfd4f2faf0 SHA512 08c2f889c5f503804af35e41220729fa9fae3226cfb89642964edc8c391fe8209cd6f8246b0e904711a63a1c0cf613d5666373035d94db537840ae9ac561c2cf DIST mongodb_exporter-0.6.2.tar.gz 1296198 BLAKE2B 4cd04b5e69788f2bbe3e87eafe6a7cf4f0a2e72abff4784176299e46943eac2219141beed2f8d11cc8a2458737456d8edaed42a5392bedd017e85315dc75ba1d SHA512 52c1464af82c09fc79338e805e62936d4da8131cea1bb6608500fa36a2d4069676eace5da0ed1b14d82de9d626be301b42c7bc1d5c620bbecb47ae9a350ecd65 +EBUILD mongodb_exporter-0.11.0.ebuild 784 BLAKE2B db8651fece4fd52be70fb02531b9a00b9d5ec1181fa101a0efcec452d34cc970ae106e78c41b1310cadd6e29a9843187119d42e639fd5c34b9082c0420260cef SHA512 6183afa9cad01b0033a14c6e76551ac13304e8d05bfb1cfae807c9fdd9f0436663c916ae77f742e42b3c98d772cda0fd32bd7d586b79b24d2d6a353af82b73c5 EBUILD mongodb_exporter-0.6.2-r1.ebuild 1083 BLAKE2B 4db266988c99c5698bf89e6455a622efed443ecabc51026c41ba7300482701ab4e8e2535e726c1c707f86d2448a49162dafbb634fe156c449fad422e87392364 SHA512 6619382b4b71fe31acdb68a032d64c41212aec4645d0a694d0de97299a2cc5da4efafb944d5a18e2b51faf23429a043a001b1a28c9ad60e2141918684484b4ae MISC metadata.xml 337 BLAKE2B fa3533a2b316cff8f853637e56b468ef32c28af3b61584b98119b51bc3c9fcef189a951dcdf64867fd5f9de15f8dbbe145891fcea84e77dd43cb059e2294fc8e SHA512 95f1209123d7cff4bc1765db88a5dbd91248a310a70f7637c71e088a1458db54b4d00d83db47899062d36036a9951f60be004104b7dd3f22f72564de7662356b diff --git a/app-metrics/mongodb_exporter/mongodb_exporter-0.11.0.ebuild b/app-metrics/mongodb_exporter/mongodb_exporter-0.11.0.ebuild new file mode 100644 index 000000000000..88aefeccd854 --- /dev/null +++ b/app-metrics/mongodb_exporter/mongodb_exporter-0.11.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module user +EXPORTER_COMMIT=a642618 + +DESCRIPTION="Prometheus exporter for MongoDB" +HOMEPAGE="https://github.com/percona/mongodb_exporter" +SRC_URI="https://github.com/percona/mongodb_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 AGPL-3 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-util/promu" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + go build -mod=vendor . || die +} + +src_install() { + dobin ${PN} + dodoc {README,CHANGELOG}.md + keepdir /var/log/mongodb_exporter + fowners ${PN}:${PN} /var/log/mongodb_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/mysqld_exporter/Manifest b/app-metrics/mysqld_exporter/Manifest index 684fb290a6a9..0da2240c18c8 100644 --- a/app-metrics/mysqld_exporter/Manifest +++ b/app-metrics/mysqld_exporter/Manifest @@ -1,9 +1,12 @@ +AUX mysqld_exporter-0.12.1-skip-tests.patch 545 BLAKE2B 02e01f23cb302dd128d47f48f9b20ded113ff37f2053e932b3d0ab510a22b14be6cb80779d2d545e774285d9772f8a6f7313c5a0c251d734e194fac992994185 SHA512 c4c808bae622797e47261824c8bfca7f7f8b04771c047440eb9ea923f45517ccc49f53cf71c7b51e3af8cd5b9c99911d80fce66e12487d87dc9d242381550cbc AUX mysqld_exporter-r1.confd 893 BLAKE2B bebec4ba675a5f7bfec52f0c1ad3b824f032258397dc9386892daa4d93ca1f7134c85e92c7662f9bd5b34d86478e2b3be2fc5b4adfb6fa1ece8d901ae530ec3e SHA512 3291e96479ece4f99de2c26e127469349f6197bc2764691fb4bffe5729fc9ce625fa84e2859649f0495260b339afa20edaa7bd2af99e6f161e6e6bbb153eee39 AUX mysqld_exporter-r1.initd 2053 BLAKE2B 46542a80ac4c894c0cf4f50b8e8a616a019f1c2d7c6846b524b626859bf521d6f5b15336537c6fb06c5f876dd0d8adcd592363a678bc6779bfb5352a93dca06b SHA512 3a7c91492a2533cbdb2846cb5f3a03e66caf332ff931d10227c32332aaf210e74f2dd56977c5146a59042529dfb14eebd0c78e8dc63675d4884958bdc81f5252 AUX mysqld_exporter.confd 891 BLAKE2B 340b8d6b5f3fdc0a52851197cfd94b1d9d20fa3cda349c581a016c6cc7edd53cb7d86b634487551f916fd5c84294add402397cb9bf0fc2efb211b589dd571dd2 SHA512 ed4f949c8f5f88ad54c536342adf90be5d74922b54c383735a957e571aba341057830c7e8cdc0e45b53e439c5297d3ad70ba7bd178f77d10615787ed51bcc03f AUX mysqld_exporter.logrotate 68 BLAKE2B 04a9a0df5dae2a2afd3374cd6f6fd5d04df7629bc85ed63792ecc9e2b4772668d1f5b1fe4baf14b17c26a495ffa1ed3a7d748719db9a72f427587243505158d1 SHA512 3eb2e6bfa0eae0847c0b1e2e7fd990068cb0ad570d14463c88a8860d70ebc378b2e3bc4141f0a98e95304c972c765ae48dbff726b208ba825fe1f4e58765e462 DIST mysqld_exporter-0.10.0.tar.gz 971604 BLAKE2B ec077b7b6a15f6173e5cc04e741c51c4d26a214601da8eb1aede49ee325f52bea2140b8e5b3bdbc2a1e527e40c95099dca2a57501d44a26e787cdc330f4aa8b8 SHA512 0a7b0ff537ad59a9b64aa18dfe1d1eb9253b12ae566d5c151555fbd4457b7e65890b6569632b452ae317b3acbfa94c12d96f6fb6e4f982b9b2161fc4747330f5 DIST mysqld_exporter-0.11.0.tar.gz 1393809 BLAKE2B ac6b04d2ad24f1c083c411f10bbb6724c2458be357ff60e1950aa624955497432295726e7f739dff03aa1ed8290d852a9511e01893f5a2b293e79b3214270578 SHA512 69f39ecc1b17bfcfd3acdad9d92a70c1daf3f0c9690770fa390a818bd29f43a98bfe4856f22b48e9d2d9945ce98ded0ea54c95010755a85ebc3ebfdc353d0c24 +DIST mysqld_exporter-0.12.1_p20200622.tar.gz 1640334 BLAKE2B fa52fd7474af548bc9429026d7c92bc543cff7f2e2f5e17007a52adc647d6d022a4ec9d099376cc469b4fdc8bab285e0e699a1b10938fc6b7a6704dcc1466a50 SHA512 ccac9a718214c9ab82362deeb81949cecaa6c2fc6567ef7e3d099ca2dbf8385cb9c498837e41ad0bcdf5ec2c9d82fd159792245b97e53c182a30917e80a20cf1 EBUILD mysqld_exporter-0.10.0-r1.ebuild 1586 BLAKE2B 0920fe22a1505ec3e4d5efbd63e24cf619a0eb005ca64e9d1e398f8a06ab7a9afd56956a3e5aa3bae42d5ac3170d8494f3668bacab6a38cb3a83b6b949a2b56a SHA512 f4bcc367fcf0684d6633797bac733be320b97a800129a97d811e5e7eea4f110122a2b918d360b15077e30178a55e90956b142c59a8e14a8dfe76cda3d0655cda EBUILD mysqld_exporter-0.11.0.ebuild 1927 BLAKE2B a6b49e427c3cdf45f7f66711727e6cd9dd3dca74eac76c7642b1634e5073665491136780d95f0bbe5ae8f6157fac32f36e94fba96c83392b277c9ca294b23ceb SHA512 95e0986b93a4ace49574b95f5e62299080747c02ccee6aff8f18a2ae1070e7bf1cb7640fe380759de45390a0f2d7b0b786ef64f7c010ca07b12262f640965e54 +EBUILD mysqld_exporter-0.12.1_p20200622.ebuild 2070 BLAKE2B 83dd4d2a98364c49a7857dfb52e5268227cd16f03c947db5f1a26aba17134edafd788ab00b5d0a2d9c4ca696a5e80d30b8282c333f483a4166f02b107567f1a7 SHA512 fb65fd1f3b1109f47e8877dfe2a15ee3649439c2e17473497befb5aee1cf55901a4333ed262eef18d9564b016753e916f7355c7361ad0c55d1e48b9fb9da8395 MISC metadata.xml 342 BLAKE2B c99db8a7ba47d8b948f5e8623c98ff234a67d14485a09a412d55155b878fe2cff4594934f2e1aef749072f4f52ca8c0b660e52764cc20b40aedc3ae2280d8fdd SHA512 55dcb15bda103364487e98359157961d7859af7e38cef4030e53fe2fb50ded0e34d27a1607171e62d60dd53e93b2cd1f30becded706dcb362ce3f45052cd0203 diff --git a/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch b/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch new file mode 100644 index 000000000000..ea59067cb288 --- /dev/null +++ b/app-metrics/mysqld_exporter/files/mysqld_exporter-0.12.1-skip-tests.patch @@ -0,0 +1,22 @@ +--- a/collector/exporter_test.go ++++ b/collector/exporter_test.go +@@ -71,6 +71,8 @@ func TestExporter(t *testing.T) { + } + + func TestGetMySQLVersion(t *testing.T) { ++ t.Skip("Test requires running mysqld") ++ + if testing.Short() { + t.Skip("-short is passed, skipping test") + } +--- a/mysqld_exporter_test.go ++++ b/mysqld_exporter_test.go +@@ -142,6 +142,8 @@ type bin struct { + + // TestBin builds, runs and tests binary. + func TestBin(t *testing.T) { ++ t.Skip("Test requires network access") ++ + var err error + binName := "mysqld_exporter" + diff --git a/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild b/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild new file mode 100644 index 000000000000..03752da0489d --- /dev/null +++ b/app-metrics/mysqld_exporter/mysqld_exporter-0.12.1_p20200622.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +# uncomment the first setting of MY_PV for a normal release +# MY_PV="v${PV/_rc/-rc.}" +# set MY_PV to the full commit hash for a snapshot release +MY_PV=f5d5289f7627016d8b53b0b3fa7615da8a73b56a +MYSQLD_EXPORTER_COMMIT=f5d5289f + +DESCRIPTION="Prometheus exporter for MySQL server metrics" +HOMEPAGE="https://github.com/prometheus/mysqld_exporter" +SRC_URI="https://github.com/prometheus/mysqld_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" + +DEPEND="acct-group/mysqld_exporter + acct-user/mysqld_exporter" + +RDEPEND="${DEPEND}" + +# Comment this for a normal release. +S="${WORKDIR}/${PN}-${MY_PV}" + +PATCHES=( "${FILESDIR}"/${PN}-0.12.1-skip-tests.patch ) + +src_prepare() { + default + + sed -i -e "s/{{.Revision}}/${MYSQLD_EXPORTER_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + + promu build --prefix bin || die + + # comment this for a normal release. + mv bin/${PN}-${MY_PV} bin/${PN} || die +} + +src_install() { + dobin bin/* + dodoc {README,CHANGELOG,CONTRIBUTING}.md + + keepdir /var/lib/mysqld_exporter /var/log/mysqld_exporter + fowners ${PN}:${PN} /var/lib/mysqld_exporter /var/log/mysqld_exporter + fperms 0770 /var/lib/mysqld_exporter + + newinitd "${FILESDIR}"/${PN}-r1.initd ${PN} + newconfd "${FILESDIR}"/${PN}-r1.confd ${PN} + + insinto /etc/logrotate.d/ + newins "${FILESDIR}"/${PN}.logrotate ${PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + elog "Create \"${EROOT}/var/lib/mysqld_exporter/.my.cnf\" to read MySQL credentials from file." + else + local _replacing_version= + for _replacing_version in ${REPLACING_VERSIONS}; do + if ! ver_test "${_replacing_version}" -ge "0.11.0"; then + elog "Starting with ${PN}-0.11.0, command-line flags will require double dashes (--)." + elog "You must update your configuration or ${PN} won't start." + + break + fi + done + fi +} diff --git a/app-metrics/nginx-vts-exporter/Manifest b/app-metrics/nginx-vts-exporter/Manifest index cc5adf43289c..1384527a87df 100644 --- a/app-metrics/nginx-vts-exporter/Manifest +++ b/app-metrics/nginx-vts-exporter/Manifest @@ -1,5 +1,8 @@ AUX nginx-vts-exporter.confd 138 BLAKE2B 5276947629899f4e338324d7bbfcd7afadac604fbe9d0b9bc101fbbfc5af2bccc2d9968315abcf060932defb3a054885527dd058e6ff20594ddfb77fafc8d138 SHA512 2b41b8efdef35f4beaf8b991e77a7ccf76be55290f9ddfa1262f860dc3b57411bcd1a3332f23119d87e3f72640d23da28d9080df43902f711cb1d1bff838532f AUX nginx-vts-exporter.initd 637 BLAKE2B 9fb8c9e1908846391ef0afc4b586f40a0ae13410c9f04e0ee594874b0434fe6fc0bab029f9d5021e5ce41a67df622bd2d7dff1f014baf25deee07d3e65a22eed SHA512 75ed5cfb084022e86058e20a7daee0c9c0fed3ee68090818e6f9d9b92dd8aee86145267c6b5309ede12f0a5103f80b74c43fd2522015ec866217e927c16a3803 DIST nginx-vts-exporter-0.10.3.tar.gz 149578 BLAKE2B c73a8cfdb875fcc02d3b7d66f5b436b9e3e8d516c8a241062721e3124452722e9e30abefd5c79e89772a480fad005d0cf25d0359dd253a39d7ae5a20495f074a SHA512 0ee97be313dc829ae9e23bc836d7e11106c4843306583ff8baa38fa10bd9d56396ae3f6ce12cad4e08a383047c3179013962284aef6e627b23b89c72c564789e +DIST nginx-vts-exporter-0.10.7.tar.gz 436116 BLAKE2B 0b6306f20c429fb30e166a6862d7b050f80f6fa47ef2db07d9cd883dfc92e70e2099b99bcab2e7530f1350da955abd1abbbf538613691d2ba76bcccaca2837e7 SHA512 54145aa7c4298e1ab65087c42258b690649e0e374d7bcc4abc426a128878849921afecd4bd25cca67ca2b3c65e3abb2786c09d4ffe811cbbec65e7257fe9a043 EBUILD nginx-vts-exporter-0.10.3.ebuild 1135 BLAKE2B 0e91a3523bdd45e6e8000f027fb07832ef7beed1524b710ebdf01d3de8b996a326e421021763dd08815307243119a5112dfb3637be305508ff969bcb3315deea SHA512 2e84e5f6c1bb58f2ef8668f9bb75e34d3d4515991fb85996278f39d14239671c8c4948b87115a0984941f698fe437396b1322037eb6cc0241951f25b3c3367ad +EBUILD nginx-vts-exporter-0.10.7-r1.ebuild 1049 BLAKE2B d2a10e147a6c27be6d0fad224f7dc3f7285c7a4e8d88cae5c13fa9f1870cb28a553287ed3f184e1307ec09f2fb9b01cf877d811dab5190fa737efae87ba73fd3 SHA512 d44d9eb728872c13babe0a320de54b62d2819d74f9c756772341708fdedd2d200c0f8fe3d706598cc413346ac6f72b458c7c975b541644824f9fdeed996fdd66 +EBUILD nginx-vts-exporter-0.10.7.ebuild 996 BLAKE2B 47c2c5edfbe432eb5004227834d7e5bc3f0be6696f8ca8fc71e818f065122f0e3bbdde1b4298678ae53d6ce878c3276edca06a39cc72695c193fc0a852809b42 SHA512 1f0ac85412515c99b74605cf5ac753ac2b23a070615163e8f6f293a9bd7e995d10867891d1d72e4d9c4925bed16622a23d76c3c4e3ad70739372082ea1dc1ed4 MISC metadata.xml 339 BLAKE2B 1b216bbb5dfeb52eb16a2c95103ac2d04a9d28e93a48d594de97f63c75a97d02b934bb5df0f10d180b0e0f566c82b9b9e8fa324a28a93932052d0b6954b6cfd3 SHA512 e7803bea6cc496fb46cec4293fce2d7fc3dd05b93165806f57cb695184fceea78f4df2b911da2a9344000ae2de5a9ec5982a0fc2335bb2fed8fc7f45ed6d2efb diff --git a/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild new file mode 100644 index 000000000000..73b7421fdceb --- /dev/null +++ b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +EGO_PN="github.com/hnlq715/nginx-vts-exporter" +EXPORTER_COMMIT=b935b793fbd8478d3feea529b036e753169ddabd + +DESCRIPTION="Nginx virtual host traffic stats exporter for Prometheus" +HOMEPAGE="https://github.com/hnlq715/nginx-vts-exporter" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" +COMMON_DEPEND="acct-group/nginx-vts-exporter + acct-user/nginx-vts-exporter" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +src_prepare() { + default + sed -i \ + -e "/-s$/d" \ + -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" \ + .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + dodoc README.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild new file mode 100644 index 000000000000..ed6d121878b4 --- /dev/null +++ b/app-metrics/nginx-vts-exporter/nginx-vts-exporter-0.10.7.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +EGO_PN="github.com/hnlq715/nginx-vts-exporter" +EXPORTER_COMMIT=b935b793fbd8478d3feea529b036e753169ddabd + +DESCRIPTION="Nginx virtual host traffic stats exporter for Prometheus" +HOMEPAGE="https://github.com/hnlq715/nginx-vts-exporter" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +BDEPEND="dev-util/promu" +COMMON_DEPEND="acct-group/nginx-vts-exporter + acct-user/nginx-vts-exporter" + +src_prepare() { + default + sed -i \ + -e "/-s$/d" \ + -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" \ + .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix bin || die +} + +src_install() { + newbin bin/${P} ${PN} + dodoc README.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +} diff --git a/app-metrics/node_exporter/Manifest b/app-metrics/node_exporter/Manifest index 3235a863a442..8cd423184cf2 100644 --- a/app-metrics/node_exporter/Manifest +++ b/app-metrics/node_exporter/Manifest @@ -3,8 +3,7 @@ AUX node_exporter.confd 111 BLAKE2B bb40370633c41a4f1283677ed16ad9734c7f180683e4 AUX node_exporter.initd 701 BLAKE2B 6dbe6f147332580c2f1433d293649d818bcb0033faf0cd14567eb1f017a677b3a5568a51c3fe9929d3e6f9f96455d96138709444cba8024235084dbfcaf5b78b SHA512 9af0a58796aa087f1dfbe00bc25e4af0d3a7e4054071bfecd76b9e3dbc3c222b649fe0f7c2a5907ce733d3c0cc3eba127d5815366a749fc16952d1c6b9d397ae AUX node_exporter.service 188 BLAKE2B 3e8c0598afc0d52193912cd34e8daaccad1ec6c58d93ee442789851d471b3b89bb6195c3e499560024b4259d8845df11efd51827f9e3f338987083d84601b5aa SHA512 2f61c1b651ec30d8a75da137d6da1cd82b51e87e11264e3109ff28c7269493c746feba52d63b25441dae82dd04d48cca94eb049fed6e63e6cd4297830260499c DIST node_exporter-0.18.1.tar.gz 2110072 BLAKE2B 48c73d00cba892e34e95d40bd29c9ca70bc5748590f00cb7f8adcd25d8a9504f669d887b1273cc65316ca55b06c36d97a3e19a66382f35d5768db7c315981a13 SHA512 cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0 -DIST node_exporter-1.0.0_rc0.tar.gz 2753717 BLAKE2B 2e1984d080ce2a16ca710a3da882b311510b2741836d615075281f5fce2641be35084090d9bcedcb8bf4f6a18333c5fcd53eb98817d1efed4c1a26261a02bffd SHA512 ec1d79367c69a7ccdacc9482a38625ffc9adab6d781b789cc226eed0bd893deca5cfc420a096f790ccd57834492551d36e2f307ad27a6c67585c8ef31887b50f +DIST node_exporter-1.0.1.tar.gz 2792033 BLAKE2B 4e86c348a293e8a4a8d5e22fe99871d84a817cfbbe3ac10b0e7b4fbba3ae7b12352c619f140e3568aa2fb3e4cdfdbde0d19d792497a0b0007b634cb3a4d21e38 SHA512 0643042a04494a65d1ebdedf78671a1e3473b7ac6f3bc606fa2c52e893dfc68b591ef7e38ac6768c4c529c25b831811c01839475a4fde9baeb0a6c581a57839f EBUILD node_exporter-0.18.1.ebuild 1452 BLAKE2B 9bfd50a37838b40c36a94197ff5cd39ef38b9f553d2fe3169bdf33cbd2055f40825fd0e4645369fdf0c375d15fd82e62885316b5772556db26e4345d8cbe9149 SHA512 80791542bbbdca7b3ec58f8f25d3c84a13b52809d1981af94bb91cdf5edc0f613e93ce53c4b71da8d805a0f19935bace4c941b4f8d4f20e82e70bea3eed37699 -EBUILD node_exporter-1.0.0_rc0-r1.ebuild 1251 BLAKE2B ff2b7020ed98f0a79d5f51e54db83df2315ff04b7f4c175a3fce3b084007ac7499b27facf98c0e4b6158814cc4c162e6b657e7b0d78fd7f4a5517ed2666b9d9f SHA512 8862c1e98df69ee9567908d9761c341deca56e1daee0910573ed3fb69f872ddf531909c67b7581a2096f4f71739b8322a5a421767bec58b8945a80fa62b5e85c -EBUILD node_exporter-1.0.0_rc0.ebuild 1526 BLAKE2B 0fd95b50428006f3417061163ed21593f687a8901951123add14927adaa809b3290668b2614146f78a79b9a5f7e89088ccad889191736e4cb02a9704158afd0c SHA512 6c15ec90a199386990b1e88861c62a19a3c5ef314ed58ad1c372a520089a971bfc38df015542c39ff3ccec818295d01f8b9ca2985718c22c357e3607756082c1 +EBUILD node_exporter-1.0.1.ebuild 1251 BLAKE2B 9bd450bb2b143043912e8aeff59ac161516f1b220b026898ab31fd80eaeada00f46d206152e8d2b89c76167e3d7cdb6ad47a0673e87ab7200edb76d8d144319f SHA512 7ba2b66ff69a33596eb6ed08523da98f2a25726e1a60c255528b3d7490e049c7396eeb71d86e1a3e60f9862ce8d9963b5eb3e05c84226fe98b6c2a806805f150 MISC metadata.xml 337 BLAKE2B d9d866eca2162bd2c647a92d7c2c21eea95e944d81f9f4eb0911f0b111ed4eb62f2bf2c6042afe1a12caf58694ac692498923f9da2733c4fcb4419946e3eb613 SHA512 9a616d85dc1a26ce5bdd84f6a08f5cfaed1f273ee62d3fdec395507b0cfe0cbd23db13c8380671caada62f81e202a2a9ea4793dca6b6f6a88fe6dea9bcf7b8c0 diff --git a/app-metrics/node_exporter/node_exporter-1.0.0_rc0-r1.ebuild b/app-metrics/node_exporter/node_exporter-1.0.0_rc0-r1.ebuild deleted file mode 100644 index 43ee1e033e0b..000000000000 --- a/app-metrics/node_exporter/node_exporter-1.0.0_rc0-r1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit go-module systemd -MY_PV="v${PV/_rc/-rc.}" -NODE_EXPORTER_COMMIT=ef7c058 - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" -SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0 BSD BSD-2 MIT" -SLOT="0" -KEYWORDS="~amd64" - -CDEPEND="acct-group/node_exporter - acct-user/node_exporter" -DEPEND=">=dev-util/promu-0.3.0 - ${CDEPEND}" -RDEPEND="${CDEPEND}" - -S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" .promu.yml || die -} - -src_compile() { - mkdir -p bin || die - promu build -v --prefix node_exporter || die -} - -src_install() { - dosbin node_exporter/node_exporter - dodoc {README,CHANGELOG,CONTRIBUTING}.md - systemd_dounit examples/systemd/node_exporter.service - insinto /etc/sysconfig - newins examples/systemd/sysconfig.node_exporter node_exporter - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/node_exporter-1.0.0_rc0.ebuild b/app-metrics/node_exporter/node_exporter-1.0.0_rc0.ebuild deleted file mode 100644 index 9eae734e4acd..000000000000 --- a/app-metrics/node_exporter/node_exporter-1.0.0_rc0.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit golang-build golang-vcs-snapshot systemd - -EGO_PN="github.com/prometheus/node_exporter" -EGIT_COMMIT="v${PV/_rc/-rc.}" -NODE_EXPORTER_COMMIT="ef7c058" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus exporter for machine metrics" -HOMEPAGE="https://github.com/prometheus/node_exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0 BSD BSD-2 MIT" -SLOT="0" -IUSE="" - -CDEPEND="acct-group/node_exporter - acct-user/node_exporter" -DEPEND=">=dev-lang/go-1.12 - >=dev-util/promu-0.3.0 - ${CDEPEND}" -RDEPEND="${CDEPEND}" - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - mkdir -p bin || die - GO111MODULE=on GOPATH="${S}" GOCACHE="${T}"/go-cache promu build -v --prefix node_exporter || die - popd || die -} - -src_install() { - # binary and docs - dobin src/"${EGO_PN}"/node_exporter/node_exporter - dodoc src/"${EGO_PN}"/{README,CHANGELOG,CONTRIBUTING}.md - # systemd - systemd_dounit "${FILESDIR}/${PN}.service" - insinto /etc/sysconfig - newins src/"${EGO_PN}"/examples/systemd/sysconfig.node_exporter node_exporter - # openrc - newinitd "${FILESDIR}"/${PN}-1.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} - # maintence - keepdir /var/lib/node_exporter /var/log/node_exporter - fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter -} diff --git a/app-metrics/node_exporter/node_exporter-1.0.1.ebuild b/app-metrics/node_exporter/node_exporter-1.0.1.ebuild new file mode 100644 index 000000000000..ca15b40f88a0 --- /dev/null +++ b/app-metrics/node_exporter/node_exporter-1.0.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module systemd +MY_PV="v${PV/_rc/-rc.}" +NODE_EXPORTER_COMMIT=3715be6 + +DESCRIPTION="Prometheus exporter for machine metrics" +HOMEPAGE="https://github.com/prometheus/node_exporter" +SRC_URI="https://github.com/prometheus/node_exporter/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +CDEPEND="acct-group/node_exporter + acct-user/node_exporter" +DEPEND=">=dev-util/promu-0.3.0 + ${CDEPEND}" +RDEPEND="${CDEPEND}" + +S="${WORKDIR}/${PN}-${PV/_rc/-rc.}" + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${NODE_EXPORTER_COMMIT}/" .promu.yml || die +} + +src_compile() { + mkdir -p bin || die + promu build -v --prefix node_exporter || die +} + +src_install() { + dosbin node_exporter/node_exporter + dodoc {README,CHANGELOG,CONTRIBUTING}.md + systemd_dounit examples/systemd/node_exporter.service + insinto /etc/sysconfig + newins examples/systemd/sysconfig.node_exporter node_exporter + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/lib/node_exporter /var/log/node_exporter + fowners ${PN}:${PN} /var/lib/node_exporter /var/log/node_exporter +} diff --git a/app-metrics/openvpn_exporter/Manifest b/app-metrics/openvpn_exporter/Manifest index 80630a6ff1a4..baeef4ae0197 100644 --- a/app-metrics/openvpn_exporter/Manifest +++ b/app-metrics/openvpn_exporter/Manifest @@ -1,6 +1,22 @@ AUX openvpn_exporter.confd 113 BLAKE2B e594f82156478db050f0959708e1e10b63bd18a347e106f5f179511355e0d7a9edbb1137f45f675bd50cd5cca8699711fe77a88ef18acc35b8656bb0e6869b3d SHA512 9b6a42c2b3ddbcdc5d497288cb42df0ddf48621cf0b298ddcd199c2f189fa2f13603dfac2bdd3b7797425198aeba01122de75a439f1d0072f2f77796aebf3648 AUX openvpn_exporter.initd 628 BLAKE2B 17d220ce8b230eec2f9aaf079398e2e0ea43e492d11d36468a4ebf10297089034e3fb8657b84be61ca79c2c82ab6aac7218f28607a84559957b75136c5fa6617 SHA512 ac5416bf68ef6228e78ca459efef26e372ca25377b23cc036db69ce635f6b11c32154b0a4823b9cc4745f067378fd5eff391983750ee0ea2d3e69b1041832a6f AUX openvpn_exporter.logrotated 105 BLAKE2B b3524dbb7a86f7b70568a214b08855c9ab56a054a31bcf34447c4518aebbe4a918a77d0f0896e9c0afc66655c1359b7e09cc4297af54f612142e1a0c2fd7954a SHA512 5e52cb2df57040dbb66ab18dff7cf3cf641da7331edec966a767b9a0060f90236863f99599a24e71cc49fe15448c202eddb614669446f221e0349e49a40ca9dc +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.mod 31 BLAKE2B f69b0989e51b0b649f81b044169fe4309f130eba5bcc6ff33aa9666b1b754aa0e524b8c7a627a91000ccc4f93bf93cdee3e97bd3b2184b050878bc3f413f0c72 SHA512 f21fd002853e4435421f8396e6be016f65be1537815c60d23940caf26e3f14dd6f2caac802cb64cd586b1b1f1220b2727de347b3d1816b8e741f68d87ebcf03f +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.zip 15013 BLAKE2B daecbcbb12a60a1423c4f419db44a0d63108fe622cf843593abb16fd75dcea703b3cf56f1c13433959eccbfb2a9bd5640f837f4be3296220366438dd7ed04f86 SHA512 44ccb3d6134742a80ac15830613c169d1b0d43e6ce40c2f2fdea07203bec134e1ba80dc57c6d14a007014ea141dca311b3ebe61b12d2181311665a9ffe83ca39 +DIST github.com%2Fgogo%2Fprotobuf%2F@v%2Fv1.1.1.mod 32 BLAKE2B 939b72a591bc5fbb649c21a95b2c4b3f5d3ade273377f1f89407e55f436e7a863f15d708aabfc5435334500c8cb1e3ba057439c8ec81cfde68c1ec6794c6de6e SHA512 ab6c57ada3b0d1e36c91f3e0f45e573b91a4869f230f02a7e5e3e5a8f7e020bf56c63df1cbdc5b552ef9a4229ab739cf76df7f799091a2efa148ab9e5c12b1c5 +DIST github.com%2Fgogo%2Fprotobuf%2F@v%2Fv1.1.1.zip 2461758 BLAKE2B e02c6e6512de9be1410923a6b3eec36a087f8de00e1d1e715a61e6f26a18352db169b1dbec49e3d563e294d8c65c51ca5b55361dff70d1e9e20976e46209209e SHA512 7f9d1d2671c82a1df5f79a154340dd1fa1e92952feb03a1ddaedb1f6cea371bde8d6f7c774a4351aa87abc2646f97891d0beb4d175fe9d51e2f761d37f2699ec +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.2.0.mod 34 BLAKE2B a4239cba934b6e80714b93d47e88f22ad28ce41d1d984c4261cc3f5f3b857fb28785223fa911b258e2665be2a9d24ffbd925e9e0f374452a2aacd712ad9d5f75 SHA512 e059a34363bb826bbcb8981adbfc10da90e04b86dc5376ab20bdfe1fab135953cff41ef1daa116aff10e9f3e6503168f6baf902f09aa0e8cd9a0da96b932f4b6 +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.2.0.zip 482403 BLAKE2B 47db66e9c8187c20b27b9aeb8584f0f2289084103ccda25406eb30059147c3bcb867c76d145c4cab7eae801ed4cf76a63efe23f091e05c9206fcadc3358a02f6 SHA512 d102d00618f077f7d677eea9f0d4aff600e4b95caaca6ae6021355e64ed0a8fe418fd731370baa968f6fd338e377b5d3a2077b0b8a1ee399f992b8a7717cf77f +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.mod 56 BLAKE2B 50d2d6dc9c1ee92d629af8c9aae9fe5f70a0c6fe270a95a8232cee3c50132ef90c68218ac64a3b5b72d94e23ecbea5f567fef39a81be3d4585bae3f4f5348545 SHA512 5235188477921a263176fefaffccdaca4bf8175a2e248356a06596e37fa868400203172c7fe9fb80d0a65d335d23d80edefd242657de0eb83d9360589e063bba +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.zip 44378 BLAKE2B 15ccda2b94bb024656859fb8a6968782b9a1bffb786b0b1ed69a3284b01f4a2100b3f3c46b6ebcb8f7febedb5bd4f6762fe333b7d4f1d14c700f8fce60843352 SHA512 e9349ee2a7d5e5b129ec6a1c0507854aebca82cf9ac2d0a681cac2f4630ea35551ede48e1931494362232a83dc9f26b6b4162c6114e0176084c50101b1da46b0 +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.9.1.mod 43 BLAKE2B 2bfedb841a10d8d6a861189203de74eb9bc6bc37bb10cdfc2404b1e972b7672568ed27d235e143d831cf2f840943c039398296cb78f1309f00d1ad9e0ce21056 SHA512 191cf6496c41b2b82c9a8f2ab2aeab63ede47807160f7cf746c548b3e92e367fc8f80ff8c6efbb7e91ca5903d5672b235c1ab9f14d3f9f988e8ff1c821d3b8bf +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.9.1.zip 190367 BLAKE2B 3672fecc77f62ce656fd138e1ec906068a300f147f9daef304802a813578dc50b873540e16cdd5fe03940a612c0737a6b67217e8bd6fd19eced29e8c1ed875e1 SHA512 13f04c5c3978426e5961c5d0b2494497149352ddc5cb7a528b69dab2a38edda2df0d3440445270b90d2588bc4d77ea2164815dad475d3a50f0898e8a64999b61 +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.mod 42 BLAKE2B 5519896b44b7bc3089a8965dc61aae63745c64ba1a390d3fff1202be7f8dd34f59862c04b49e377d6616a93a0341662becce65d431d445703a160ba49eda208b SHA512 c84dfe43954b19c1e4ac5ff8738e79db469f3bc1dc55e69b12503d0a5cf125cc74f4797ddbfe64b2a1bd1e2940575c32678671d51f67161c4f5b53b2a85ac46a +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.zip 68325 BLAKE2B 9b783cb98fd4f1ceb158d8a72ffdc7d0c232a8a9740de221b4321b2c7e240d98bb5f2bfca74222c6a7796368d48b1d3e315229a9d2c0436d5590bc200be31817 SHA512 25290d540c185fa2010b06596a70b6d06d4ae14fd92b4e5596b48074e4e5ef5ec6b990c8d0bc39cb44f0c2a83a0a1ac4415f86ea4e3fb69970bb2496f148d0c9 +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20181020173914-7e9e6cabbd39.mod 36 BLAKE2B 39120b6af83d45857c990115ff52d8828278a9ce158b01621d8dcc517c23ff139532a2c2e53ec97616f0c65a2e0db3ede7c5fe59eb33be277e2c60650362b232 SHA512 1b262da0100655c3a56c0e551866491b81d2b88fd5fed9cc43a57bce3634c88c82c798ed1a823237011f6be68b5f0e1fe8284526cd68204851de30a44fc34fbf +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20181020173914-7e9e6cabbd39.zip 130419 BLAKE2B 56fadd8d035da2aa2d84be051b0970d4c9ae223c8a0a40f21310007c86e4c32a907aca24ba890ea39270668f7cabaeda3e4a80eddd4bf2677e9f1ffd1c08f9f6 SHA512 9285913d3efd47148d1b3fdf8d3a277408079c07a928f62ae4d8ca7bcadaa815399d21945c0c983998e8ebd5645005ba15b7a892c14c52944edbf241072717ed +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.0-20181005140218-185b4288413d.mod 36 BLAKE2B 3c6acbd1022261065a321c6f3cfa2946b58011f45fae9b98761397eb7e5e0984dae4ea34c4f837f798ab29ca8e26ed3f07771be10e500a99ce7e5e9f4c401b5c SHA512 05f032eba0c264b186936c2b9831624a01999972d4f1bba6aa15c452407eb10d402f1ac674eb41e2d24fa66e85ae2e56efd2326fc4ecc741169b9908d7935335 +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.0-20181005140218-185b4288413d.zip 100732 BLAKE2B 64f41a173e5e0bd339e41550d2315e822ee55caf25a404a37a1e3141badb537a07a72e1e0ddeff2e8c0d00894ace99091cdd99787dde891efe54b693f89650bb SHA512 a7e2f22710d68dedcbda6f814df16437aaf3bcaa2a19a5bc649413621f94232eca6af5c3e4425983df7eea984d0a1ae36dc51e9b9ccaef61752317f6a75b89d9 DIST github.com-beorn7-perks-3a771d992973f24aa725d07868b467d1ddfceafb.tar.gz 10800 BLAKE2B 5487155a4d010af70b6ea2625d10ae03b6642507902d7dc168edb5d7cf0efa1777b248d0df34ed1a2564950b12613256c1c6ce1d8c9723cc34977ed883b21c8d SHA512 c6aa5df262ab607c0a5f64372fc2fec1ddda9e5624e9d9a22cdd1bc11822c99736d88bdf5e3fc6050217b5084548417cb2926c3940e156da9397d828d59ce277 DIST github.com-golang-protobuf-e09c5db296004fbe3f74490e84dcd62c3c5ddb1b.tar.gz 269725 BLAKE2B a62a3f96c49d77776103a9bece69b615e00d4140c9de8b42fb7edac979c8a8d172bd21062d3d6e24ae01dba10b320ff208ff8c6916da2d84118da448afc8caf7 SHA512 f64fa42e7ed9701860e16b1cdedc9f6b029630b6f534ee403ede1223c0c7542c731735995ea9763f093b56146776902b6633e5b1691b1f1dd4ab84dea0092099 DIST github.com-matttproud-golang_protobuf_extensions-c12348ce28de40eed0136aa2b644d0ee0650e56c.tar.gz 37215 BLAKE2B b3b007f925a4a1c1862c8cbe34c5cd225dfa610ad8c56b5328e6920a44b507680daeea97209370bd6b259654d0ca5791f4bcc54b8bd8970b9aaf994eada16d4f SHA512 2f78290d1448cfc041d10210092d6da6f3df2b9b6c16ff730750e976e450dafe2645ba945319a0a3064c88f9c18652c69c0e0cf69d8931c08d23ffe65a8cc07d @@ -8,6 +24,10 @@ DIST github.com-prometheus-client_golang-f504d69affe11ec1ccb2e5948127f86878c9fd5 DIST github.com-prometheus-client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c.tar.gz 54718 BLAKE2B 1dec6ac40fc5103117c2cf0538e138fc57c7b9795516c530b3c0dc2f5983f88c2d0eb1b094859815397fb14d50648240556fb6b11a8935586eca29eb66b4e958 SHA512 99bc72ca0887df4c7ab5a006af9c59afdc1281fe6d6d17f2897428a06da80d63d6ccd476deacb933cb208357500f14a7b96e99b9c5a7582e65a7aae87aaf2c50 DIST github.com-prometheus-common-38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a.tar.gz 63007 BLAKE2B a62f727ef9dd42d52f495ab7449cbafbe7c7fcdb1bc171df97c40348dcb7fe12788223d7a2aea3398cae7dd17ec73ae6349b5e5f35f4785f2796cc9a16c2d420 SHA512 4f1ab6cffc309a00ed68959b9372e1d3ea4f8d597b8c462a4e365cf22737245e601b8bda0764bbd1f0172d773805d16e90a8aa90cb95e9462e35320043e04060 DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.gz 56873 BLAKE2B 31ae12d51b6a28c285bd5854b137d2634499d0db3c2c65c0404ca5a902ffec2e9bf689261ea51c2fe1643733f09a780c437f7a7899a5e6c3e3d100a36e07b897 SHA512 a548c6bc71456c9878cb34ad1514d92c8737e01b555e953f848cc1ae7944424b06a14a8ab0c6de4d99dbb189a0f29e2bb9ae09b5adffc327c28f5c50c2819892 +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20181108010431-42b317875d0f.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0 +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20181108010431-42b317875d0f.zip 24743 BLAKE2B 916fbb71a738b80833a6e9ab44ac53568d4bf6e9400b8a63197cfcc96488c60b43d602664366fd82fb686bc9b5ebf80d2d6fda3cb791a83042c03d965ab7efb4 SHA512 cbc53e045f3837deea920bc08867a45c5ef3e0afb99f7f5179653790d36a541f4e96e5f9e3e36560aff2b38ebde5a5004992c09a8e2722d44cfaf81d654de5b4 DIST openvpn_exporter-0.2.1.tar.gz 10126 BLAKE2B 06899bdc151232b6588e865ccdb69c4cc0b4f618de8b8d03240d72c7fe2acade2c65b60597f744936c19c603da0e0f924b8910a5898349a42884f91deb882e59 SHA512 9cbf859be78337e15c1e3ba0c2dc687afc18b4879af68b7b9fe823aebb415c8b430aedb7e31ffdd1685c582632db1427504a1fb874aac49c8ef11df4345ecca1 +DIST openvpn_exporter-0.3.0.tar.gz 11505 BLAKE2B 61a991e3ea8001a9481b8207c83316c1e028a68f657f3de191b7d69d7a3fefa753663292c2d77d09ef6024f9392b0077fc5170f2e8a19c0397240281dec09482 SHA512 4bea502e7dfd32e5fea9fc21fbfdb65ddcb381d6d1b5463c361e60026f88693912b998979e9fab3e455196eb7dec1677dc9feb293f4f14609f4352eb9d238cd9 EBUILD openvpn_exporter-0.2.1.ebuild 1545 BLAKE2B 6745505d144b00a78e8e3991a159899842c82f97108e04b9ff00575626bec8668877648989e3165f402dce6b13a57fe65dce4a484d7fa2e457d3fffc4cadd678 SHA512 4a85121469f7aaa1175a22a3dee8b0489ef8f201305b01267f5e1b3671c8ce0bd009d3c7fc2b03d0ee0bf58dbbf6f69be16cfc743850b81840c1355e2f2c9bed +EBUILD openvpn_exporter-0.3.0.ebuild 2010 BLAKE2B 24e1781eb4e3ef5a5c24bb7330f24d95e9f1a3201255dcd1b531c90fd6a60f667630e4dcc8400e1ca46e68ca34f0e9c0f1973c1d58c5718bc292e00be502f7b6 SHA512 a3b33fc848114eb0e71cf5b8f39b6d36a9ae3a7983b9089c8e8555f337e1e1d1b3469522d745c7b5024a4ac7d578325055609d22980ba85562fd6df77a89cadc MISC metadata.xml 336 BLAKE2B fb4eabbee6ee8a353c2024ccf23b68482a4af72fae31d6539fca9680c3d0113f56aa740abb1b545f6a607e7618c222c54e35ff74705eb33f60bb9b49e3a926b6 SHA512 aeb14e5633d68c01ce32750f3557bedce69622115cead0029dc981f13a0cb67bc00100d7c3e6b668871579f71e1f73606084f0b16b6920df4c6b7321db60f134 diff --git a/app-metrics/openvpn_exporter/openvpn_exporter-0.3.0.ebuild b/app-metrics/openvpn_exporter/openvpn_exporter-0.3.0.ebuild new file mode 100644 index 000000000000..1d562cb554c7 --- /dev/null +++ b/app-metrics/openvpn_exporter/openvpn_exporter-0.3.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module + +EGO_PN="github.com/kumina/openvpn_exporter" + +DESCRIPTION="Prometheus Exporter for OpenVPN" +HOMEPAGE="https://github.com/kumina/openvpn_exporter" + +EGO_SUM=( + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973" + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod" + "github.com/gogo/protobuf v1.1.1" + "github.com/gogo/protobuf v1.1.1/go.mod" + "github.com/golang/protobuf v1.2.0" + "github.com/golang/protobuf v1.2.0/go.mod" + "github.com/matttproud/golang_protobuf_extensions v1.0.1" + "github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod" + "github.com/prometheus/client_golang v0.9.1" + "github.com/prometheus/client_golang v0.9.1/go.mod" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod" + "github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39" + "github.com/prometheus/common v0.0.0-20181020173914-7e9e6cabbd39/go.mod" + "github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d" + "github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod" + "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f" + "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod" + ) +go-module_set_globals +SRC_URI="https://github.com/kumina/openvpn_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI}" + +LICENSE="Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +COMMON_DEPEND="acct-group/openvpn_exporter + acct-group/openvpn_exporter" + DEPEND="${COMMON_DEPEND}" + RDEPEND="${COMMON_DEPEND}" + +src_compile() { + go build -o ${PN} || die +} + +src_install() { + dobin ${PN} + dodoc {CHANGELOG,README}.md + keepdir "/var/log/${PN}" + fowners ${PN}:${PN} "/var/log/${PN}" + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} diff --git a/app-metrics/postfix_exporter/Manifest b/app-metrics/postfix_exporter/Manifest index dec6bc47a7f8..650119510799 100644 --- a/app-metrics/postfix_exporter/Manifest +++ b/app-metrics/postfix_exporter/Manifest @@ -11,5 +11,6 @@ DIST github.com-prometheus-client_model-99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c DIST github.com-prometheus-common-38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a.tar.gz 63007 BLAKE2B a62f727ef9dd42d52f495ab7449cbafbe7c7fcdb1bc171df97c40348dcb7fe12788223d7a2aea3398cae7dd17ec73ae6349b5e5f35f4785f2796cc9a16c2d420 SHA512 4f1ab6cffc309a00ed68959b9372e1d3ea4f8d597b8c462a4e365cf22737245e601b8bda0764bbd1f0172d773805d16e90a8aa90cb95e9462e35320043e04060 DIST github.com-prometheus-procfs-780932d4fbbe0e69b84c34c20f5c8d0981e109ea.tar.gz 56873 BLAKE2B 31ae12d51b6a28c285bd5854b137d2634499d0db3c2c65c0404ca5a902ffec2e9bf689261ea51c2fe1643733f09a780c437f7a7899a5e6c3e3d100a36e07b897 SHA512 a548c6bc71456c9878cb34ad1514d92c8737e01b555e953f848cc1ae7944424b06a14a8ab0c6de4d99dbb189a0f29e2bb9ae09b5adffc327c28f5c50c2819892 DIST postfix_exporter-0.1.2.tar.gz 11552 BLAKE2B 987c81482fc984e8f6c870fdaf7ce2ef67b3fa66e5782713a645d35b76a1bde1dde97a79705569d1423a9356309d0b7240c77dba386127e8a5035990220d2a62 SHA512 579793281dedd858538ab9a931e0003cfc9989204ebf4352dd4860e5a7f62b919d77a9e0facb9daff6706771010f9e807061dace8cb88928635d55111c7c482a +EBUILD postfix_exporter-0.1.2-r1.ebuild 1808 BLAKE2B c6cea6176fa4e2990ab5f2f11cbc336fc2fe34561bb4a71c6a4bf99cdca57c02cb7872cc653ecc6bd339d21730026d3058751fc65344acb24bc26f9d225dca51 SHA512 4105961752948f633e57ee92b970c2b72cb32c6c72ca25b5ef929d6a40dc53e6b5f4682f3199ee29d2f604431bae957ab9a0355eb864c6ad3b91e0d6e79a057e EBUILD postfix_exporter-0.1.2.ebuild 1808 BLAKE2B 4edaf4370c38ed0e784d3bd7626af1557d8cc09770d7781984f0b8eb8c8757c387b60b530a64f130d4ab0bec83fbd6df5e5917ac635a7eeaa4ed0c05e3bdb11f SHA512 9c994c19a7b6ea0202ad8ac64a09a5e7037caf5df08d5307083ac1595069959bb1069db45d51b40b0cef348455439ea485f377f13d7cd2b19345f82f8f3f7c5c MISC metadata.xml 336 BLAKE2B 71c3ba53cd28d795d4aaf5e810c09b7d146ec2b9c2aae72ef60894f642bad23308fa1547e47f41dfcf15e51a0c53a11b293253eacee9ddb144342fb6f62f18f7 SHA512 32bcfc730ce355f7fa8ce39d184f2372082c253125fb7b64b8e857d39775e4b0c9fe27f6cd92aa2fbdb6d64eaa176b222a02e9af3a02a6d5bb79a4c6e4fe432e diff --git a/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild b/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild new file mode 100644 index 000000000000..6466021e6510 --- /dev/null +++ b/app-metrics/postfix_exporter/postfix_exporter-0.1.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_VENDOR=( + "github.com/coreos/go-systemd bebb2b01b0473b183e4624aaf8e23ae6f4b22417" + "github.com/coreos/pkg 97fdf19511ea361ae1c100dd393cc47f8dcfa1e1" + "github.com/prometheus/client_golang f504d69affe11ec1ccb2e5948127f86878c9fd57" + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb" + "github.com/golang/protobuf e09c5db296004fbe3f74490e84dcd62c3c5ddb1b" + "github.com/prometheus/client_model 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c" + "github.com/prometheus/common 38c53a9f4bfcd932d1b00bfc65e256a7fba6b37a" + "github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c" + "github.com/prometheus/procfs 780932d4fbbe0e69b84c34c20f5c8d0981e109ea" +) +inherit golang-build golang-vcs-snapshot +EGO_PN="github.com/kumina/postfix_exporter" + +DESCRIPTION="Prometheus Exporter for Postfix" +HOMEPAGE="https://github.com/kumina/postfix_exporter" + +SRC_URI="https://github.com/kumina/postfix_exporter/archive/${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" + +LICENSE="Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="systemd" + +COMMON_DEPEND="acct-group/postfix_exporter +acct-user/postfix_exporter" +DEPEND="systemd? ( sys-apps/systemd ) + ${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +RESTRICT+=" test" + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" \ + go build -tags "$(usex systemd '' 'nosystemd')" -v -o bin/${PN} || die + popd || die +} + +src_install() { + dobin src/${EGO_PN}/bin/${PN} + dodoc src/${EGO_PN}/{CHANGELOG,README}.md + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} diff --git a/app-metrics/process-exporter/Manifest b/app-metrics/process-exporter/Manifest index a39fd40c4d5f..83a27f6a00fd 100644 --- a/app-metrics/process-exporter/Manifest +++ b/app-metrics/process-exporter/Manifest @@ -1,5 +1,43 @@ AUX process-exporter.initd 443 BLAKE2B 7b1c0475cb3c0c96685b8831578df131661787221e3d9f081b930f0966bdff465218e86d6bf4fe8d5cfb80ed1f8bec3d8b648a002323467408747d0f99d92c4d SHA512 cdebd44d568723de125390453ba169323f7e5b7941a94955c6e45792b573ab57ae41015229b997c32eb093127aaed8bcedde8d46df86396b1e338e5b1f668881 +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.mod 31 BLAKE2B f69b0989e51b0b649f81b044169fe4309f130eba5bcc6ff33aa9666b1b754aa0e524b8c7a627a91000ccc4f93bf93cdee3e97bd3b2184b050878bc3f413f0c72 SHA512 f21fd002853e4435421f8396e6be016f65be1537815c60d23940caf26e3f14dd6f2caac802cb64cd586b1b1f1220b2727de347b3d1816b8e741f68d87ebcf03f +DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20180321164747-3a771d992973.zip 15013 BLAKE2B daecbcbb12a60a1423c4f419db44a0d63108fe622cf843593abb16fd75dcea703b3cf56f1c13433959eccbfb2a9bd5640f837f4be3296220366438dd7ed04f86 SHA512 44ccb3d6134742a80ac15830613c169d1b0d43e6ce40c2f2fdea07203bec134e1ba80dc57c6d14a007014ea141dca311b3ebe61b12d2181311665a9ffe83ca39 +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.1.0.mod 34 BLAKE2B a4239cba934b6e80714b93d47e88f22ad28ce41d1d984c4261cc3f5f3b857fb28785223fa911b258e2665be2a9d24ffbd925e9e0f374452a2aacd712ad9d5f75 SHA512 e059a34363bb826bbcb8981adbfc10da90e04b86dc5376ab20bdfe1fab135953cff41ef1daa116aff10e9f3e6503168f6baf902f09aa0e8cd9a0da96b932f4b6 +DIST github.com%2Fgolang%2Fprotobuf%2F@v%2Fv1.1.0.zip 473783 BLAKE2B 78f0e771c6ad1bca65780994413055cb5f83d1b2ba3cf16cf21285c5cee875a2d3eb3ca8d8b57d89899808c76eb5b6c61b32e311bb0d92d45ab91b60168a47ea SHA512 c22665c5f590a415041a302d128a1e0a5606de4b21c8bcb79a77852795fb19bedeef4107b6edeffe87d1fe2295aa26579fd8c8d2b14cd4c960ce7a29138f1e06 +DIST github.com%2Fgoogle%2Fgo-cmp%2F@v%2Fv0.3.1.mod 40 BLAKE2B c717b6aaf18662c20120746a021b0ca878e7b190b3456cab24ec98032390a85b0af8540295e470647d403bf1beb582c8f8a74fa7129c4cbf747257206235c5a5 SHA512 351dc24af135b9c9d714aadce40fe9fa1ec05a35a4df90af79926d5119c3f33a6510ab9d78243748d7dad10bd2178f47d342ea2389972b88d5e9b4be6dee7daa +DIST github.com%2Fgoogle%2Fgo-cmp%2F@v%2Fv0.3.1.zip 99651 BLAKE2B 14632f8da685fecc046b2cc9e61eecca02e7bd4720ebb1d3cd01a299e59d47cc604abc57d5518e18dea69785e3d5d539d87da211279e238a78dd23e3d7f8c7bd SHA512 4b47aa3677a464af17f3e320f41f59e775b45f04cabf2cf749e00ba1aa97e27ee78a07daad347bac4b5c41e2c430634fba57c6edbcd7ad405b5a084142871362 +DIST github.com%2Fkr%2Fpretty%2F@v%2Fv0.1.0.mod 67 BLAKE2B 2e1b4a8a38998179a32db321d331db54f881770a89719410876cdde1799cb8558ca2862bc70838d606540606d05918c4b115cf1c125945a77ed376c2efc4aa85 SHA512 4d841fc7a022e4e09e0a95925ad92a75809a67c30fb88de9190e4a2196383038dab9a5b3294b6a0b4786248977a0e09eea857a34100cbf22f8a52912ce9fa58d +DIST github.com%2Fkr%2Fpretty%2F@v%2Fv0.1.0.zip 11159 BLAKE2B c176e4bc9b5534b0df153e027f22be7d28eefbea1c0adab10979f19d601b95d300c54086b5ee388f453c73b9931339b9b04208fc5e6512385b348c49faff5488 SHA512 bad73f3c47f70de55a90a977a1e2b4a68de545a8425c71533de081c7a8f71d7ab1b489001c56ba2e88dcb78c08804275f7f8128c812f50d005a074ed6dd9286f +DIST github.com%2Fkr%2Fpty%2F@v%2Fv1.1.1.mod 25 BLAKE2B 63db8520df2f699bca5a7ccecc44ee04973307d86099cfe66ded30e2ca1bdd76fc3db48cfca0138673c20c6f94061caf219f018b21b9d67231fe959eef338596 SHA512 967fcdce835c12afbf3b12bb204a256f32d46a3da535e2a7250159f62781a163ee107dd2a4fa20743b76bbf52b97e627e11e895c8d5ef73aede37d6a89e326eb +DIST github.com%2Fkr%2Ftext%2F@v%2Fv0.1.0.mod 64 BLAKE2B 475c51201a379df2cc4ff8c5681b6a7a1524f60d0b8fd0853fef569dea754efabf3425cd4b84e8427db8a6cf3e9b1141d5050d48d5d429cc1ce82162aa70050c SHA512 11d2502a7d241a0edf4e67bcb651a890a12f49d00f8b944cc9eb8f6e9cf5fbb2b2827e696021649bc795ffa275e95ee700e4a1706e03e88fa9ae079f5b9f48ce +DIST github.com%2Fkr%2Ftext%2F@v%2Fv0.1.0.zip 12591 BLAKE2B 944b0b9a802757e78e3dfb11d6c4d79e0e0d90489d49262b7079e6ea4728328457f8773b392c8a618aacb5fdec78948a16cc852eff71ca6f4fb9eb422c03890b SHA512 3f0d00b0545769ad882e25a9a6f30b96ce4b72a8a46bb3c064907c94e2dda4e499eb32354c149f89752f9bc5d1ee5cb2ee5cafa46e2f65ea329fb432d0c0029f +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.mod 56 BLAKE2B 50d2d6dc9c1ee92d629af8c9aae9fe5f70a0c6fe270a95a8232cee3c50132ef90c68218ac64a3b5b72d94e23ecbea5f567fef39a81be3d4585bae3f4f5348545 SHA512 5235188477921a263176fefaffccdaca4bf8175a2e248356a06596e37fa868400203172c7fe9fb80d0a65d335d23d80edefd242657de0eb83d9360589e063bba +DIST github.com%2Fmatttproud%2Fgolang_protobuf_extensions%2F@v%2Fv1.0.1.zip 44378 BLAKE2B 15ccda2b94bb024656859fb8a6968782b9a1bffb786b0b1ed69a3284b01f4a2100b3f3c46b6ebcb8f7febedb5bd4f6762fe333b7d4f1d14c700f8fce60843352 SHA512 e9349ee2a7d5e5b129ec6a1c0507854aebca82cf9ac2d0a681cac2f4630ea35551ede48e1931494362232a83dc9f26b6b4162c6114e0176084c50101b1da46b0 +DIST github.com%2Fncabatoff%2Ffakescraper%2F@v%2Fv0.0.0-20161023141611-15938421d91a.mod 40 BLAKE2B cf71a7ca097d44c84961da2eed5d0467d50be10ba5e0873b45690eb73f95927581fa1bb7bbfc122f3d476268f47f88fa1c7689cc8fbcb7ed8e0295a76991a4f4 SHA512 ac167f1b8790e6e8323bd975bfaddd524f6c5f4d17437a8934080f0d13001280b51d2bf47cbe7bf726376dce4714bad2b3134ba9a4bcf5760eb4b47b20496dae +DIST github.com%2Fncabatoff%2Ffakescraper%2F@v%2Fv0.0.0-20161023141611-15938421d91a.zip 1389 BLAKE2B ea470af58a1f0d72984078c99f05c692ad58460bc7752e3e9724e8f132db2713291f78b03b3fc08ed0b4f3e97bd6705d7a88917c48711cc6c7ded380cbc66e3b SHA512 218903445a17b4efc07bfdf3966ac044239b1aff171fdab6c92feaf964a8f06aeaf1f637098bf586909faee4fe5d7a7c41e04eae3f715c818821fa2ba72facaf +DIST github.com%2Fncabatoff%2Fgo-seq%2F@v%2Fv0.0.0-20180805175032-b08ef85ed833.mod 35 BLAKE2B 3c4fc1367c6c735ba21df6d6686f9db4baf98ade3d5bf7c4604a672d4ab8ee00ea8c790e713505f5cfc2d1785953abea3e35a41c673706419dd2433edea9635e SHA512 991cdd6e2928ea76db243926f6c84e59509532f5f8b92fbc7631be6679724173e60b8402af438ef1f161c6982f8c9957d00c628bdefcc01a71ab9c1029de1c99 +DIST github.com%2Fncabatoff%2Fgo-seq%2F@v%2Fv0.0.0-20180805175032-b08ef85ed833.zip 4863 BLAKE2B ae6a85af245ae269f4ddd3d50217e1049dea01e637ce0f80f977fe327027ce3d8bf72c61d429b47c49c5e27afd9c69a9b41028269075f206dd444a2d9fa21834 SHA512 b16ae60a7373f92f0bbc19a35dc5d3211e576436abd815cff678b5687b67c3ba23af42b34abf14efbe9c87126387fb18afb4c222c87e5c085ac3584bc91af2cc +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.8.0.mod 43 BLAKE2B 2bfedb841a10d8d6a861189203de74eb9bc6bc37bb10cdfc2404b1e972b7672568ed27d235e143d831cf2f840943c039398296cb78f1309f00d1ad9e0ce21056 SHA512 191cf6496c41b2b82c9a8f2ab2aeab63ede47807160f7cf746c548b3e92e367fc8f80ff8c6efbb7e91ca5903d5672b235c1ab9f14d3f9f988e8ff1c821d3b8bf +DIST github.com%2Fprometheus%2Fclient_golang%2F@v%2Fv0.8.0.zip 111363 BLAKE2B 07c1938d531b8176c55e2afbe0ce9cc7bc9cd86ec9699a7f9898b9b19f31cef22c2b98f47200d1b12aa7c0ed747051d84a2ee69aeeec91f889f8594871136f75 SHA512 18c5d4d5a563716e58ac31003bb9a25c6b32f9ae74bbb21c11c63f620539619cd9f79c7dfa7a59ba9567e551e34f4132084cccf63be1e11a540fbeb4b919598c +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.mod 42 BLAKE2B 5519896b44b7bc3089a8965dc61aae63745c64ba1a390d3fff1202be7f8dd34f59862c04b49e377d6616a93a0341662becce65d431d445703a160ba49eda208b SHA512 c84dfe43954b19c1e4ac5ff8738e79db469f3bc1dc55e69b12503d0a5cf125cc74f4797ddbfe64b2a1bd1e2940575c32678671d51f67161c4f5b53b2a85ac46a +DIST github.com%2Fprometheus%2Fclient_model%2F@v%2Fv0.0.0-20180712105110-5c3871d89910.zip 68325 BLAKE2B 9b783cb98fd4f1ceb158d8a72ffdc7d0c232a8a9740de221b4321b2c7e240d98bb5f2bfca74222c6a7796368d48b1d3e315229a9d2c0436d5590bc200be31817 SHA512 25290d540c185fa2010b06596a70b6d06d4ae14fd92b4e5596b48074e4e5ef5ec6b990c8d0bc39cb44f0c2a83a0a1ac4415f86ea4e3fb69970bb2496f148d0c9 +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20180801064454-c7de2306084e.mod 36 BLAKE2B 39120b6af83d45857c990115ff52d8828278a9ce158b01621d8dcc517c23ff139532a2c2e53ec97616f0c65a2e0db3ede7c5fe59eb33be277e2c60650362b232 SHA512 1b262da0100655c3a56c0e551866491b81d2b88fd5fed9cc43a57bce3634c88c82c798ed1a823237011f6be68b5f0e1fe8284526cd68204851de30a44fc34fbf +DIST github.com%2Fprometheus%2Fcommon%2F@v%2Fv0.0.0-20180801064454-c7de2306084e.zip 129149 BLAKE2B c28cf5021255ad8f2150db609ee74fe675f9990f14bf95024029330b950489a1ef1756e9c0635f5d0fcaf89863ef08904a3e7ada1f8cad8f42395a9221fd461b SHA512 a6e76b1d9e34fc77e2b39c2828c04cb3979407cefcd413aff5218bf96379dbf3b78c5956f8de3c980311375026018178367d105a0296faf23f92926a794dd7c8 +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.12-0.20200505152635-9654394ca94a.mod 198 BLAKE2B 9b5c175c915db6a1fdf18f440acf348e395fd2059e1f44fb1fd556e7c2c6821cfa397f88d2123f681b41fe5c5689ebc58c7c75865ef63f7f1c61fd8d323d8117 SHA512 7a54bddb87350ba24423842fcf1cd8b031be427e9f689467503d8d6a876691b209a5d2ac33d848a977d2c3890284d816fe4f2fa9391642010c96c3c0d691efcb +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.12-0.20200505152635-9654394ca94a.zip 260771 BLAKE2B 24d7c6328ce7b1c799da96a0b4f50a0fd7d49d3b5ac1e08103b120505ea45627655bac35f8007869bee73ef8900b1a2cf07e5f557814e6d786130a369f7e8aea SHA512 9e72c0ab744fabc832060ca7a5295a1e3546b2c48dc55512ee57bbfc24f0f11ebb56bb842f8b2fd83ad78a13a7eef13a9f5416435018694520c142d85c5e9d45 +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.12-0.20200513160535-c6ff04bafc38.mod 198 BLAKE2B 9b5c175c915db6a1fdf18f440acf348e395fd2059e1f44fb1fd556e7c2c6821cfa397f88d2123f681b41fe5c5689ebc58c7c75865ef63f7f1c61fd8d323d8117 SHA512 7a54bddb87350ba24423842fcf1cd8b031be427e9f689467503d8d6a876691b209a5d2ac33d848a977d2c3890284d816fe4f2fa9391642010c96c3c0d691efcb +DIST github.com%2Fprometheus%2Fprocfs%2F@v%2Fv0.0.12-0.20200513160535-c6ff04bafc38.zip 262398 BLAKE2B 9c8596bf810c2fef1a2371a5e17867bcb7859bb11a82f77cab74b81fca58f09f3630f61fc6a69df2ccb63953398527eb552f0782a2fabd85dc8805788df282a2 SHA512 a33749d6d4c14cab201c1d7689eb142c07a3627d93fde5914004f30406f0bc94b983dc14ac5a232e2fc2c2145c757c3f530d66a49a4d9b0f858d41d99875d9a6 +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190911185100-cd5d95a43a6e.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0 +DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190911185100-cd5d95a43a6e.zip 26635 BLAKE2B a464a4ad04b36e50cfe966e6e6dc299c0f8b45d0f4198ba64483bb70ab815d033cec5cde60753b76dd1fbb16fed087b41179100a2002b0a61cd4a08f9de779fc SHA512 ae6f29d5f7790b37d1722d65f31708670bf19f429c60b2f6633756ecd40e47c1fab40fc128e0d70b3b6ed0ba47ce5f970ce5f4e55b8f1fa407d2efee7444b646 +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200106162015-b016eb3dc98e.mod 33 BLAKE2B 8be160de26713fd50f15adfb6fd7fff2643ee587aa17de9385b1e315869d0ecf102fc567294666bf232aa677d1ab04ba8341157f3d9b66a0f53543a7a47cf148 SHA512 0c7b940d567c7685dcb55c76c69aedeaab2170f4f3bde458994c879bf344169f34fb3f3ca899b0f138a8b0b8be5031217b57a6edf5980e6066ff5cb92d1ff9ab +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20200106162015-b016eb3dc98e.zip 1913169 BLAKE2B c50435879fb1df50f91b1f37dd92f6504047944d41797350f0871a581d5bf17cf474845d3b422fb219c56f7627f2fdb302059d68657bd7860ebc604861cfae72 SHA512 b732d79f0828b9a900595b8dc98377436dcdcc24e2d3d9fe0472a8170d477c0e2487bb4b8e2da4eb7ca9b19251e29ea3b38a9de777d03c069425897ac47e325e +DIST gopkg.in%2Fcheck.v1%2F@v%2Fv0.0.0-20161208181325-20d25e280405.mod 25 BLAKE2B 6470f3d94700c4d8b3176d692bdb91646750f2c6a866ff2ef4183aff1de01f024a8757f97b4626ec0355092e5f25e7ded91cd5be845f627d107c58b1daf400d7 SHA512 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2 +DIST gopkg.in%2Fcheck.v1%2F@v%2Fv1.0.0-20180628173108-788fd7840127.mod 25 BLAKE2B 6470f3d94700c4d8b3176d692bdb91646750f2c6a866ff2ef4183aff1de01f024a8757f97b4626ec0355092e5f25e7ded91cd5be845f627d107c58b1daf400d7 SHA512 9ac0f80ef05881387cb2f48f81560f3207fe586ea16495383662e6d62e43d93fac01dfe72e1d0063d3ab065331dab3a8098d7da4f1830ba1aff6f27f8e1bc1b2 +DIST gopkg.in%2Fcheck.v1%2F@v%2Fv1.0.0-20180628173108-788fd7840127.zip 41465 BLAKE2B 9a7183d3ac6591399b5208026208047a670c85e8b6014ad29955b168c63bb4953fa972d31025613c2ab12d7207adeebe9578b3c15b65ebb792f1e41df2668297 SHA512 fa7c68a2b5a6bb14f99cda92a3e77aad0e4160f659c54ea73e9813af9ff9449df6b0cab42ee283971e778b6b9da4a6098df805dd284c3b1aedfcd3a0b8504bde +DIST gopkg.in%2Fyaml.v2%2F@v%2Fv2.2.1.mod 95 BLAKE2B adb3684980f1d8e6c23444e91028f8db55f1bc496114eb3508dbecf9917dbc8a0a4bed7c0d761123335a75b9ffe727e180f2d6aa5f84312edb05a798185c8362 SHA512 916ff67ddb6c2ba39905db4277ce42596d9ca5a42f8aa7f47f16335e78d91a1b30419fd1b7b6967b37e248363397ec527b38d2f500b3546edda5d2bce1944379 +DIST gopkg.in%2Fyaml.v2%2F@v%2Fv2.2.1.zip 77767 BLAKE2B d77644df22edfcda7d99d4a4a23a1fd1154fa21489dc36b9a8f9ffc45e341d8d793faae76d4d3d32290766c7b13cea30d17efaa7e8e74786ead90b0605f70967 SHA512 bc935858e1d5c341c7d53c41bdf6f856976a469c8f54f017e41e8be742064ce9980cc6881353e022f854d6e19096a37f5ff62bf7b01019b0425a0c03dc6fe14a DIST process-exporter-0.4.0.tar.gz 378006 BLAKE2B 053379e8e0cb95f099cebf53289c48c39d6c8ef22c8b0dcf0bd128453e601da98be9205bb5c7cda8a05d5f50addabbcb46f6ece44926da17c1bd8616e452783a SHA512 88f6f0e07bb7f3ea6c593ba359c09ace47eb0830ff0759b1f4dd64219a6c9069dc2891a328a90bdef13ea02efc576fb71de7ff095788b4dd45c2683c90904363 +DIST process-exporter-0.7.1.tar.gz 1659703 BLAKE2B 8eab993f13e8096a2c5734cb62bb13b2d5427479e1b33581dd568433c8d20f9b242078ac8a4d32e526fb020102ad8c2fa9f34695bbe5513734a966be1b807f6f SHA512 f75a060e70e6267014104aac906a5571b0333a7f082129b58b0d8fd77fe12c02c310d7370db591a37a012ddd87271db033fe2519a1e645e12264e4dab097104f EBUILD process-exporter-0.4.0-r1.ebuild 737 BLAKE2B abae9e7d078e3ec863cab985588febaaafee2ad556dd7f2ec577732e80af652e66754ed0ca7fb16b03274a620ce146428958509ef77eb4759e2bb499f3847ed1 SHA512 35e294c2d4a6c32fd5d711bcf6a6d5ad9fe5459a0e3281b5ac487519d8b018dfb59b984e38b071b272faac13e29cc18927d0ccffa96666dfac7fed5a6aa845dc EBUILD process-exporter-0.4.0.ebuild 713 BLAKE2B ffa91501c9ee04e4040b567dbb1666002bbb9abcdf70aff49dc3d8c7bba92d488634fbfd023f3f29d4928a244554cdbdd6f056a50991ffc52954f0f7d8a259c7 SHA512 b1ac1ed9ec5d8603693d5d2e0e4c04bb529bc35efc5e6b9c6cb915e3deff1904745b61c211bd3f058071d29f22dfd499e023f445cb443fc763883b556090bc37 +EBUILD process-exporter-0.7.1.ebuild 2698 BLAKE2B 3ab4d7141ba6ba5d40fa32fdc4aa88fb3bf9b1035a80ece8ebe7b0bffa7b8e49cd97d225e8d18cbb439617caccded082edb8a1273a1c54af57f0d217ecd179c4 SHA512 02cae8ba3a61d02f76c9c5319402b9c59ffa67f0149d99f76e89f2bb7e88e9d7da768c8523bd9774a6b05fdb106231e632785523abd5e8dd69ac92c92b96ce4b MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-metrics/process-exporter/process-exporter-0.7.1.ebuild b/app-metrics/process-exporter/process-exporter-0.7.1.ebuild new file mode 100644 index 000000000000..1fa356460756 --- /dev/null +++ b/app-metrics/process-exporter/process-exporter-0.7.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module systemd + +DESCRIPTION="Process exporter for prometheus" +HOMEPAGE="https://github.com/ncabatoff/process-exporter" + +EGO_SUM=( + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973" + "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod" + "github.com/golang/protobuf v1.1.0" + "github.com/golang/protobuf v1.1.0/go.mod" + "github.com/google/go-cmp v0.3.1" + "github.com/google/go-cmp v0.3.1/go.mod" + "github.com/kr/pretty v0.1.0" + "github.com/kr/pretty v0.1.0/go.mod" + "github.com/kr/pty v1.1.1/go.mod" + "github.com/kr/text v0.1.0" + "github.com/kr/text v0.1.0/go.mod" + "github.com/matttproud/golang_protobuf_extensions v1.0.1" + "github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod" + "github.com/ncabatoff/fakescraper v0.0.0-20161023141611-15938421d91a" + "github.com/ncabatoff/fakescraper v0.0.0-20161023141611-15938421d91a/go.mod" + "github.com/ncabatoff/go-seq v0.0.0-20180805175032-b08ef85ed833" + "github.com/ncabatoff/go-seq v0.0.0-20180805175032-b08ef85ed833/go.mod" + "github.com/prometheus/client_golang v0.8.0" + "github.com/prometheus/client_golang v0.8.0/go.mod" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910" + "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod" + "github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e" + "github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod" + "github.com/prometheus/procfs v0.0.12-0.20200505152635-9654394ca94a" + "github.com/prometheus/procfs v0.0.12-0.20200505152635-9654394ca94a/go.mod" + "github.com/prometheus/procfs v0.0.12-0.20200513160535-c6ff04bafc38" + "github.com/prometheus/procfs v0.0.12-0.20200513160535-c6ff04bafc38/go.mod" + "golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e" + "golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod" + "golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e" + "golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod" + "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" + "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127" + "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod" + "gopkg.in/yaml.v2 v2.2.1" + "gopkg.in/yaml.v2 v2.2.1/go.mod" + ) +go-module_set_globals +SRC_URI="https://github.com/ncabatoff/process-exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + emake build +} + +src_install() { + dobin ${PN} +dodoc *.md + insinto /etc/${PN} + doins packaging/conf/all.yaml + systemd_dounit packaging/${PN}.service + newinitd "${FILESDIR}"/${PN}.initd ${PN} + keepdir /var/log/${PN} +} diff --git a/app-metrics/prom2json/Manifest b/app-metrics/prom2json/Manifest index 3397969471b8..e184a3011da8 100644 --- a/app-metrics/prom2json/Manifest +++ b/app-metrics/prom2json/Manifest @@ -1,3 +1,5 @@ DIST prom2json-0.1.0_p20170523.tar.gz 129179 BLAKE2B ef0e42e340d53894c31bff7018b668d8575fc3568584a43dc308955665ac6f59dbabf2d4605bc2a66957df57a29ebb7b3a4eef1f99537eefc2805a5ffd86904f SHA512 824f4c43f4a167dc7dde2f11e84cf482e5cdfa26ab11caf08a5461d525543c3491180f54694c4ae61fdd5dc9763ff16f6e29b332a64dc3ac52fdb7b9c0902571 +DIST prom2json-1.3.0.tar.gz 1646893 BLAKE2B 9b8fcfa4a3e45ee08a57016fa6a7611604cbb578f162f0bf7ff8338f345f98788b75c3ac047ffca95b62020e972c302bc1c44f2f7f00240cfd978f73b8d9c829 SHA512 8f02c7b2616d915e2b4ff5f195a8c2eff89d18417f7396dc02d2aa4cf34711358b0beef6effae9b42a3d6f4b0616c5d3ab995a73ab9e37a4a0ec230adff6f249 EBUILD prom2json-0.1.0_p20170523.ebuild 921 BLAKE2B 8c4c359398fd7941f127c2fec6f8a0306f53dee43d2948873ffffe840b27f35ce2753c787f2bdfc6445ef9371fa10b4edc36dc3c2565e358ee7f9c8fe868b6ad SHA512 85ba4728a68ea42bc69f196e0e027f38ece006b9af5b2c9fe2da30b2605f79dc568017132e2eaa116b109bc7f18109581c8d69df641f82c7ce0066ea5dd9d3f2 -MISC metadata.xml 252 BLAKE2B ba7b5183b5a1685794845e1070f0024be5bdd6e73f2727a3f905189d68851416ee0ce6a2d481da059964761cfa256581c75b5d96fd36455bb56cc0f7be4cc85a SHA512 2d90bda7f93668f2b160b8bc41c11aa0d5a9aed5c195534c691aa221500cfd27097c5180001a59be5b4d8a28fd4244d64966ee1a918806589d18e8b3c428d248 +EBUILD prom2json-1.3.0.ebuild 749 BLAKE2B 0df29cf7eba0fbb1167dd9b2ebd5d9a46662242984a7c4056fd17c35f47c2a0158f0dc0ade186c9f37cb7d0005dfab07dffdf6efb6c92ec65c492361546f1bad SHA512 a196312a48c7e224b9a07dd4a7d5baef11e39b40f95d53f30b8548497c2bf13d4761a22f7567d593d14afd7486b5e0a3c8d64cc97c18af1611245d85a1e45448 +MISC metadata.xml 337 BLAKE2B 5db6323f6d84dfdb7e5d9faa9e874af05ed0bb90d5e23960cc40a566ec27be4ffee93a4fa59b7787b03c2cfd1c20870266acc10bd1b305ce85590103345ea9fb SHA512 d00eade6a00047fd4cadc6ff130d46a1f741ba72345a24ee52b7ce0608ca437086e8caa6b35bb04081bf7e1e3b298ade168e86d3775fd784c8d8539b077a2bfe diff --git a/app-metrics/prom2json/metadata.xml b/app-metrics/prom2json/metadata.xml index a4d942c42b71..0900b932fe15 100644 --- a/app-metrics/prom2json/metadata.xml +++ b/app-metrics/prom2json/metadata.xml @@ -1,7 +1,10 @@ - + + williamh@gentoo.org + William Hubbs + prometheus/prom2json diff --git a/app-metrics/prom2json/prom2json-1.3.0.ebuild b/app-metrics/prom2json/prom2json-1.3.0.ebuild new file mode 100644 index 000000000000..d90427c7afa8 --- /dev/null +++ b/app-metrics/prom2json/prom2json-1.3.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +GIT_COMMIT=9180c89ee65bde2cbbe799d06d7d09e30f629984 + +DESCRIPTION="A tool to scrape a Prometheus client and dump the result as JSON" +HOMEPAGE="https://github.com/prometheus/prom2json" +SRC_URI="https://github.com/prometheus/prom2json/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +BDEPEND="dev-util/promu" + +src_prepare() { + default + sed -i \ + -e "s/{{.Revision}}/${GIT_COMMIT}/" \ + -e "s/{{.Version}}/${PV}/" \ + .promu.yml || die +} + +src_compile() { + mkdir bin || die + promu build --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc {README,CONTRIBUTING}.md +} diff --git a/app-metrics/prometheus/Manifest b/app-metrics/prometheus/Manifest index 01dcdc5e5483..c1da4748a5dc 100644 --- a/app-metrics/prometheus/Manifest +++ b/app-metrics/prometheus/Manifest @@ -4,5 +4,5 @@ DIST prometheus-2.13.1.tar.gz 15249891 BLAKE2B 35cd3c81bdb4f3a783c2ab1f1318946db DIST prometheus-2.19.1-assets.tar.gz 5032055 BLAKE2B 75bc247d3dfbcccf3a9d7ef8a23fabe2d92d698670f5aabb19e1ee019e0197aa4fd49cfd53353e09a765a014af70ad860c7d1b6bce292632e5ed1175dd206ae9 SHA512 52d1f80d9ab2de778e8a0c81549ff83647d3d8af37ccf535a6fc4ac45fe29f25f6592e9b5eb137cd5ed6f6730835e4ba52b6c4c82e5b0bb2336b90c809d756de DIST prometheus-2.19.1.tar.gz 13343138 BLAKE2B 042f2c6e10e3d7f50b2373d9c3977db0318c8c9839e313463890ccae58c91d6d46c306d5aaeb795fb1a9649477b179999cb6b182aca9dee222d8fba557bf6d74 SHA512 a54a83b21ac8f3477e678ca365b8f04adcbe5cdd8a17d842eb9cd2e3428238841fb0492da6f4ec973f48803b0739667c734ae8a88b48d12555e23410e6461629 EBUILD prometheus-2.13.1.ebuild 2059 BLAKE2B 4614929b87ff860eac5b7b46d9b8f60474c51faab659699a0866dccaaef4d149214430d370dc5f0420c756d8d240da4cc8bb33b1948e6b4baf690c20b8905f06 SHA512 aac4922659750e6bcde07a8ef7823a5d8c4d47ccd1107a9f593b95079322031f4c8546b7d0d6df20f736a6a24d869105866c30eaf9e81773e21a6dcad27beac9 -EBUILD prometheus-2.19.1.ebuild 1942 BLAKE2B 4a644da79ba0ec628ede6636469a478d5c6166349c33b86d0667b55e927fb78be8e2e037ca8a87144860f7962b33da55c2d5d7892c556ae3635ec3208311b094 SHA512 7d63dff9863a248b2fee4e26e059d3ceda546c5c6d97f3cc08e0d11ba5030ac88c309370aedd3ac23b69289719be650dcaa670f1a78a56e37caca4074db485ba +EBUILD prometheus-2.19.1.ebuild 1947 BLAKE2B 64f7ac94e68fd321be19747fcc29a8adda3ab99183e509c33241e34b014b9ed7c3e3d8beaa8c3da58e7a5c11fbba3a85a3fccaf58ef3723d43a798e18f99600d SHA512 726f4d332155e642bb7213e4efc3a06c6202a9e4c08d96f372a36ed3e752ba944fd7d51ad1a6f2ff601fdaac2db6ee171e6b72594e409363a0a7acbb68d44849 MISC metadata.xml 334 BLAKE2B f35628a28c6087863ab4d96e1a4a3705f470845fe6c963c47457caf85e14cb1f99938b1b78bad2f87653f525c154f76c8e0e7b18d6f21d2cf10016eacc565984 SHA512 1a64169c81388848bb26d32e8706fb6d4fbcbde847b1e075f1eee297d5fd4b35ecc835e9ed16ac79825f8c17efac78271e6c8735809a57a8b4ed73b5a789300a diff --git a/app-metrics/prometheus/prometheus-2.19.1.ebuild b/app-metrics/prometheus/prometheus-2.19.1.ebuild index 86894dfc6925..ea908193f99f 100644 --- a/app-metrics/prometheus/prometheus-2.19.1.ebuild +++ b/app-metrics/prometheus/prometheus-2.19.1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/prometheus/prometheus/archive/${MY_PV}.tar.gz -> ${P LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="~amd64 ~arm" IUSE="" BDEPEND=">=dev-util/promu-0.3.0" diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest index 47d7d0a32c5a..ca589a97c28c 100644 --- a/app-metrics/pushgateway/Manifest +++ b/app-metrics/pushgateway/Manifest @@ -7,5 +7,5 @@ DIST pushgateway-0.9.1.tar.gz 4743766 BLAKE2B d0c605d562b64782c6a90e82efcfbb3866 DIST pushgateway-1.0.0.tar.gz 4780753 BLAKE2B 76dc24a6130809d6f838cc6ab08ab522d8a381526688b072277e31eb6ff4fccf63bcf4317512918bf194b0b409b4f52d76d2f88fdf4297c22567420ed24660a9 SHA512 0662b3caefa053c8478b3c3fcaba3298ad69d7f7f195acc3b5b932d1f2004cd3df0276156650b0a6022dc529b4b53c2ee4d33f510937c98a1ca4c95e1c087581 EBUILD pushgateway-0.10.0.ebuild 1387 BLAKE2B df2eeeecc945598417c4ca9c026bb3cabb4103371ee5bd7b7b4ceb27d193daea8b96b26d270f32893ce7ee351df6d2c5b70ccb92c808f357331a8d47427e3c94 SHA512 2a2fa16afa81774a05ffc9311435d7631bf373cfafc1be20e44b633ce1bb3c48e651e99542adba53dc5c09c2f2121c9b38ead473c8fec9696245cb3a6ed66156 EBUILD pushgateway-0.9.1.ebuild 1387 BLAKE2B a3b8be581efdf617ed04265be0bfe6e871a9758f2a891d26515c04b595dc1ed3f51bea584bb3ffd40bb29dc12371e9c7712e0666f0ceb34aabdaccf2e501f103 SHA512 6825836daf611ea929c03c93d43565f7300b16593daab81f19afd7b1c9e173f194ed582434a48170423c008ee821e32bc508a146f598b225b03cd0d02d9eb7f0 -EBUILD pushgateway-1.0.0.ebuild 1387 BLAKE2B 5d0e705c5f5c4b2a47543d62b96ea1ca1ad03d12136b7e0044321979e798169c68f6ebe7b239daf3731f39d3db0d97174e1c5743791e9357e851dd155604475c SHA512 a68fc494b5fb936f5748b518b722179992626b12cd0f43e7d097cdb73dea2d29f3114f629273132e812f6a3ecb73f99f5b8b2ff3fdd0fd7ac17640c1e33ffa97 +EBUILD pushgateway-1.0.0.ebuild 1121 BLAKE2B faae0192aa45ef8b9c680956e7a17c65c82fe340277a7f5f1f474ab9d351ccac611877080bb86b8720968fb7dfe58ec85d32a4f5f20e414f70e9d7456f181f56 SHA512 1d49364135c78810473914317c0226ee2f8732e0d31be54f2bd78019bc7d461b22d7cbd2918cd7a6a3a0ca5c9afee0fb249e048829c00a2bdcb67a8670dd1b23 MISC metadata.xml 331 BLAKE2B 4b07a7e72e94f5a764207f0e59f1a6e8f578b83f761f2cf658ef3a554e6d3fab9725445b6a2a8adc2de990f4a156c14ae9c5d10632f28ab53d995ce4ffc86ba5 SHA512 7d59c6fdec106a6708a76e44714ff47a947fe2b85839c96dafb2768733bbeb37d04a3d936ee8f371f432055f49f54fc904ac1a214fa96da6d4a961a6fb81d599 diff --git a/app-metrics/pushgateway/pushgateway-1.0.0.ebuild b/app-metrics/pushgateway/pushgateway-1.0.0.ebuild index 7a19aeed4f08..2cc3feddfe7c 100644 --- a/app-metrics/pushgateway/pushgateway-1.0.0.ebuild +++ b/app-metrics/pushgateway/pushgateway-1.0.0.ebuild @@ -2,23 +2,21 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit user golang-build golang-vcs-snapshot systemd +inherit go-module user systemd -EGO_PN="github.com/prometheus/pushgateway" EGIT_COMMIT="v${PV/_rc/-rc.}" GIT_COMMIT="cc61f46" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs" HOMEPAGE="https://github.com/prometheus/pushgateway" -SRC_URI="${ARCHIVE_URI}" +SRC_URI="https://github.com/prometheus/pushgateway/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + LICENSE="Apache-2.0 BSD BSD-2 MIT" SLOT="0" +KEYWORDS="~amd64" IUSE="" -DEPEND=">=dev-lang/go-1.12 - >=dev-util/promu-0.3.0" +BDEPEND=">=dev-util/promu-0.3.0" pkg_setup() { enewgroup ${PN} @@ -27,22 +25,17 @@ pkg_setup() { src_prepare() { default - sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" src/${EGO_PN}/.promu.yml || die + sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die } src_compile() { - export -n GOCACHE XDG_CACHE_HOME #672926 - pushd src/${EGO_PN} || die mkdir -p bin || die - GO111MODULE=on GOPATH="${S}" promu build -v --prefix bin || die - popd || die + promu build -v --prefix bin || die } src_install() { - pushd src/${EGO_PN} || die - dobin bin/pushgateway + dobin bin/* dodoc {README,CHANGELOG,CONTRIBUTING}.md - popd || die keepdir /var/lib/${PN} /var/log/${PN} fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN} newinitd "${FILESDIR}"/${PN}-1.initd ${PN} diff --git a/app-metrics/redis_exporter/Manifest b/app-metrics/redis_exporter/Manifest index 8eb94cb6a607..dd3cf15c4200 100644 --- a/app-metrics/redis_exporter/Manifest +++ b/app-metrics/redis_exporter/Manifest @@ -9,5 +9,5 @@ DIST redis_exporter-1.2.1.tar.gz 1415284 BLAKE2B 8218e36fa11d74e1be49f421ce20743 EBUILD redis_exporter-0.20.2.ebuild 1510 BLAKE2B 89f479d55e2bdd18985eea79542729789d06bfec5cea93f01052e0641462a9c5e1841e317d70ef7a80a1f6124170bdc72a929ae3fc22af36410a66166642f51c SHA512 ab1900cd437afbab9ee06ea6e825600338597d61178ea29be1c4d82d409ac34762de205a8fd7697c1298a2565ab2abdda75cad211fed7f582eda783f49380504 EBUILD redis_exporter-1.1.1.ebuild 2277 BLAKE2B ad0b34321ff701bfd36e95e22aa4f8fb79fe84bc184443c9a7e289a1f42a6e6c92d42188180457f0b2ac3fee878f00d70865f98e0b7f0c6c316fbf8f0487105e SHA512 aa9a8b9e9e37c542c1ee1d261bcf63a4bf00c74fdc3b803ff6a0aaa086efd4234ff8ba817310b8597c3858a61ef4d404422b9a07d310ef114392311c4b23d5a0 EBUILD redis_exporter-1.2.0.ebuild 2277 BLAKE2B 48b8ead8ea58cdbe5dc94136da44e26a28fcf81fe16d5236051493f943ac01072a1d14a9782eff39d1bb4e1d2accdd76bca592cf79a85ce629437b29c8b1ebe4 SHA512 bd57ff84adaa8b2acf60aea813545055038d5ee74e4b9040f618452d1d5cfa973218c8438afd1b26d385ea2f95ac936884bf7005313074a36de93ecb9cfb898d -EBUILD redis_exporter-1.2.1.ebuild 2277 BLAKE2B a719655b7cf459b1e8d762a468d3288c32d14cd7350afd776e327e845ae18dc8f62474139cd55cb1ace206a9d37ac3745397e8362ac64e43fc0980ac5b7b0401 SHA512 49653575a306e4662d54bf3502ac8c78fa9a641795d483dcee1f513e3a47a7426cb1543ddeab0295be7dd23a6953ef74e195d277789a5def5198675430547cf4 +EBUILD redis_exporter-1.2.1.ebuild 2063 BLAKE2B bf198d80ab4583d0f0b55700cee49c2e998c0686c8c1b454475e5f98a3606f3d817267c0ba8759536e8b279b22cb82d2b98b3ba674fd054cd422334f37cdfd72 SHA512 7ce2773727111ea31adf7060327d3e1d4e8261e3d79bf513a83c247ab107162e267c3fb7bdc5696776ff10aeb93284eaa8e1a5f04f75ae66c01f8d5f8db87799 MISC metadata.xml 333 BLAKE2B 8eb8199bafb906f2b58072cf9765c7c44a4daeb54216db95f25a6c1545bf30720d73314fafe5d129dbbc200990e7a553e0ddc1486c22aa5d24c8616d21d4af80 SHA512 b1a040dc4cc2762aea081dc99209191da6f0d3d77c343148e3eb539bbc6527586e46de1b97e7cbec9f5098adb2f655059aa8609542353ddd88d19febb43c6fec diff --git a/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild b/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild index 266c339cba74..d983bd4de2fe 100644 --- a/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild +++ b/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild @@ -2,20 +2,17 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit user golang-build golang-vcs-snapshot systemd - -EGO_PN="github.com/oliver006/redis_exporter" -EGIT_COMMIT="55b9cfabb601b5a71822fa396f914a07a31dcbe4" -ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" +inherit go-module user systemd +EGIT_COMMIT=55b9cfabb601b5a71822fa396f914a07a31dcbe4 DESCRIPTION="Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x and 4.x" HOMEPAGE="https://github.com/oliver006/redis_exporter" -SRC_URI="${ARCHIVE_URI}" +SRC_URI="https://github.com/oliver006/redis_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + LICENSE="MIT Apache-2.0 BSD" SLOT="0" +KEYWORDS="~amd64" IUSE="" -S=${WORKDIR}/${P}/src/${EGO_PN} pkg_setup() { enewgroup ${PN} @@ -48,9 +45,8 @@ src_prepare() { } src_compile() { - export -n GOCACHE XDG_CACHE_HOME #684052 - export GO111MODULE=on GOFLAGS="-mod=vendor -v -x" GOBIN="${WORKDIR}/${P}/bin" - go install -work ${EGO_BUILD_FLAGS} \ + export GOBIN="${S}/bin" + go install -mod=vendor \ -ldflags="-X main.BuildVersion=${PV} -X main.BuildCommitSha=${EGIT_COMMIT} -X main.BuildDate=$(date +%F-%T)" \ "${EGO_PN}" || die } -- cgit v1.2.3