From b7ebc951da8800f711142f69d9d958bde67a112d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 28 Apr 2019 09:54:45 +0100 Subject: gentoo resync : 28.04.2019 --- app-metrics/pushgateway/Manifest | 2 + app-metrics/pushgateway/pushgateway-0.8.0.ebuild | 52 ++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 app-metrics/pushgateway/pushgateway-0.8.0.ebuild (limited to 'app-metrics/pushgateway') diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest index 20da6df7b315..924f6ecced4a 100644 --- a/app-metrics/pushgateway/Manifest +++ b/app-metrics/pushgateway/Manifest @@ -10,9 +10,11 @@ DIST pushgateway-0.5.0.tar.gz 1566969 BLAKE2B 255592d172ba910cd4c031f33045ee92fa DIST pushgateway-0.5.2.tar.gz 1567286 BLAKE2B b62092b349ca8248937795f868e32fbd130df0b23de8b0c81a780102f8df3930db97a86061cf409d658c3e29e8d2eb6e350e18b9101a0bc9a0ba7b77a7fd79fc SHA512 4d6dcbc0199a83fe0469540ec70dbe230cf7c1d3efa66c55679b40e8882736b54af40423c7a2c1ab8693edca839bc67b4cd7125d52f9beab296c55f220e51482 DIST pushgateway-0.6.0.tar.gz 1768979 BLAKE2B 50c9a6a00a207787795402ca1198849f38d658233918bb4a34f6b0ac9ccef993ce4ff8060ffd20dc9f0d23b861f953d7e3f7785bbf5d88ffc5ed97342a05c530 SHA512 209e5349d0aeb584dcf45c842923b5280d11ce8af2ff2236454182d1a42554a9d1b7d7add363f31203caf081424187f6bac243f43efb916d90803c6e1de4f76a DIST pushgateway-0.7.0.tar.gz 1867703 BLAKE2B 588be72ba8f7b8421e36e7cb33ecc27e8f94c242e03d7a97b2f1f54c167373162a9e9e7dba63897e583331370b96723169359ebd78839a0bd1306f850dc24cc1 SHA512 2057c028e2427a9d63ad2fc47a0f367a9b075c259186659c7d20038d79aaa4f5a014a4304d36eee2e78c08af69e27f7f65e6aed2453c4fa630203fd4bf944c41 +DIST pushgateway-0.8.0.tar.gz 1869626 BLAKE2B 43c288c481160807324f4d247a9d03b1696be934e97dc852f0ee6732d56715a2c78b451247f62f5cd0d93d9ceff64b54ccb20a91d78496a915271b9080d5832c SHA512 fdb8b3e1cd11b7faa329e1b625c7d2d98635624f32623ae99a7bb1cf2222ed682cb9c031afec191a5426d6fafade7bb92add7dc607898e4a839252aca5f1d71c EBUILD pushgateway-0.4.0.ebuild 1301 BLAKE2B 328b451698ceec2cd6f6020cadba897836c66513fcc25169be9e92ca7715e97e52fd245c51e7cb5f58a56967c486294f0164501dfbc9099d1d0144452f379c1a SHA512 81b652f6f3a78a39aa1604a7fa1209fd73595ea318736a735ddb00cd7d35ec48575eb4106c12efbacb3ac095c8280ec96fb9a0decc60631847079dcbf805bcec EBUILD pushgateway-0.5.0.ebuild 1291 BLAKE2B 267e67938461d4b8461822f9986ad1782ebb66e4e01fb623f265d07c9f47b4af7041ff07ba11660596ac6e3452c53eeed941679ab47690979173bf660a7ae822 SHA512 c2d44c055d5aa6f871f05ac459fa88c2f4321c4977ef07073b16ccbc72b5fc1199adaedffd0d5e70d4df05920596066282f8eb91cca4d0fd4f4a17f02b2ef16e EBUILD pushgateway-0.5.2.ebuild 1291 BLAKE2B 2ac140c425dc74dfb9163522c45d827a99a63a03565e4b51228857bbe96bb973ec18ad452ba8790e330ba1c51f3c48e361e20c1d28c99e83f9f8ba6a8e04ca3d SHA512 848ae6f60ab5cf26a9b6eda1619eae7120725581594d069dc3be4fadd0ca1ff1cff6ca2aca84ff8e155cb3b63f1d5daff8c21c79129cc4c631daf92592a801d7 EBUILD pushgateway-0.6.0.ebuild 1288 BLAKE2B c73e413b0765e51dbf57822de0282ca6d8b2c1c9a72d2d92182f436e2af70415c097f474aacec1105926f4fcbfaf74a430c0da9b26b16999c86952a9c4bba28d SHA512 462e4ba66c24920f8da44d452c1a240d06da2b72778b3b34a529a01c9fb06809a38d77836bc05506d3c4356ceed45ba1835f32b6c281c0a085887299295c6a64 EBUILD pushgateway-0.7.0.ebuild 1323 BLAKE2B a27919dcf4d086567e6c64dc760b2102b21b062a859d15d4f0c9e5cf00442bb2ddb988ef380db7feaef7a26ce6735ae4ed9049dff39034bcb0639cec9ba17966 SHA512 20ee0ea96335bad0060a3eaed11b0ea18c18d64330e5acd66488f5e971363cc3e1711f600838eb4c5df000a4f4c32a71486f8e3d8fdf4e51cf332cfaf8cd4083 +EBUILD pushgateway-0.8.0.ebuild 1331 BLAKE2B 90883388cc67b375a836e1c9c1957d1f91a51b76c33da6a8374b9ccad589641c1bc49a818febc13fef6f94ee725e2c73811ec572773c768ef005b7e6032bd8be SHA512 c34814100b7c3b758d84c3ab9409689b4d9aeaff8f91a4789d53e35dfea203c614340de2fd0a27db162a44a3a8d6b9cf46bf15e10b0d78aa7d33ecdbb62f047b MISC metadata.xml 437 BLAKE2B 904f35ea9287d25e5708e450715f8719004a5349ea871e9730fe36a98257cd0ba2417ec572f0d26a8d5d2de5629bca2d1b81f3e344bb8e4a52653175e8df2f3e SHA512 09284843912bc08aef77485911289fe1050f7d42e726e555650ad73b3ca51bcb62af90ccd69c3529bbdb7373b9ec317e0afd74687b84b123ac4fbbf2a3de9d7f diff --git a/app-metrics/pushgateway/pushgateway-0.8.0.ebuild b/app-metrics/pushgateway/pushgateway-0.8.0.ebuild new file mode 100644 index 000000000000..3d1f5eba9122 --- /dev/null +++ b/app-metrics/pushgateway/pushgateway-0.8.0.ebuild @@ -0,0 +1,52 @@ +# 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 systemd + +EGO_PN="github.com/prometheus/pushgateway" +EGIT_COMMIT="v${PV/_rc/-rc.}" +GIT_COMMIT="d90bf32" +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" +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" +} -- cgit v1.2.3