diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-06-16 16:00:56 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-06-16 16:00:56 +0200 |
commit | f1b8e15de61579c83b8247339cb45f55d71320cb (patch) | |
tree | 645ccfbf830b5e76211b946292d7578a36c69fb4 /app-metrics | |
parent | dev-db/etcd: Version bump to 3.3.8 (diff) | |
download | gentoo-f1b8e15de61579c83b8247339cb45f55d71320cb.tar.gz gentoo-f1b8e15de61579c83b8247339cb45f55d71320cb.tar.bz2 gentoo-f1b8e15de61579c83b8247339cb45f55d71320cb.zip |
app-metrics/pushgateway: Version bump to 0.5.2
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'app-metrics')
-rw-r--r-- | app-metrics/pushgateway/Manifest | 1 | ||||
-rw-r--r-- | app-metrics/pushgateway/pushgateway-0.5.2.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-metrics/pushgateway/Manifest b/app-metrics/pushgateway/Manifest index ad95cf77cbcc..92428ccfb99c 100644 --- a/app-metrics/pushgateway/Manifest +++ b/app-metrics/pushgateway/Manifest @@ -1,2 +1,3 @@ DIST pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927 DIST pushgateway-0.5.0.tar.gz 1566969 BLAKE2B 255592d172ba910cd4c031f33045ee92fa02b8ba04c69a844e1a81d0fb4c0425f4a71931c917cb70f90422e25ad8761892cde344acb3fa7465e682ff8671f31b SHA512 d0a96aa8b1a59266a8864ab760ad6fdbdc131c49b08aa3bf89f54ed9c6ced6a4b7ab2f8c70d15dad1605ec7b46c5e784dc77be10f26ebd56a3a0f16f7285d607 +DIST pushgateway-0.5.2.tar.gz 1567286 BLAKE2B b62092b349ca8248937795f868e32fbd130df0b23de8b0c81a780102f8df3930db97a86061cf409d658c3e29e8d2eb6e350e18b9101a0bc9a0ba7b77a7fd79fc SHA512 4d6dcbc0199a83fe0469540ec70dbe230cf7c1d3efa66c55679b40e8882736b54af40423c7a2c1ab8693edca839bc67b4cd7125d52f9beab296c55f220e51482 diff --git a/app-metrics/pushgateway/pushgateway-0.5.2.ebuild b/app-metrics/pushgateway/pushgateway-0.5.2.ebuild new file mode 100644 index 000000000000..48c3741c2232 --- /dev/null +++ b/app-metrics/pushgateway/pushgateway-0.5.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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="231071b" +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-util/promu" + +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 + 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" +} |