diff options
author | William Hubbs <williamh@gentoo.org> | 2018-11-14 16:40:46 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2018-11-14 16:42:34 -0600 |
commit | f464259e57463c599d59565b7a8124dd2b4c5850 (patch) | |
tree | a43449eff137bf45b924c5134a3d8d7768b5a4ff /net-analyzer/chronograf | |
parent | app-text/cuneiform: Drop old (diff) | |
download | gentoo-f464259e57463c599d59565b7a8124dd2b4c5850.tar.gz gentoo-f464259e57463c599d59565b7a8124dd2b4c5850.tar.bz2 gentoo-f464259e57463c599d59565b7a8124dd2b4c5850.zip |
net-analyzer/chronograf: 1.7.3 bump
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-analyzer/chronograf')
-rw-r--r-- | net-analyzer/chronograf/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/chronograf/chronograf-1.7.3.ebuild | 70 |
2 files changed, 72 insertions, 0 deletions
diff --git a/net-analyzer/chronograf/Manifest b/net-analyzer/chronograf/Manifest index a0b3ea534a55..6bf2c756bf05 100644 --- a/net-analyzer/chronograf/Manifest +++ b/net-analyzer/chronograf/Manifest @@ -1,4 +1,6 @@ DIST chronograf-1.4.3.0.tar.gz 3979946 BLAKE2B 963511250e1d49ca92e9fde23b3c0899331ef22fe071c47c8d9d6a0ab0264e2dcb1dc083559424ff0b4bb59b0d4eb3121febe6f1ce828bac24598ae8be51cb6a SHA512 49a7565dc58f4f79ad1feb25bf6f74e9267630f6dab5f8767411d11f12dd7a76e9486b8f52c961c27dae6511286192585cee67363acf558287da436c39500ef9 DIST chronograf-1.6.2.tar.gz 4585236 BLAKE2B a9861f84c1c862512fb1a5166f063a54d6a72f0eb3d175f7314ac50fd04b4f2529e18195cffa49b11a6b13483619ae7e579bc15479f8cea0698fd13cdc594677 SHA512 c4be1deed7ce4f0006cbf123faa0577909bf821581f5f263d3d474963f2541dca0092964a38626b80b5f32c11947f130aa97d37f3d673e304cea665c42bf2a32 +DIST chronograf-1.7.3.tar.gz 16319610 BLAKE2B 3d90ad33ce78b4bd939e5c016ea14b7986d8888707a8a68cd832e0826612aa984d65615301bee4d800343ecc38964103abcf72810c6390fd9cdd65542739e9ba SHA512 dd5e4805dcbe167a399b7927b976839bb99f805abc7caf0fbf9cba479647df1a681f175d7bfc48a2267312e7f89470935623f7bc5e6bcb7cf861928f3e0b2f1a DIST chronograf-gen-1.4.3.0.tar.gz 2488979 BLAKE2B 47738629d25dd6b5c11f942bdcea089291bfd8ad1476f448985d35fd35fa4a59274e95b863f7055c34ac0047f584fc45c83e3143aceb8b13b6c4fd28c42039ec SHA512 0346c19f80bea597c87a54f2d5409854a30dfa020bb0326791a6387d81aafe0c6e5112b6d086b21f95dc4f68a269a8fb2e0113156122636c3a6281ba58df6b49 DIST chronograf-gen-1.6.2.tar.gz 3263429 BLAKE2B 6b6202bfd216a7777c89f2329379df03226b0b212e720987357b66bc26c3d07212a26ed2c41991c7ee3c0eea9f3a731985697b7e4752eb3be906cbc8790a8290 SHA512 55cf76b6c33134a49deb605543ff49aeffaa3baf4262787b19afe1d3d42c2a6e66e88d031f07a2f13a214556c479daa6b40f8586b529730c924ae45bf0e85213 +DIST chronograf-gen-1.7.3.tar.gz 2893752 BLAKE2B bfbc680c3237522844b406504412dd6001eef3f93fc31df18660bb74b7e7561f44c5d3af039af62e000610f40c81e78fcde8a651a5198b4bd152fa04e93c51c7 SHA512 8120f563e0c5be8a7b8179016db72a1ff5eb7447c1124ffeb87d5c928275f3b0080f1f4d01cd9c5b0eef601852b2e3701e3b4cefda9a427bbaeaf9fc46a69ab1 diff --git a/net-analyzer/chronograf/chronograf-1.7.3.ebuild b/net-analyzer/chronograf/chronograf-1.7.3.ebuild new file mode 100644 index 000000000000..c4eb4def22b6 --- /dev/null +++ b/net-analyzer/chronograf/chronograf-1.7.3.ebuild @@ -0,0 +1,70 @@ +# Copyright 2018 Sony Interactive Entertainment Inc. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/influxdata/chronograf + +inherit golang-build golang-vcs-snapshot systemd user + +DESCRIPTION="Monitoring, processing and alerting on time series data" +HOMEPAGE="https://www.influxdata.com" +SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~williamh/dist/${PN}-gen-${PV}.tar.gz" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +pkg_setup() { + enewgroup chronograf + enewuser chronograf -1 -1 /var/lib/chronograf chronograf +} + +src_unpack() { + local f + golang-vcs-snapshot_src_unpack + pushd "${S}/src/${EGO_PN}" > /dev/null || die + for f in ${A}; do + case $f in + ${PN}-gen-*.tar.*) + unpack ${f} + ;; + esac + done +} + +src_compile() { + pushd "src/${EGO_PN}" > /dev/null || die + set -- env GOPATH="${S}" go build -o chronograf cmd/chronograf/main.go + echo "$@" + "$@" || die "building chronograf failed" + set -- env GOPATH="${S}" go build -o chronoctl cmd/chronoctl/main.go + echo "$@" + "$@" || die "building chronoctl failed" + popd > /dev/null || die +} + +src_install() { + pushd "src/${EGO_PN}" > /dev/null || die +dobin chronograf chronoctl + dodoc CHANGELOG.md + insinto /etc/logrotate.d + newins etc/scripts/logrotate chronograf + systemd_dounit etc/scripts/chronograf.service + insinto /usr/share/chronograf/canned +doins canned/*.json +keepdir /usr/share/chronograf/resources + keepdir /var/log/chronograf + fowners chronograf:chronograf /var/log/chronograf + newconfd "${FILESDIR}"/chronograf.confd chronograf + newinitd "${FILESDIR}"/chronograf.rc chronograf + popd > /dev/null || die +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + einfo "In order to use chronograf, you will need to configure" + einfo "the appropriate options in ${EROOT}etc/conf.d/chronograf" + fi +} |