diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /app-metrics/pushgateway | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'app-metrics/pushgateway')
-rw-r--r-- | app-metrics/pushgateway/Manifest | 6 | ||||
-rw-r--r-- | app-metrics/pushgateway/pushgateway-0.10.0.ebuild (renamed from app-metrics/pushgateway/pushgateway-0.9.0.ebuild) | 4 | ||||
-rw-r--r-- | app-metrics/pushgateway/pushgateway-1.0.0.ebuild | 52 |
3 files changed, 58 insertions, 4 deletions
diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest index f714753aa725..c8794cb06fb4 100644 --- a/app-metrics/pushgateway/Manifest +++ b/app-metrics/pushgateway/Manifest @@ -2,8 +2,10 @@ AUX pushgateway-1.confd 827 BLAKE2B b1a089d29ef99f692c4b38a8fb8c2d48ac018e5141fd AUX pushgateway-1.initd 664 BLAKE2B f24a389eb6f968d63a21ab0e8740604bcae440d3797ff1640c4e5cd09c9bba398db10c385321a6a50da78518ed341ba654baffb2671106e8ae04eb303bedb3a1 SHA512 515a49e4b1aa6934611f86f85e2132004d234d312c13be23887709fbcaad86280034942967b25d7e355ab491ac4c09e7c88221a95279f2f751cbd2387eba9ad5 AUX pushgateway-1.service 477 BLAKE2B 123c630e40ca47626cf1d6bc93e8556ab1fccb1dd799cd72c245e5a937aff1a5c1b5ad9280d8680a8643d055376960012e36691f9e4f6a8d64bbdc91a749b876 SHA512 0985e8e45b1557adefe5f36ed163440c81f432b95198819d3e46c3f946f255954e5cbe41cf378b33cd3dcb75c457970877f2f6a7585bfc90b58ac2df9abb2970 AUX pushgateway.logrotated 95 BLAKE2B 78db6689bbfac484b13a3444ebef47180aa94bfa6fa0c6b4fe273f415713b539116c1c05fc5348d504b9c6de270449a422fa7f49e63854a65d4ef6d25c3bf8c3 SHA512 615a8d105d97412b6819f65b9e34e28cb326457765ec9426f33d71cc4794aa1cbfff0abbcee14dbf94b6ae3f622c95d087ad485250c48b3e3efa8edcfe997069 -DIST pushgateway-0.9.0.tar.gz 4722706 BLAKE2B 6d024819a4729cb4e728a0d1b654be94881e4a439c734655a33f5dc7c978d09205bf97e51668c2da68319df14bf802a142342483c679f4add3bf2d0992f8bef2 SHA512 0dd98f3e35e2d13e4e5e30ee398121b663ebfde240654c49f44bb0b765065f35ecefd9ddaad706f7b9a5365ea2ef1afdebe57441fa2c18c211a8670d795719b0 +DIST pushgateway-0.10.0.tar.gz 4776112 BLAKE2B 000711293dd2afccd77ec1e30d68bef50ce57e0113baece79b31e2a0f2d6215c4a36e147166f699a41d58f2a30a1917057f9389ae23858581cec6250664d4850 SHA512 0f66c1cf3d93a9f56dde0f10b359c7a1187ff702b418ed43d29bc18f2feafea582c98a537e536969277ee57a255b04715892e4f31244bd822522f12aff1b2a96 DIST pushgateway-0.9.1.tar.gz 4743766 BLAKE2B d0c605d562b64782c6a90e82efcfbb3866e017a61f8165632e3ee87ca1ae677d2d59192262b0086e2dd4c4210236c40666f5aff3203a1fcc208cf300b82599f1 SHA512 a3f10ab2b3fcc5c9c14b761b6bd12b9e885e5b948c540b9bd6cc0c825ef7cb6e787fcc94b204bd15fd8b2690242b43a77e5b0b85e69ddf832d0dc3ee668c7fcf -EBUILD pushgateway-0.9.0.ebuild 1345 BLAKE2B e1391ce368a5a866deb7db68b6775cf9ea70af844a01cc04ec98009bc566f9387cec4c2c7a8979d3f59e258596449c99dee1ba3c6ff634ae7ffcc398da507718 SHA512 c813fa5596e1ae5b7fdf2e19e65955f6d3235929b79cac35508a8c6aa83335bdfe875c6938bb5aaa4846961de316d9b7054a7ea69f13bd72ce75a4685dc9803a +DIST pushgateway-1.0.0.tar.gz 4780753 BLAKE2B 76dc24a6130809d6f838cc6ab08ab522d8a381526688b072277e31eb6ff4fccf63bcf4317512918bf194b0b409b4f52d76d2f88fdf4297c22567420ed24660a9 SHA512 0662b3caefa053c8478b3c3fcaba3298ad69d7f7f195acc3b5b932d1f2004cd3df0276156650b0a6022dc529b4b53c2ee4d33f510937c98a1ca4c95e1c087581 +EBUILD pushgateway-0.10.0.ebuild 1345 BLAKE2B 56f5ff2ebaf1ac33a415bd47b52b2a9405cfafe797685ed3e3adada7c1f1fc38910e291f8810efd81286a1199659c72f90650c74d67ce1761b4e924a3647922c SHA512 f39908baeaebf76f4f6c90cd066dca2b4ff7d81b1a3f52363b29f40f7ccf9f301c522345eac870aac03ce9e8b9de1f92d58c4dfb68e28c7c94436b3f0e58be2d EBUILD pushgateway-0.9.1.ebuild 1345 BLAKE2B 7d02e607f7b44a8f586efd4998c3b6657f7a4d4f90dbf2e47f5c7f055440ee576128d7119f2aa46f3300e8c4c06be7c4a50591755ec9912afbd8b9acd15979d3 SHA512 0874eebcdb063c7e8f3bb632d71b67363a8c093f85ffa8834b0248079bc1471ee3372e996daf83f7bb7a7e4073c93cbaf547f224e03261bcde25ed1cc9ae9e20 +EBUILD pushgateway-1.0.0.ebuild 1345 BLAKE2B 2f32b565c77474a19c43a976dc12ad48fdea9111ed966bb12eb4888801ace7c5257d7cd778f38877c75b7a2fd4ce464853648d6834a94617156a25068af293f9 SHA512 c681fb1a328712146681fe14e92efaab8c9fcfe2592b38cf2c264ffa75d794fc0a5aa2d0be2558627acea5b3f85c71ed5c49b60fd09a5a9331033744307ec646 MISC metadata.xml 437 BLAKE2B 904f35ea9287d25e5708e450715f8719004a5349ea871e9730fe36a98257cd0ba2417ec572f0d26a8d5d2de5629bca2d1b81f3e344bb8e4a52653175e8df2f3e SHA512 09284843912bc08aef77485911289fe1050f7d42e726e555650ad73b3ca51bcb62af90ccd69c3529bbdb7373b9ec317e0afd74687b84b123ac4fbbf2a3de9d7f diff --git a/app-metrics/pushgateway/pushgateway-0.9.0.ebuild b/app-metrics/pushgateway/pushgateway-0.10.0.ebuild index cd3b9589fb94..5ab0a518e0de 100644 --- a/app-metrics/pushgateway/pushgateway-0.9.0.ebuild +++ b/app-metrics/pushgateway/pushgateway-0.10.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit user golang-build golang-vcs-snapshot systemd EGO_PN="github.com/prometheus/pushgateway" EGIT_COMMIT="v${PV/_rc/-rc.}" -GIT_COMMIT="44d7ae6" +GIT_COMMIT="b73d22c" ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" diff --git a/app-metrics/pushgateway/pushgateway-1.0.0.ebuild b/app-metrics/pushgateway/pushgateway-1.0.0.ebuild new file mode 100644 index 000000000000..102cff399d1d --- /dev/null +++ b/app-metrics/pushgateway/pushgateway-1.0.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 user golang-build golang-vcs-snapshot 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}" +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/go-1.12 + >=dev-util/promu-0.3.0" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + mkdir -p bin || die + GO111MODULE=on GOPATH="${S}" promu build -v --prefix bin || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin bin/pushgateway + 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} + newconfd "${FILESDIR}"/${PN}-1.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}-1.service" +} |