Building our own NRPE client RPM
Posted: Fri Aug 25, 2017 9:00 am
Hello,
We are building our own Nagios RPM based on the sources pointed by the wizard:
https://assets.nagios.com/downloads/nag ... ent.tar.gz
Inside we found specs to build 2 rpms:
nagios-plugins-2.0.3-1.x86_64.rpm
nrpe-2.15-1.x86_64.rpm
However both were broken and we had to produce a patch to fix it:
Does it make any difference to distribute the package split in two like this? Or would it be better to make just one?
We are building our own Nagios RPM based on the sources pointed by the wizard:
https://assets.nagios.com/downloads/nag ... ent.tar.gz
Inside we found specs to build 2 rpms:
nagios-plugins-2.0.3-1.x86_64.rpm
nrpe-2.15-1.x86_64.rpm
However both were broken and we had to produce a patch to fix it:
Code: Select all
--- nagios-plugins.spec.orig 2017-08-25 09:03:39.007000007 -0300
+++ nagios-plugins.spec 2017-08-25 09:08:37.066000008 -0300
@@ -182,9 +182,8 @@
%files -f %{name}.lang
-%config(missingok,noreplace) %{_sysconfdir}/command.cfg
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
-%doc ChangeLog command.cfg
+%doc ChangeLog
%if ! %{isaix}
%{_datadir}/locale/de/LC_MESSAGES/nagios-plugins.mo
%{_datadir}/locale/fr/LC_MESSAGES/nagios-plugins.mo
--- nrpe.spec.orig 2013-09-06 12:27:13.000000000 -0300
+++ nrpe.spec 2017-08-25 07:57:24.099000005 -0300
@@ -193,6 +193,7 @@
install -d -m 0755 ${RPM_BUILD_ROOT}%{_init_dir}
%endif
DESTDIR=${RPM_BUILD_ROOT} %{_make} install install-daemon-config
+DESTDIR=${RPM_BUILD_ROOT} %{_make} install-xinetd
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
#install -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}
@@ -200,7 +201,7 @@
# install templated configuration files
#cp sample-config/nrpe.cfg ${RPM_BUILD_ROOT}%{_sysconfdir}/nrpe.cfg
#%if %{isaix}
-#cp init-script ${RPM_BUILD_ROOT}%{_init_dir}/nrpe
+cp init-script ${RPM_BUILD_ROOT}%{_init_dir}/nrpe
#%endif
#cp src/nrpe ${RPM_BUILD_ROOT}%{_bindir}
#cp src/check_nrpe ${RPM_BUILD_ROOT}%{_libexecdir}