summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <william.hubbs@sony.com>2019-04-22 13:57:29 -0500
committerWilliam Hubbs <williamh@gentoo.org>2019-04-22 13:58:22 -0500
commit07668fc1ea7415a14f226e2002098af8191f36ff (patch)
tree900b22f42f616365757a21026b71b3af755a256b /www-apps/karma-bin/karma-bin-0.33.ebuild
parentmedia-radio/qrq: Add missing patch file (diff)
downloadgentoo-07668fc1ea7415a14f226e2002098af8191f36ff.tar.gz
gentoo-07668fc1ea7415a14f226e2002098af8191f36ff.tar.bz2
gentoo-07668fc1ea7415a14f226e2002098af8191f36ff.zip
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 <williamh@gentoo.org>
Diffstat (limited to 'www-apps/karma-bin/karma-bin-0.33.ebuild')
-rw-r--r--www-apps/karma-bin/karma-bin-0.33.ebuild39
1 files changed, 39 insertions, 0 deletions
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 000000000000..809fafaf8788
--- /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
+}