automatic version update by autodist [release 2.10.0-1mamba;Sat Jun 05 2021]
This commit is contained in:
parent
dc8443ebc1
commit
30da5dec1e
@ -3,16 +3,17 @@
|
|||||||
%define nscagroup nagios
|
%define nscagroup nagios
|
||||||
|
|
||||||
Name: nagios-nsca
|
Name: nagios-nsca
|
||||||
Version: 2.9.1
|
Version: 2.10.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: Nagios Service Check Acceptor (NSCA)
|
Summary: Nagios Service Check Acceptor (NSCA)
|
||||||
Group: Network/Monitoring
|
Group: Network/Monitoring
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.nagios.org
|
URL: https://www.nagios.org/
|
||||||
Source0: http://sourceforge.net/projects/nagios/files/nsca-2.x/nsca-%{version}/nsca-%{version}.tar.gz
|
Source0: http://sourceforge.net/projects/nagios/files/nsca-2.x/nsca-%{version}/nsca-%{version}.tar.gz
|
||||||
Source1: %{name}-sysconfig
|
Source1: %{name}-sysconfig
|
||||||
|
Source2: nsca.service
|
||||||
Patch0: %{name}-2.9.1-initscript.patch
|
Patch0: %{name}-2.9.1-initscript.patch
|
||||||
Patch1: %{name}-2.9.1-send_nsca_config.patch
|
Patch1: %{name}-2.9.1-send_nsca_config.patch
|
||||||
# http://tracker.nagios.org/view.php?id=286
|
# http://tracker.nagios.org/view.php?id=286
|
||||||
@ -21,10 +22,11 @@ License: GPL
|
|||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libmcrypt-devel
|
BuildRequires: libmcrypt-devel
|
||||||
|
BuildRequires: libnsl-devel
|
||||||
|
BuildRequires: libwrap-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
Provides: nsca = %{?epoch:%epoch:}%{version}-%{release}
|
Provides: nsca = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Provides: nagios-plugins-nsca = %{?epoch:%epoch:}%{version}-%{release}
|
Provides: nagios-plugins-nsca = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
NSCA is a Nagios addon that allows you to send passive check results from remote Linux/Unix hosts to the Nagios daemon running on the monitoring server.
|
NSCA is a Nagios addon that allows you to send passive check results from remote Linux/Unix hosts to the Nagios daemon running on the monitoring server.
|
||||||
@ -39,11 +41,13 @@ Group: Network/Monitoring
|
|||||||
%description client
|
%description client
|
||||||
Client application for sending service check informations to a nsca server.
|
Client application for sending service check informations to a nsca server.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n nsca-%{version}
|
%setup -q -n nsca-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
#%patch1 -p1
|
||||||
%patch2 -p1
|
#%patch2 -p1
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s|^command_file=.*|command_file=%{_localstatedir}/spool/nagios/cmd/nagios.cmd|" \
|
-e "s|^command_file=.*|command_file=%{_localstatedir}/spool/nagios/cmd/nagios.cmd|" \
|
||||||
@ -68,24 +72,20 @@ install -Dp -m 0755 src/nsca %{buildroot}%{_sbindir}/nsca
|
|||||||
install -Dp -m 0755 src/send_nsca %{buildroot}%{_sbindir}/send_nsca
|
install -Dp -m 0755 src/send_nsca %{buildroot}%{_sbindir}/send_nsca
|
||||||
install -Dp -m 0644 sample-config/nsca.cfg %{buildroot}%{_sysconfdir}/nagios/nsca.cfg
|
install -Dp -m 0644 sample-config/nsca.cfg %{buildroot}%{_sysconfdir}/nagios/nsca.cfg
|
||||||
install -Dp -m 0644 sample-config/send_nsca.cfg %{buildroot}%{_sysconfdir}/nagios/send_nsca.cfg
|
install -Dp -m 0644 sample-config/send_nsca.cfg %{buildroot}%{_sysconfdir}/nagios/send_nsca.cfg
|
||||||
install -Dp -m 0755 init-script %{buildroot}%{_initrddir}/nsca
|
|
||||||
install -Dp -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/sysconfig/nsca
|
install -Dp -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/sysconfig/nsca
|
||||||
|
install -Dp -m 0644 %{S:2} %{buildroot}%{_unitdir}/nsca.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add nsca || :
|
%systemd_post nsca
|
||||||
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
%systemd_preun nsca
|
||||||
/sbin/service nsca stop >/dev/null 2>&1
|
:
|
||||||
/sbin/chkconfig --del nsca
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge "1" ]; then
|
%systemd_postun_with_restart nsca
|
||||||
/sbin/service nsca condrestart >/dev/null 2>&1
|
:
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -93,10 +93,10 @@ exit 0
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/nsca
|
%{_sbindir}/nsca
|
||||||
%{_initrddir}/nsca
|
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/nagios/nsca.cfg
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/nagios/nsca.cfg
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/nsca
|
%config(noreplace) %{_sysconfdir}/sysconfig/nsca
|
||||||
%doc LEGAL README SECURITY
|
%{_unitdir}/nsca.service
|
||||||
|
%doc LICENSE.md
|
||||||
|
|
||||||
%files client
|
%files client
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -104,5 +104,8 @@ exit 0
|
|||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/nagios/send_nsca.cfg
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/nagios/send_nsca.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 05 2021 Automatic Build System <autodist@mambasoft.it> 2.10.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Wed Oct 24 2012 Davide Madrisan <davide.madrisan@gmail.com> 2.9.1-1mamba
|
* Wed Oct 24 2012 Davide Madrisan <davide.madrisan@gmail.com> 2.9.1-1mamba
|
||||||
- package created by autospec
|
- package created by autospec
|
||||||
|
10
nsca.service
Normal file
10
nsca.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Daemon to accept passive Nagios data from remote hosts
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/nsca -c /etc/nagios/nsca.cfg --daemon
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user