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 CF130138334 for ; Mon, 22 Apr 2019 19:00:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9AB2FE082B; Mon, 22 Apr 2019 19:00:43 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 6EE41E082B for ; Mon, 22 Apr 2019 19:00:43 +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 D85D53420B6 for ; Mon, 22 Apr 2019 19:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7FBDE55B for ; Mon, 22 Apr 2019 19:00:38 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1555959502.07668fc1ea7415a14f226e2002098af8191f36ff.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/karma-bin/, www-apps/karma-bin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/karma-bin/Manifest www-apps/karma-bin/files/karma.initd www-apps/karma-bin/karma-bin-0.33.ebuild X-VCS-Directories: www-apps/karma-bin/files/ www-apps/karma-bin/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 07668fc1ea7415a14f226e2002098af8191f36ff X-VCS-Branch: master Date: Mon, 22 Apr 2019 19:00:38 +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: 1efc0f56-01cc-4338-9ea4-6be20c44eafc X-Archives-Hash: e2ab324c107dfea16f62bbc6088f4788 commit: 07668fc1ea7415a14f226e2002098af8191f36ff Author: William Hubbs sony com> AuthorDate: Mon Apr 22 18:57:29 2019 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Apr 22 18:58:22 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07668fc1 www-apps/karma-bin: 0.33 bump Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: William Hubbs gentoo.org> www-apps/karma-bin/Manifest | 1 + www-apps/karma-bin/files/karma.initd | 4 ++-- www-apps/karma-bin/karma-bin-0.33.ebuild | 39 ++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/www-apps/karma-bin/Manifest b/www-apps/karma-bin/Manifest index c96d1c9744a..bd217f341a2 100644 --- a/www-apps/karma-bin/Manifest +++ b/www-apps/karma-bin/Manifest @@ -1,2 +1,3 @@ DIST karma-bin-0.24-amd64.tar.gz 11511588 BLAKE2B 4de38f4925e039ae28e160d2f541cb8b92388b42c68b3f00ca1a4aced635078a5f8bfabe63fe20dcb05a5a75188b2a866b627a26fd68d43de5f0c21a97a28160 SHA512 2864eac54be7f156f4b8feb144825615576e7f18f61f58d3e3834e9968a59a0373d0b156a0f00c5c019b922b251f8a7f35a41f139fbf42c27c562a74af33f14d DIST karma-bin-0.27-amd64.tar.gz 13932963 BLAKE2B e99093ec5a7d72fbca136d63789352e001974e4bf0a90ee45d6ff8a8814df9dfdf695af4fb1b17cf1c6a29fce2be65965f048daa9070484b2fcc53dc6e33122a SHA512 844301cb8bdd08452d02ab33c39dd5d8307e538f87d18fff58bfd888ddd207bb6557d40c053613d2e3991cf915b032119ed08ebe5a32a98d12cac06a25872887 +DIST karma-bin-0.33-amd64.tar.gz 14113120 BLAKE2B a37dc699d7ff26dcbb9188afc48639309c2f44490f2f59dd41d15e6c00035b4fb9bc9bd86abd8e999862a4a71bca76beb70bbb06f97e761fdb80b046dc742ed5 SHA512 a2bec5381648a680af842d5b61c23883655b508ed9803cec2e2e65bffba136076636651dbf8eedb7e220a746629902d4b29956fbebe902a1ff14924bb9a8ba27 diff --git a/www-apps/karma-bin/files/karma.initd b/www-apps/karma-bin/files/karma.initd index 08dbc3bd5c9..027090ad930 100644 --- a/www-apps/karma-bin/files/karma.initd +++ b/www-apps/karma-bin/files/karma.initd @@ -5,8 +5,8 @@ command=/usr/bin/karma command_args="--config.file /etc/karma/karma.yaml ${command_args}" command_background=yes -command_group=karma -command_user=karma +command_group=${group:-karma} +command_user=${user:-karma}:${command_group} error_log=/var/log/karma/karma.log output_log=/var/log/karma/karma.log pidfile=/var/run/karma.pid diff --git a/www-apps/karma-bin/karma-bin-0.33.ebuild b/www-apps/karma-bin/karma-bin-0.33.ebuild new file mode 100644 index 00000000000..809fafaf878 --- /dev/null +++ b/www-apps/karma-bin/karma-bin-0.33.ebuild @@ -0,0 +1,39 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MY_PN=${PN%-bin} + +inherit user + +DESCRIPTION="Alerts dashboard for Prometheus Alertmanager" +HOMEPAGE="https://github.com/prymitive/karma" +SRC_URI="https://github.com/prymitive/${MY_PN}/releases/download/v${PV}/${MY_PN}-linux-amd64.tar.gz -> ${P}-amd64.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +QA_PREBUILT="usr/bin/*" +S="${WORKDIR}" + +pkg_setup() { + enewgroup ${MY_PN} + enewuser ${MY_PN} -1 -1 -1 ${MY_PN} +} + +src_install() { + dobin karma-linux-amd64 + dosym karma-linux-amd64 /usr/bin/karma + insinto /etc/${MY_PN} + newins "${FILESDIR}"/${MY_PN}-0.24.yaml ${MY_PN}.yaml + newinitd "${FILESDIR}"/${MY_PN}.initd ${MY_PN} +keepdir /var/log/${MY_PN} +fowners ${MY_PN}:${MY_PN} /var/log/${MY_PN} +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Please edit ${EROOT}/etc/karma/karma.yaml to match your system." + fi +}