|
|
@ -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 |
|
|
|