Name: icingadb Version: 1.2.0 Release: 1%{dist} Summary: Icinga configuration and state database supporting multiple environments Group: Productivity/Databases/Daemons License: GPLv2 URL: https://icinga.com Source0: icingadb-1.2.0.tgz Source1: icingadb.service Patch0: go-version.patch BuildRequires: gcc BuildRequires: systemd-rpm-macros BuildRequires: compiler(go-compiler) Requires(pre): shadow-utils %description Icinga DB is a set of components for publishing, synchronizing and visualizing monitoring data in the Icinga ecosystem. This is the Icinga DB daemon, which synchronizes monitoring data between a RedisĀ® server and a database. %define debug_package %{nil} %prep %autosetup -p0 go build -buildvcs=false -trimpath -o . ./cmd/... %install install -Dpm 0755 icingadb %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/usr/sbin/icingadb install -Dpm 0755 icingadb-migrate %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/usr/sbin/icingadb-migrate install -dm 0750 %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/etc/icingadb install -pm 0640 config.example.yml %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/etc/icingadb/config.yml install -Dpm 0644 %_topdir/SOURCES/icingadb.service %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}%{_unitdir}/icingadb.service install -dm 0755 %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/usr/share/icingadb cp -rv schema %_topdir/BUILDROOT/icingadb-1.2.0-1%{dist}.%{_arch}/usr/share/icingadb/ %pre getent passwd icingadb >/dev/null || useradd -rU -d /etc/icingadb -s /sbin/nologin icingadb %post %systemd_post icingadb.service %preun %systemd_preun icingadb.service %postun %systemd_postun_with_restart icingadb.service %files %doc README.md %license LICENSE /usr/sbin/icingadb /usr/sbin/icingadb-migrate %{_unitdir}/icingadb.service /usr/share/icingadb/schema %attr(-, icingadb, root) /etc/icingadb %attr(-, icingadb, root) %config(noreplace) /etc/icingadb/config.yml %changelog * Thu Apr 11 2024 Icinga GmbH - 1.2.0-1 - Version 1.2.0-1