diff options
author | Tobias Klausmann <klausman@gentoo.org> | 2017-10-09 11:24:51 +0200 |
---|---|---|
committer | Tobias Klausmann <klausman@gentoo.org> | 2017-10-09 11:24:51 +0200 |
commit | 269db3dbcfab1e4ef518956bafd5caa54c92353c (patch) | |
tree | 602fd81cda686f4c268fe9ba127c45f4e748fb33 /www-apps | |
parent | sys-kernel/ck-sources: v.bump (4.9.54) (diff) | |
download | gentoo-269db3dbcfab1e4ef518956bafd5caa54c92353c.tar.gz gentoo-269db3dbcfab1e4ef518956bafd5caa54c92353c.tar.bz2 gentoo-269db3dbcfab1e4ef518956bafd5caa54c92353c.zip |
www-apps/grafana-bin: Add v4.5.2
Package-Manager: Portage-2.3.10, Repoman-2.3.3
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/grafana-bin/Manifest | 1 | ||||
-rw-r--r-- | www-apps/grafana-bin/grafana-bin-4.5.2.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index 4ac47ea65013..8ce7766ac65b 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1,2 +1,3 @@ DIST grafana-bin-4.4.3.tar.gz 47282503 SHA256 90d0c53f6a9edb5f6fb5acb58265a167ef41f5b06701301eafc30bafa28566dc SHA512 21eea944931a9d4a7120d6f2e27fb5300f747ba0ff12cc93b160d38133400548701e342e6481e647f4252d34740aa49a7ebbe8c63a2a30a9fa6a057b90deb87a WHIRLPOOL d5fffbf9dc21fbb0711335a6234233a95bcd801bc3701e1b1be8b037977a291d77e668e950f6bf2c7f848c2395ccfe424b9abf97062f8d1b08b3b676e24f0f81 DIST grafana-bin-4.5.1.tar.gz 50375732 SHA256 62fe532e5c2f7a56c713d53ee91c710e3213bae642447fd4624d6df806702651 SHA512 ea529a58aa835113ac2b4e8fb7b7f4f7dfa2a554e4aa212f81838faf193de7914a924b80162caa4bfee79d7dbd35278a792c15ca7e0302e062e26e93e29dd488 WHIRLPOOL 02959f0c93a0d257b56dd12bd9abe06372d51155751811c05ecf2281c2a52e3b41ef7d0c2aa2102c66e3d549f1a87f8f62fcabe00bedef7aad5185cbf550e087 +DIST grafana-bin-4.5.2.tar.gz 50374607 SHA256 c438a7ef775dd64e2ebfc72bef1e5a69849f1802b1921f30d6904e8cf05281a6 SHA512 9b650e204f90dfec7ea3ff723a937a3332064c3b5a00bebf3aca4cffe1fdccf83efbe5040c954dc82bc3389a4f5d72f7fa47941f43d022cbdf40e067f9c5adf7 WHIRLPOOL da931ffb2e4a73a77cc64afd3adace46a6043f31455c5bfec9181c0d80aa5191877ffba95d0f77b147ef17f268bb10e3921f7b4304988a08e9b70d87bc40b9c6 diff --git a/www-apps/grafana-bin/grafana-bin-4.5.2.ebuild b/www-apps/grafana-bin/grafana-bin-4.5.2.ebuild new file mode 100644 index 000000000000..3a8308e2d6d7 --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-4.5.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit user systemd + +MY_PN=${PN/-bin/} +S=${WORKDIR}/${MY_PN}-${PV} + +DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB" +HOMEPAGE="http://grafana.org" +SRC_URI="https://s3-us-west-2.amazonaws.com/grafana-releases/release/${MY_PN}-${PV}.linux-x64.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND}" + +QA_EXECSTACK="usr/share/grafana/vendor/phantomjs/phantomjs" +QA_PRESTRIPPED=${QA_EXECSTACK} + +pkg_setup() { + enewgroup grafana + enewuser grafana -1 -1 /usr/share/grafana grafana +} + +src_install() { + keepdir /etc/grafana + insinto /etc/grafana + newins "${S}"/conf/sample.ini grafana.ini + rm "${S}"/conf/sample.ini || die + + # Frontend assets + insinto /usr/share/${MY_PN} + doins -r public conf vendor + + dobin bin/grafana-cli + dobin bin/grafana-server + + newconfd "${FILESDIR}"/grafana.confd grafana + newinitd "${FILESDIR}"/grafana.initd.3 grafana + systemd_newunit "${FILESDIR}"/grafana.service grafana.service + + keepdir /var/{lib,log}/grafana + keepdir /var/lib/grafana/{dashboards,plugins} + fowners grafana:grafana /var/{lib,log}/grafana + fowners grafana:grafana /var/lib/grafana/{dashboards,plugins} + fperms 0750 /var/{lib,log}/grafana + fperms 0750 /var/lib/grafana/{dashboards,plugins} +} + +postinst() { + elog "${PN} has built-in log rotation. Please see [log.file] section of" + elog "/etc/grafana/grafana.ini for related settings." + elog + elog "You may add your own custom configuration for app-admin/logrotate if you" + elog "wish to use external rotation of logs. In this case, you also need to make" + elog "sure the built-in rotation is turned off." +} |