Browse Source

update icinga-notifications

Signed-off-by: monitorbuilder_pel7ppc64lebuilder0 <monitorbuilder@powerel.org>
master
monitorbuilder_pel7ppc64lebuilder0 6 months ago
parent
commit
1b5edfd086
  1. 4
      SPECS/icinga-notifications-web.spec
  2. 6
      SPECS/icinga-notifications.spec

4
SPECS/icinga-notifications-web.spec

@ -3,7 +3,7 @@
%global docdir %{_datadir}/doc/icinganotifications %global docdir %{_datadir}/doc/icinganotifications


Name: icinga-notifications-web Name: icinga-notifications-web
Version: 0.0.1 Version: 0.0.4
Release: 1%{?dist} Release: 1%{?dist}
Summary: Icinga Notifications Web — Manage incidents and who gets notified about them how and when Summary: Icinga Notifications Web — Manage incidents and who gets notified about them how and when
Group: Applications/System Group: Applications/System
@ -18,7 +18,7 @@ Requires: icinga-php-thirdparty




%description %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. and concise overview of your monitoring environment.





6
SPECS/icinga-notifications.spec

@ -9,7 +9,7 @@
%define service %{name}.service %define service %{name}.service


Name: icinga-notifications Name: icinga-notifications
Version: 0.0.1 Version: 0.0.4
Release: 1%{?dist} Release: 1%{?dist}
Summary: Icinga Notifications Summary: Icinga Notifications
Group: System Environment/Daemons Group: System Environment/Daemons
@ -34,13 +34,16 @@ git clone https://%{provider_prefix} .


%build %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 ./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
install -d -m 0755 %{buildroot}%{_sbindir} install -d -m 0755 %{buildroot}%{_sbindir}
install -d -m 0755 %{buildroot}%{configdir} install -d -m 0755 %{buildroot}%{configdir}
install -d -m 0755 %{buildroot}%{_unitdir} install -d -m 0755 %{buildroot}%{_unitdir}
install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
install -m 0755 icinga-notifications-daemon %{buildroot}%{_sbindir}/ 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 config.example.yml %{buildroot}%{configdir}/config.yml
install -m 0644 icinga2.conf %{buildroot}%{configdir}/icinga2-notifications.conf install -m 0644 icinga2.conf %{buildroot}%{configdir}/icinga2-notifications.conf
install -m 0644 %{S:1} %{buildroot}%{_unitdir}/ install -m 0644 %{S:1} %{buildroot}%{_unitdir}/
@ -67,6 +70,7 @@ rm -rf %{buildroot}
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE README.md %doc LICENSE README.md
%{_sbindir}/icinga-notifications-daemon %{_sbindir}/icinga-notifications-daemon
%{_libexecdir}/%{name}/channel/
%{_unitdir}/%{service} %{_unitdir}/%{service}
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
%{_datadir}/%{name}/schema %{_datadir}/%{name}/schema

Loading…
Cancel
Save