diff options
Diffstat (limited to 'app-metrics/pushgateway')
-rw-r--r-- | app-metrics/pushgateway/Manifest | 2 | ||||
-rw-r--r-- | app-metrics/pushgateway/pushgateway-1.0.0.ebuild | 23 |
2 files changed, 9 insertions, 16 deletions
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} |