diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2022-11-03 19:41:44 +0000 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2022-11-04 00:31:59 -0500 |
commit | a440aafa3b7669de4abd6b8a755a0b2cfcf89e51 (patch) | |
tree | 5563cae7b303d9d51dc7d4e246ab168694dea5e4 | |
parent | app-text/texlive-core: add github upstream metadata (diff) | |
download | gentoo-a440aafa.tar.gz gentoo-a440aafa.tar.bz2 gentoo-a440aafa.zip |
net-misc/icingadb: Icinga configuration and state database
https://icinga.com/blog/2022/06/30/finally-accomplished-icinga-db-released/
"Icinga DB is the new data backend for Icinga and will replace the IDO as
the central data store in the medium term."
Bug: https://bugs.gentoo.org/879359
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
-rw-r--r-- | net-misc/icingadb/Manifest | 2 | ||||
-rw-r--r-- | net-misc/icingadb/files/icingadb.initd | 11 | ||||
-rw-r--r-- | net-misc/icingadb/icingadb-1.0.0.ebuild | 40 | ||||
-rw-r--r-- | net-misc/icingadb/metadata.xml | 19 |
4 files changed, 72 insertions, 0 deletions
diff --git a/net-misc/icingadb/Manifest b/net-misc/icingadb/Manifest new file mode 100644 index 000000000000..bbb672e0a101 --- /dev/null +++ b/net-misc/icingadb/Manifest @@ -0,0 +1,2 @@ +DIST icingadb-1.0.0-deps.tar.xz 6857272 BLAKE2B eb5ea6ae34125d40b148f6d58befd19671f389933632e5781e4fedd7880ac68923e6843e601df28d01d3fdf17320357b4b169354cb9206144d14b12de8f9c801 SHA512 d7e1efa871e87f8aaff21da23831f8b67e64db3ae6310b7e224d2558fcd27993eaa8317d4e0df0610ec92cbf056d63ea09fca61173e199a2b88ec2fe2c06ad21 +DIST icingadb-1.0.0.tar.gz 3846335 BLAKE2B 89739ce52ae21fd695261eb90f1edcf209a319416687359f63d1bf21ac3dc999db159149207dceccc007a88e59d5f93a7c4ba555c110e3935afdedab4a917445 SHA512 e414ed2146d29d990d82b13026db0d96e72747708a642b382732feeec8a48402cb40edc00e85a8b383e37aaaf4c7f60236747047df189b981668e59d3b2770c0 diff --git a/net-misc/icingadb/files/icingadb.initd b/net-misc/icingadb/files/icingadb.initd new file mode 100644 index 000000000000..b5be7999df38 --- /dev/null +++ b/net-misc/icingadb/files/icingadb.initd @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/icingadb" +command_background="true" +command_user="icinga" +pidfile="/run/${RC_SVCNAME}.pid" +required_files="/etc/${RC_SVCNAME}/config.yml" +output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err" diff --git a/net-misc/icingadb/icingadb-1.0.0.ebuild b/net-misc/icingadb/icingadb-1.0.0.ebuild new file mode 100644 index 000000000000..1b8e0bfff47a --- /dev/null +++ b/net-misc/icingadb/icingadb-1.0.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Icinga configuration and state database supporting multiple environments" +HOMEPAGE="https://icinga.com/docs/icinga-db/" +SRC_URI="https://github.com/Icinga/icingadb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/hydrapolic/gentoo-dist/raw/master/icinga/${P}-deps.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + acct-user/icinga + acct-group/icinga +" + +DOCS=( config.example.yml doc README.md schema ) + +src_compile() { + cd cmd/icingadb || die + ego build +} + +src_install() { + dobin cmd/icingadb/icingadb + einstalldocs + + newinitd "${FILESDIR}/icingadb.initd" "${PN}" + + keepdir /etc/icingadb + keepdir /var/log/icingadb + + fperms 0750 /etc/icingadb /var/log/icingadb + fowners icinga:icinga /etc/icingadb /var/log/icingadb +} diff --git a/net-misc/icingadb/metadata.xml b/net-misc/icingadb/metadata.xml new file mode 100644 index 000000000000..4a0d17a5f25c --- /dev/null +++ b/net-misc/icingadb/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>hydrapolic@gmail.com</email> + <name>Tomáš Mózes</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">Icinga/icingadb</remote-id> + </upstream> +</pkgmetadata> |