diff --git a/SPECS/icinga-notifications-web.spec b/SPECS/icinga-notifications-web.spec index 227c42a..60690cd 100644 --- a/SPECS/icinga-notifications-web.spec +++ b/SPECS/icinga-notifications-web.spec @@ -3,7 +3,7 @@ %global docdir %{_datadir}/doc/icinganotifications Name: icinga-notifications-web -Version: 0.0.1 +Version: 0.0.4 Release: 1%{?dist} Summary: Icinga Notifications Web — Manage incidents and who gets notified about them how and when Group: Applications/System @@ -18,7 +18,7 @@ Requires: icinga-php-thirdparty %description -Icinga DB Web offers a modern and streamlined design to provide a clear +Icinga Notification Web offers a modern and streamlined design to provide a clear and concise overview of your monitoring environment. diff --git a/SPECS/icinga-notifications.spec b/SPECS/icinga-notifications.spec index fc91247..115112b 100644 --- a/SPECS/icinga-notifications.spec +++ b/SPECS/icinga-notifications.spec @@ -9,7 +9,7 @@ %define service %{name}.service Name: icinga-notifications -Version: 0.0.1 +Version: 0.0.4 Release: 1%{?dist} Summary: Icinga Notifications Group: System Environment/Daemons @@ -34,13 +34,16 @@ git clone https://%{provider_prefix} . %build go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}"" -buildvcs=false -trimpath ./cmd/icinga-notifications-daemon +go build -v -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}"" -buildvcs=false -trimpath -o channel/ ./cmd/channel/... %install install -d -m 0755 %{buildroot}%{_sbindir} install -d -m 0755 %{buildroot}%{configdir} install -d -m 0755 %{buildroot}%{_unitdir} +install -d -m 0755 %{buildroot}%{_libexecdir}/%{name} install -m 0755 icinga-notifications-daemon %{buildroot}%{_sbindir}/ +%{__cp} -r channel %{buildroot}%{_libexecdir}/%{name}/ install -m 0644 config.example.yml %{buildroot}%{configdir}/config.yml install -m 0644 icinga2.conf %{buildroot}%{configdir}/icinga2-notifications.conf install -m 0644 %{S:1} %{buildroot}%{_unitdir}/ @@ -67,6 +70,7 @@ rm -rf %{buildroot} %defattr(-,root,root) %doc LICENSE README.md %{_sbindir}/icinga-notifications-daemon +%{_libexecdir}/%{name}/channel/ %{_unitdir}/%{service} %dir %{_datadir}/%{name} %{_datadir}/%{name}/schema