summaryrefslogtreecommitdiff
path: root/www-apps/karma-bin
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/karma-bin')
-rw-r--r--www-apps/karma-bin/Manifest2
-rw-r--r--www-apps/karma-bin/karma-bin-0.27.ebuild39
2 files changed, 41 insertions, 0 deletions
diff --git a/www-apps/karma-bin/Manifest b/www-apps/karma-bin/Manifest
index 082646958ef6..a4610a708b63 100644
--- a/www-apps/karma-bin/Manifest
+++ b/www-apps/karma-bin/Manifest
@@ -1,5 +1,7 @@
AUX karma-0.24.yaml 946 BLAKE2B 9cee1af92d690892b6160d43e086ee20b24b525cb821848e500f0280304c10a0a2c0e7c7f64ee101f0b437529be7640eec8c37ecffdfae67b991117272605911 SHA512 82f3d5e3213bae5258364bdae8d4463d5010314ab2ba737335c395f00c690e740d5a672dc345169057d15b1ffbd4cb34ce6132e1a99fcdd5f19f906b5bf3a466
AUX karma.initd 374 BLAKE2B 0b0e81fd0738b9b440a7fc6505a7575303016cf9297652223fd403f5256706b483719d4a7674ac29cdc0566a7edeab47d488ba52286019904edb0b4e6fe056ef SHA512 a0344542591276fe29ec489eb6cbf00f1b959438cdcbb936d6b2d751c54f8ee39190713a45a30f21215107f187e972cd8d46e7915503f44e0e6655b65e2b1a43
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
EBUILD karma-bin-0.24.ebuild 950 BLAKE2B d966dc1b996ed5e2d95b2b12007c45cf0522862a48782e05c4fe1b62407ceee9e7cf015259291e6c6999df9d59409e9bb5b880feba66e0ad70489726641de462 SHA512 d83f53417628d3274b338e3bfe36ac7d1472fef3f7cd51525dea1a5f0f64fdb825cf26f235128353c4e2ad7b63e5b8d8560e5cc78d3124eb83c4f8ec4787d3c1
+EBUILD karma-bin-0.27.ebuild 949 BLAKE2B f5d10a7fbf43d99d5a11e27e6da6c1b9a98517bb329c9c326929897c04c44f3c2d1a318990e34863ce23faac6cd84293183848835b69a69cbedeee36ee6e8331 SHA512 d1cc2163379e50331f3b6110b6187445651309ce54206efa6a6fb84ccd65f65a3bfb9103756b39059bfeb3445fe571eab901ba63fb4b8eff10b4ce2a81ff9e18
MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0
diff --git a/www-apps/karma-bin/karma-bin-0.27.ebuild b/www-apps/karma-bin/karma-bin-0.27.ebuild
new file mode 100644
index 000000000000..809fafaf8788
--- /dev/null
+++ b/www-apps/karma-bin/karma-bin-0.27.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
+}