[packages/nagios-nsca] Up to 2.10.3
arekm
arekm at pld-linux.org
Fri Nov 27 22:09:44 CET 2026
commit ef43c2fb55d16b6e4360302cc703b1134d0e454a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:05:12 2026 +0100
Up to 2.10.3
missing-respect-debug.patch | 12 ------------
nagios-nsca-groups.patch | 14 +++++++-------
nagios-nsca.spec | 17 +++++++----------
nsca-2.9-fix_open_missing_arg.patch | 11 -----------
4 files changed, 14 insertions(+), 40 deletions(-)
---
diff --git a/nagios-nsca.spec b/nagios-nsca.spec
index e4f92f8..fd744a1 100644
--- a/nagios-nsca.spec
+++ b/nagios-nsca.spec
@@ -8,22 +8,21 @@
Summary: NSCA daemon for Nagios
Summary(pl.UTF-8): Demon NSCA dla Nagiosa
Name: nagios-nsca
-Version: 2.9.1
-Release: 5
+Version: 2.10.3
+Release: 1
License: GPL v2+
Group: Networking
-Source0: http://downloads.sourceforge.net/nagios/nsca-%{version}.tar.gz
-# Source0-md5: 3fe2576a8cc5b252110a93f4c8d978c6
+Source0: https://github.com/NagiosEnterprises/nsca/releases/download/nsca-%{version}/nsca-%{version}.tar.gz
+# Source0-md5: 25048d91910a45213c0f0ea5a8da11c9
Source1: %{name}.init
Source2: %{name}.submit
Source3: nsca-command.cfg
Patch0: %{name}-groups.patch
Patch1: %{name}-config.patch
-Patch2: nsca-2.9-fix_open_missing_arg.patch
-Patch3: missing-respect-debug.patch
-URL: http://exchange.nagios.org/directory/Addons/Passive-Checks/NSCA--2D-Nagios-Service-Check-Acceptor/details
+URL: https://github.com/NagiosEnterprises/nsca
BuildRequires: autoconf
BuildRequires: libltdl-devel
+BuildRequires: libwrap-devel
%{?with_mcrypt:BuildRequires: libmcrypt-devel}
BuildRequires: rpmbuild(macros) >= 1.553
Requires(post,preun): /sbin/chkconfig
@@ -78,8 +77,6 @@ do centralnej maszyny, na której działa Nagios.
%undos -f c
%patch -P0 -p1
%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
%build
%{__autoconf}
@@ -118,7 +115,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc Changelog README SECURITY
+%doc CHANGELOG.md README.md SECURITY.md
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsca.cfg
%attr(755,root,root) %{_sbindir}/nsca
%attr(754,root,root) /etc/rc.d/init.d/nagios-nsca
diff --git a/missing-respect-debug.patch b/missing-respect-debug.patch
deleted file mode 100644
index 9ab0bd3..0000000
--- a/missing-respect-debug.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- nsca-2.9.1/./src/nsca.c~ 2012-12-11 17:19:37.000000000 +0200
-+++ nsca-2.9.1/./src/nsca.c 2012-12-11 17:21:43.768863034 +0200
-@@ -1263,7 +1263,8 @@
- fclose(checkresult_file_fp);
- /* create and close ok file */
- asprintf(&checkresult_ok_file,"%s.ok",checkresult_file);
-- syslog(LOG_DEBUG,"checkresult completion file '%s' open.",checkresult_ok_file);
-+ if(debug==TRUE)
-+ syslog(LOG_DEBUG,"checkresult completion file '%s' open.",checkresult_ok_file);
- checkresult_ok_file_fp = fopen(checkresult_ok_file,"w");
- fclose(checkresult_ok_file_fp);
- /* reset umask */
diff --git a/nagios-nsca-groups.patch b/nagios-nsca-groups.patch
index 672dc19..5376155 100644
--- a/nagios-nsca-groups.patch
+++ b/nagios-nsca-groups.patch
@@ -1,11 +1,11 @@
---- a/configure.in
-+++ b/configure.in
-@@ -104,7 +104,7 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -105,7 +105,7 @@
AC_DEFINE(HAVE_LIBWRAP,[1],[Have the TCP wrappers library])
])
AC_SUBST(LIBWRAPLIBS)
--AC_CHECK_FUNCS(strdup strstr strtoul)
-+AC_CHECK_FUNCS(strdup strstr strtoul initgroups)
+-AC_CHECK_FUNCS(strdup strstr strtoul sigaction)
++AC_CHECK_FUNCS(strdup strstr strtoul sigaction initgroups)
- dnl Define sig_atomic_t to int if it's not available.
- AC_CHECK_TYPE([sig_atomic_t],[],[
+ dnl we require modern address resolution functions.
+ AC_CHECK_FUNCS([getnameinfo getaddrinfo], ,
diff --git a/nsca-2.9-fix_open_missing_arg.patch b/nsca-2.9-fix_open_missing_arg.patch
deleted file mode 100644
index 371a5c8..0000000
--- a/nsca-2.9-fix_open_missing_arg.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- nsca-2.9/src/nsca.c.orig 2012-01-16 21:59:53.692250138 +0100
-+++ nsca-2.9/src/nsca.c 2012-01-16 22:01:53.641670525 +0100
-@@ -477,7 +477,7 @@
- int checkresult_test_fd=-1;
- char *checkresult_test=NULL;
- asprintf(&checkresult_test,"%s/nsca.test.%i",check_result_path,getpid());
-- checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT);
-+ checkresult_test_fd=open(checkresult_test,O_WRONLY|O_CREAT,S_IWUSR);
- if (checkresult_test_fd>0){
- unlink(checkresult_test);
- }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-nsca.git/commitdiff/ef43c2fb55d16b6e4360302cc703b1134d0e454a
More information about the pld-cvs-commit
mailing list