rpms/nagios-plugins-snmp-disk-proc/devel nagios-plugins-snmp-disk-proc.spec, NONE, 1.1 nagios-snmp-plugins-1.0-snmp_common.c.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Jose Pedro Oliveira (jpo)
fedora-extras-commits at redhat.com
Tue Oct 10 10:06:08 UTC 2006
Author: jpo
Update of /cvs/extras/rpms/nagios-plugins-snmp-disk-proc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11431/devel
Modified Files:
.cvsignore sources
Added Files:
nagios-plugins-snmp-disk-proc.spec
nagios-snmp-plugins-1.0-snmp_common.c.patch
Log Message:
auto-import nagios-plugins-snmp-disk-proc-1.0-1 on branch devel from nagios-plugins-snmp-disk-proc-1.0-1.src.rpm
--- NEW FILE nagios-plugins-snmp-disk-proc.spec ---
%define nagios_plugins_dir %{_libdir}/nagios/plugins
Name: nagios-plugins-snmp-disk-proc
Version: 1.0
Release: 1%{?dist}
Summary: Nagios SNMP plugins to monitor remote disk and processes
Group: Applications/System
License: GPL
URL: ftp://ftp.hometree.net/pub/nagios-snmp-plugins/index.html
Source: ftp://ftp.hometree.net/pub/nagios-snmp-plugins/nagios-snmp-plugins-%{version}.tar.gz
Patch: nagios-snmp-plugins-1.0-snmp_common.c.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf, automake
BuildRequires: net-snmp-devel
BuildRequires: openssl-devel
Requires: nagios-plugins
%description
These plugins allow you to monitor disk space and running processes on
a remote machine via SNMP.
%prep
%setup -q -n nagios-snmp-plugins-%{version}
%patch -p1
%build
aclocal
autoheader
automake --add-missing
autoconf
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT/%{nagios_plugins_dir}
install -p -m 755 check_snmp_disk $RPM_BUILD_ROOT/%{nagios_plugins_dir}
install -p -m 755 check_snmp_proc $RPM_BUILD_ROOT/%{nagios_plugins_dir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README COPYING AUTHORS NEWS
%{nagios_plugins_dir}/check_snmp_disk
%{nagios_plugins_dir}/check_snmp_proc
%changelog
* Sat Aug 12 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.0-1
- Initial build.
nagios-snmp-plugins-1.0-snmp_common.c.patch:
--- NEW FILE nagios-snmp-plugins-1.0-snmp_common.c.patch ---
diff -ruN nagios-snmp-plugins-1.0-orig/snmp_common.c nagios-snmp-plugins-1.0/snmp_common.c
--- nagios-snmp-plugins-1.0-orig/snmp_common.c 2004-03-29 15:03:07.000000000 +0100
+++ nagios-snmp-plugins-1.0/snmp_common.c 2006-08-12 21:40:27.000000000 +0100
@@ -229,12 +229,14 @@
void integer_callback(struct variable_list *vars, void **pnt)
{
- long *data = ((long *)(*pnt))++;
+ long *data = (long *)(*pnt);
if(verbose)
printf("%s: Found Integer Value %ld into %lx\n", bn, *vars->val.integer, data);
*data = *vars->val.integer;
+
+ *pnt = ++data;
}
/**
@@ -245,7 +247,7 @@
void string_callback(struct variable_list *vars, void **pnt)
{
- char **data = ((char **)(*pnt))++;
+ char **data = (char **)(*pnt);
if(verbose)
printf("%s: Putting String into %lx\n", bn, data);
@@ -258,5 +260,7 @@
{
*data = "";
}
+
+ *pnt = ++data;
}
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/nagios-plugins-snmp-disk-proc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 10 Oct 2006 10:05:33 -0000 1.1
+++ .cvsignore 10 Oct 2006 10:06:08 -0000 1.2
@@ -0,0 +1 @@
+nagios-snmp-plugins-1.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/nagios-plugins-snmp-disk-proc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 10 Oct 2006 10:05:33 -0000 1.1
+++ sources 10 Oct 2006 10:06:08 -0000 1.2
@@ -0,0 +1 @@
+cf70e405718d016debe206d01f54262c nagios-snmp-plugins-1.0.tar.gz
More information about the scm-commits
mailing list