diff options
Diffstat (limited to 'net-misc/icingadb/icingadb-1.2.0.ebuild')
-rw-r--r-- | net-misc/icingadb/icingadb-1.2.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net-misc/icingadb/icingadb-1.2.0.ebuild b/net-misc/icingadb/icingadb-1.2.0.ebuild new file mode 100644 index 000000000000..b29d48bda9dc --- /dev/null +++ b/net-misc/icingadb/icingadb-1.2.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd + +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://dev.gentoo.org/~sbraz/distfiles/${P}-deps.tar.xz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + acct-user/icinga + acct-group/icinga +" + +DOCS=( config.example.yml doc README.md schema ) + +src_prepare() { + default + sed -e "s|@EPREFIX@|${EPREFIX}|" "${FILESDIR}/icingadb.service" > "${T}/icingadb.service" || die +} + +src_compile() { + local cmd + for cmd in icingadb icingadb-migrate; do + pushd "cmd/${cmd}" || die + ego build + popd || die + done +} + +src_install() { + local cmd + for cmd in icingadb icingadb-migrate; do + dobin "cmd/${cmd}/${cmd}" + done + einstalldocs + + newinitd "${FILESDIR}/icingadb.initd" "${PN}" + systemd_dounit "${T}/icingadb.service" + + keepdir /etc/icingadb + keepdir /var/log/icingadb + + fperms 0750 /etc/icingadb /var/log/icingadb + fowners icinga:icinga /etc/icingadb /var/log/icingadb +} |