From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 56C2F138334 for ; Mon, 3 Dec 2018 15:01:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2044FE09E9; Mon, 3 Dec 2018 15:01:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D709AE09E9 for ; Mon, 3 Dec 2018 15:01:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E043F335C7B for ; Mon, 3 Dec 2018 15:01:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9625F4D8 for ; Mon, 3 Dec 2018 15:01:29 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1543849249.58c0ca43c078a77d3b071183cd794a9ab5b21e9f.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/grafana-bin/Manifest www-apps/grafana-bin/grafana-bin-5.4.0.ebuild X-VCS-Directories: www-apps/grafana-bin/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 58c0ca43c078a77d3b071183cd794a9ab5b21e9f X-VCS-Branch: master Date: Mon, 3 Dec 2018 15:01:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 484cadc0-da76-49bf-ac34-865f12fb5d3d X-Archives-Hash: b9a1e60957cdfe310fc90ac008c9affa commit: 58c0ca43c078a77d3b071183cd794a9ab5b21e9f Author: Manuel Rüger gentoo org> AuthorDate: Mon Dec 3 15:00:49 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Mon Dec 3 15:00:49 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58c0ca43 www-apps/grafana-bin: Version bump to 5.4.0 Signed-off-by: Manuel Rüger gentoo.org> Package-Manager: Portage-2.3.52, Repoman-2.3.11 www-apps/grafana-bin/Manifest | 1 + www-apps/grafana-bin/grafana-bin-5.4.0.ebuild | 63 +++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/www-apps/grafana-bin/Manifest b/www-apps/grafana-bin/Manifest index 99a3bf6db00..3e1c06e9f7e 100644 --- a/www-apps/grafana-bin/Manifest +++ b/www-apps/grafana-bin/Manifest @@ -1 +1,2 @@ DIST grafana-bin-5.3.4.tar.gz 54609273 BLAKE2B 4a9197baaa6d6689d1e23630f49513a9b6b90ebb081ab8f82fff8e2f3f1c156b0fec5a30c6f6222a3225646b37305a535747e4a60157528a56f222cba56a8ada SHA512 97aa9325f9886a13844828d29395fb6a0752ccc0311119850c78425a0d0c8e82844b20b4c0dbacec0de479aaa26dddb5510485d0fd6a8a7e760f4b540bb3b270 +DIST grafana-bin-5.4.0.tar.gz 55200142 BLAKE2B f529b0fbb82aabf290f89ceb94d757725c5fef48a94a2ec54f26f20b332b0138fa54b122380d71205e03638c33d152bfac0e814c18b0f99bcdb8ef112ef9bba7 SHA512 e05793d23fead999868c7edf925fd90da099f50ecb03166471eebfc42aed1c30fcbd8edc3156b14e48309a34cbd9f87566d1901cc946ec45a4834b4ac7808e9d diff --git a/www-apps/grafana-bin/grafana-bin-5.4.0.ebuild b/www-apps/grafana-bin/grafana-bin-5.4.0.ebuild new file mode 100644 index 00000000000..211fc9468af --- /dev/null +++ b/www-apps/grafana-bin/grafana-bin-5.4.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit user systemd + +MY_PN=${PN/-bin/} +S=${WORKDIR}/${MY_PN}-${PV} + +DESCRIPTION="Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB" +HOMEPAGE="https://grafana.org" +SRC_URI="https://s3-us-west-2.amazonaws.com/grafana-releases/release/${MY_PN}-${PV}.linux-amd64.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_PREBUILT="usr/bin/grafana-*" +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 + + 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." +}