Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:monitoring
nsca-ng
nsca-ng.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nsca-ng.spec of Package nsca-ng
# # spec file for package nsca-ng # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %if 0%{?suse_version} >= 1550 %bcond_without perl_bindings %else %bcond_with perl_bindings %endif %bcond_with python_bindings Name: nsca-ng Version: 1.6 Release: 0 Summary: A modern replacement for NSCA License: BSD-2-Clause Group: System/Monitoring URL: https://github.com/weiss/nsca-ng Source: https://github.com/weiss/nsca-ng/releases/download/v%{version}/nsca-ng-%{version}.tar.gz Source1: series Patch: cleanup-systemd-unit.patch BuildRequires: nagios-rpm-macros BuildRequires: pkgconfig BuildRequires: pkgconfig(libconfuse) BuildRequires: pkgconfig(libcrypto) >= 1.0.0 BuildRequires: pkgconfig(libev) BuildRequires: pkgconfig(libsystemd) %if %{with perl_bindings} BuildRequires: perl(Devel::CheckLib) BuildRequires: perl(ExtUtils::PkgConfig) %endif %if %{with python_bindings} BuildRequires: python3-devel %endif %description The NSCA-ng package provides a client-server pair which makes the "Nagios command file" accessible to remote systems. This allows for submitting passive check results, downtimes, and many other commands to Nagios (or compatible monitoring solutions). NSCA-ng supports TLS encryption and shared-secret authentication with client-specific passwords (based on RFC 4279), as well as fine-grained authorization control. %package server Summary: NSCA-ng server Group: System/Monitoring Provides: nsca = 3.0 Obsoletes: nsca < 2.9 %{?systemd_ordering} %description server NSCA-ng provides a client-server pair that makes the Nagios command file accessible to remote systems. This is the server component of NSCA-ng. %package client Summary: NSCA-ng client Group: System/Monitoring Provides: nsca-client = 3.0 Obsoletes: nsca-client < 2.9 %description client NSCA-ng provides a client-server pair that makes the Nagios command file accessible to remote systems. This is the client component of NSCA-ng. %package -n perl-Net-NSCAng-Client Summary: Perl Bindings for NSCA-ng client Group: System/Monitoring %description -n perl-Net-NSCAng-Client NSCA-ng provides a client-server pair that makes the Nagios command file accessible to remote systems. This is the perl component of NSCA-ng. %prep %autosetup -p1 sed -i 's|command_file = "/usr/local/nagios/var/rw/nagios.cmd"|command_file = "%{nagios_command_file}"|g' etc/nsca-ng.cfg %build export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ --enable-server \ --with-systemd=%{_prefix} \ --disable-silent-rules make %{?_smp_mflags} %if %{with perl_bindings} pushd perl perl Makefile.PL INSTALLDIRS=vendor %make_build popd %endif %check pushd tests make %{?_smp_mflags} check-local popd %install %make_install %if %{with perl_bindings} pushd perl %perl_make_install %perl_process_packlist %perl_gen_filelist popd %endif install -D -m 0644 etc/%{name}.service %{buildroot}%{_unitdir}/%{name}.service install -D -m 0644 etc/%{name}.socket %{buildroot}%{_unitdir}/%{name}.socket ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} mkdir -p %{buildroot}%{_sysconfdir}/nsca-ng.d/ %pre client # Create user and group on the system if necessary %nagios_user_group_add %nagios_command_user_group_add %pre server # Create user and group on the system if necessary %nagios_user_group_add %nagios_command_user_group_add %service_add_pre %{name}.service %{name}.socket %preun server %service_del_preun %{name}.service %{name}.socket %post server %service_add_post %{name}.service %{name}.socket %postun server %service_del_postun %{name}.service %{name}.socket %files server %license COPYING %doc ChangeLog README %config(noreplace) %attr(0640,root,%{nagios_group}) %{_sysconfdir}/nsca-ng.cfg %dir %attr(0750,root,%{nagios_group}) %{_sysconfdir}/nsca-ng.d/ %{_sbindir}/nsca-ng %{_mandir}/man5/nsca-ng.cfg.5* %{_mandir}/man8/nsca-ng.8* %{_unitdir}/%{name}.service %{_unitdir}/%{name}.socket %{_sbindir}/rc%{name} %files client %config(noreplace) %attr(0640,root,%{nagios_group}) %{_sysconfdir}/send_nsca.cfg %{_sbindir}/send_nsca %{_mandir}/man5/send_nsca.cfg.5* %{_mandir}/man8/send_nsca.8* %if %{with perl_bindings} %files -n perl-Net-NSCAng-Client %dir %{perl_vendorarch}/Net %dir %{perl_vendorarch}/Net/NSCAng %{perl_vendorarch}/Net/NSCAng/Client.pm %dir %{perl_vendorarch}/auto/Net %dir %{perl_vendorarch}/auto/Net/NSCAng %dir %{perl_vendorarch}/auto/Net/NSCAng/Client %{perl_vendorarch}/auto/Net/NSCAng/Client/Client.so %{_mandir}/man3/Net::NSCAng::Client.3pm* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor