rpms/nrpe/devel nrpe-initreload.patch, NONE, 1.1 nrpe.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael Patrick McGrath (mmcgrath) fedora-extras-commits at redhat.com
Mon Dec 4 21:12:50 UTC 2006


Author: mmcgrath

Update of /cvs/extras/rpms/nrpe/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30204/devel

Modified Files:
	.cvsignore sources 
Added Files:
	nrpe-initreload.patch nrpe.spec 
Log Message:
auto-import nrpe-2.5.2-3 on branch devel from nrpe-2.5.2-3.src.rpm

nrpe-initreload.patch:

--- NEW FILE nrpe-initreload.patch ---
--- init-script.in.orig	2006-03-05 16:03:15.000000000 -0600
+++ init-script.in	2006-03-05 16:04:46.000000000 -0600
@@ -51,6 +51,11 @@
 	$0 stop
 	$0 start
 	;;
+  reload)
+	echo -n "Reloading nrpe"
+	killproc nrpe -HUP
+	echo
+	;;
   status)
 	status nrpe
 	;;


--- NEW FILE nrpe.spec ---
%define nsport 5666

Name: nrpe
Version: 2.5.2
Release: 3%{?dist}
Summary: Host/service/network monitoring agent for Nagios

Group: Applications/System
License: GPL
URL: http://www.nagios.org
Source: http://dl.sourceforge.net/nagios/%{name}-%{version}.tar.gz
Patch0: nrpe-initreload.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: openssl-devel tcp_wrappers

Requires(pre): %{_sbindir}/useradd
Requires(preun): /sbin/service, /sbin/chkconfig
Requires(post): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service

%description
Nrpe is a system daemon that will execute various Nagios plugins
locally on behalf of a remote (monitoring) host that uses the
check_nrpe plugin.  Various plugins that can be executed by the 
daemon are available at:
http://sourceforge.net/projects/nagiosplug

This package provides the core agent.

%package -n nagios-plugins-nrpe
Group: Applications/System
Summary: Provides nrpe plugin for Nagios
Requires: nagios-plugins
Provides: check_nrpe

%description -n nagios-plugins-nrpe
Nrpe is a system daemon that will execute various Nagios plugins
locally on behalf of a remote (monitoring) host that uses the
check_nrpe plugin.  Various plugins that can be executed by the 
daemon are available at:
http://sourceforge.net/projects/nagiosplug

This package provides the nrpe plugin for Nagios-related applications.

%prep
%setup -q
%patch0 -p0

%build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
./configure \
	--with-init-dir=%{_initrddir} \
	--with-nrpe-port=%{nsport} \
	--with-nrpe-user=nrpe \
	--with-nrpe-group=nrpe \
	--bindir=%{_sbindir} \
	--libdir=/doesnt/matter/ \
	--libexecdir=%{_libdir}/nagios/plugins \
	--datadir=%{_datadir}/nagios \
	--sysconfdir=%{_sysconfdir}/nagios \
	--localstatedir=%{_localstatedir}/log/nagios \
	--enable-command-args
make %{?_smp_mflags} all
sed -i "s/# chkconfig: 2345/# chkconfig: - /" init-script

%install
rm -rf %{buildroot}
install -D -m 0755 init-script %{buildroot}/%{_initrddir}/nrpe
install -D -m 0644 sample-config/nrpe.cfg %{buildroot}/%{_sysconfdir}/nagios/nrpe.cfg
install -D -m 0755 src/nrpe %{buildroot}/%{_sbindir}/nrpe
install -D -m 0755 src/check_nrpe %{buildroot}/%{_libdir}/nagios/plugins/check_nrpe

%clean
rm -rf %{buildroot}

%pre
%{_sbindir}/useradd -c "NRPE user for the NRPE service" -d / -r -s /sbin/nologin nrpe 2> /dev/null || :

%preun
if [ $1 = 0 ]; then
	/sbin/service %{name} stop > /dev/null 2>&1 || :
	/sbin/chkconfig --del %{name} || :
fi

%post
/sbin/chkconfig --add %{name} || :

%postun
if [ "$1" -ge "1" ]; then
	/sbin/service %{name} condrestart > /dev/null 2>&1 || :
fi

%files
%defattr(-,root,root,-)
%{_initrddir}/nrpe
%{_sbindir}/nrpe
%dir %{_sysconfdir}/nagios
%config(noreplace) %{_sysconfdir}/nagios/nrpe.cfg
%doc Changelog LEGAL README 

%files -n nagios-plugins-nrpe
%defattr(-,root,root,-)
%{_libdir}/nagios/*
%doc Changelog LEGAL README

%changelog
* Sun Jul 23 2006 Mike McGrath <imlinux at gmail.com> 2.5.2-3
- no longer owns libdir/nagios
- buildrequires tcp_wrappers

* Sun Jul 23 2006 Mike McGrath <imlinux at gmail.com> 2.5.2-2
- Specify bogus libdir so rpmlint won't complain

* Mon Jul 03 2006 Mike McGrath <imlinux at gmail.com> 2.5.2-1
- Upstream released new version

* Mon Mar 12 2006 Mike McGrath <imlinux at gmail.com> 2.4-3
- Added description to useradd statement

* Sun Mar 05 2006 Mike McGrath <imlinux at gmail.com> 2.4-2
- Added proper SMP build flags
- Added %{?dist} tag
- Added reload to nrpe script
- Updated to 2.4, changes include: 
- Added option to allow week random seed (Gerhard Lausser)
- Added optional command line prefix (Sean Finney)
- Added ability to reload config file with SIGHUP
- Fixed bug with location of dh.h include file
- Fixed bug with disconnect message in debug mode

* Sat Feb 04 2006 Mike McGrath <imlinux at gmail.com> 2.3-1
- Created a Fedora friendly spec file

* Mon Jan 23 2006 Andreas Kasenides ank<@>cs.ucy.ac.cy
- fixed nrpe.cfg relocation to sample-config
- replaced Copyright label with License
- added --enable-command-args to enable remote arg passing (if desired can be disabled by commenting out)

* Wed Nov 12 2003 Ingimar Robertsson <iar at skyrr.is>
- Added adding of nagios group if it does not exist.

* Tue Jan 07 2003 James 'Showkilr' Peterson <showkilr at showkilr.com>
- Removed the lines which removed the nagios user and group from the system
- changed the patch release version from 3 to 1

* Mon Jan 06 2003 James 'Showkilr' Peterson <showkilr at showkilr.com>
- Removed patch files required for nrpe 1.5
- Update spec file for version 1.6 (1.6-1)

* Sat Dec 28 2002 James 'Showkilr' Peterson <showkilr at showkilr.com>
- First RPM build (1.5-1)


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/nrpe/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Dec 2006 21:11:54 -0000	1.1
+++ .cvsignore	4 Dec 2006 21:12:20 -0000	1.2
@@ -0,0 +1 @@
+nrpe-2.5.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nrpe/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Dec 2006 21:11:54 -0000	1.1
+++ sources	4 Dec 2006 21:12:20 -0000	1.2
@@ -0,0 +1 @@
+22afa197db8e4e5b13fac48636917b6d  nrpe-2.5.2.tar.gz




More information about the scm-commits mailing list