diff --git a/.cvsignore b/.cvsignore index e69de29..ecf44a2 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +net-snmp-5.0.1.tar.gz diff --git a/net-snmp.spec b/net-snmp.spec new file mode 100644 index 0000000..e326b44 --- /dev/null +++ b/net-snmp.spec @@ -0,0 +1,496 @@ +Summary: A collection of SNMP protocol tools and libraries. +Name: net-snmp +Version: 5.0.1 +Release: 4 +License: BSDish +Group: System Environment/Daemons +Source0: ftp://net-snmp.sourceforge.net/net-snmp-%{version}.tar.gz +Source1: ucd-snmpd.init +Source2: ucd-snmp.redhat.conf +Source3: ucd-snmpd.logrotate +Source4: ucd5820stat +Source5: ucd-snmptrapd.init +Patch1: ucd-snmp-4.2-ia64.patch +Patch2: ucd-snmp-4.2.1-manpage.patch +Patch3: ucd-snmp-4.2.1-walk.patch +Patch4: ucd-snmp-4.2.1-security3.patch +Patch5: ucd-snmp-4.2.1-tests_num.patch +Patch6: ucd-snmp-4.2.1-libtool.patch +Patch7: ucd-snmp-4.2.4.pre3-nodb.patch +Patch8: ucd-snmp-4.2.4.pre3-mnttab.patch +Prereq: /sbin/chkconfig +Obsoletes: ucd-snmp +BuildRoot: %{_tmppath}/%{name}-root +BuildPrereq: tcp_wrappers, openssl-devel + +%define __libtoolize /bin/true + +%{expand: %%define _includedir %{_includedir}/%{name}} + +%description +SNMP (Simple Network Management Protocol) is a protocol used for +network management. The NET-SNMP project includes various SNMP tools: +an extensible agent, an SNMP library, tools for requesting or setting +information from SNMP agents, tools for generating and handling SNMP +traps, a version of the netstat command which uses SNMP, and a Tk/Perl +mib browser. This package contains the snmpd and snmptrapd daemons, +documentation, etc. + +You will probably also want to install the net-snmp-utils package, +which contains NET-SNMP utilities. + +%package utils +Group: Applications/System +Summary: Network management utilities using SNMP, from the NET-SNMP project. +Requires: net-snmp = %{version} +Obsoletes: ucd-snmp-utils + +%description utils +The net-snmp-utils package contains various utilities for use with the +NET-SNMP network management project. + +Install this package if you need utilities for managing your network +using the SNMP protocol. You will also need to install the net-snmp +package. + +%package devel +Group: Development/Libraries +Summary: The development environment for the NET-SNMP project. +Requires: net-snmp = %{version} +Obsoletes: ucd-snmp-devel + +%description devel +The net-snmp-devel package contains the development libraries and +header files for use with the NET-SNMP project's network management +tools. + +Install the net-snmp-devel package if you would like to develop +applications for use with the NET-SNMP project's network management +tools. You'll also need to have the net-snmp and net-snmp-utils +packages installed. + +%prep +%setup -q +#%patch1 -p1 -b .ia64 +#%patch2 -p1 -b .manpage +#%patch3 -p1 -b .walk +#%patch4 -p1 -b .security3 +#%patch5 -p1 -b .tests_num +#%patch6 -p1 -b .libtool +#%patch7 -p1 -b .nodb +#%patch8 -p1 -b .mnttab + +%build +#perl -pi.bak -e 's/changequote/dnl changequote/' ./configure.in +#autoreconf -i +touch configure + +# First build the static library +# XXX remove privacy support? +%configure \ + --enable-static --enable-shared \ + --with-cflags="$RPM_OPT_FLAGS" \ + --with-sys-location="Unknown" \ + --with-logfile="/var/log/snmpd.log" \ + --with-persistent-directory="/var/net-snmp" \ + --with-mib-modules="host agentx smux" \ + --with-libwrap=/usr/lib \ + --sysconfdir=%{_sysconfdir} \ + --enable-ipv6 \ + --enable-ucd-snmp-compatibility \ + --with-sys-contact="root@localhost" </dev/null 2>&1 + /sbin/chkconfig --del snmpd + service snmptrapd stop >/dev/null 2>&1 + /sbin/chkconfig --del snmptrapd + # remove stale autogenerated file + rm -f %{_datadir}/snmp/mibs/.index +fi + +%postun +/sbin/ldconfig +if [ "$1" -ge "1" ]; then + service snmpd condrestart >/dev/null 2>&1 || : + service snmptrapd condrestart >/dev/null 2>&1 || : +fi + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root,-) +%doc AGENT.txt COPYING ChangeLog EXAMPLE.conf FAQ NEWS PORTING README* TODO +%doc local/passtest local/README.mib2c local/ipf-mod.pl +%dir %{_sysconfdir}/snmp +%config(noreplace,missingok) %{_sysconfdir}/snmp/snmpd.conf +%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmpd +%config(noreplace) %{_sysconfdir}/rc.d/init.d/snmptrapd +%config(noreplace) %{_sysconfdir}/logrotate.d/snmpd +%{_datadir}/snmp +%{_libdir}/lib*.so.* +%{_bindir}/ucd5820stat +%{_sbindir}/snmpd +%{_sbindir}/snmptrapd +%attr(0644,root,root) %{_mandir}/man1/snmpd.1* +%attr(0644,root,root) %{_mandir}/man[58]/* + +%files utils +%defattr(-,root,root,-) + +%{_bindir}/fixproc +%{_bindir}/ipf-mod.pl +%{_bindir}/encode_keychange +%{_bindir}/mib2c +%{_bindir}/net-snmp-config +%{_bindir}/snmpbulkget +%{_bindir}/snmpbulkwalk +%{_bindir}/snmpconf +%{_bindir}/snmpdelta +%{_bindir}/snmpdf +%{_bindir}/snmpget +%{_bindir}/snmpgetnext +%{_bindir}/snmpinform +%{_bindir}/snmpnetstat +%{_bindir}/snmpset +%{_bindir}/snmpstatus +%{_bindir}/snmptable +%{_bindir}/snmptest +%{_bindir}/snmptranslate +%{_bindir}/snmptrap +%{_bindir}/snmpusm +%{_bindir}/snmpwalk +%{_bindir}/snmpvacm +%{_bindir}/traptoemail +%attr(0644,root,root) %{_mandir}/man1/snmpbulkwalk.1* +%attr(0644,root,root) %{_mandir}/man1/snmpbulkget.1* +%attr(0644,root,root) %{_mandir}/man1/snmpcmd.1* +%attr(0644,root,root) %{_mandir}/man1/snmpdelta.1* +%attr(0644,root,root) %{_mandir}/man1/snmpdf.1* +%attr(0644,root,root) %{_mandir}/man1/snmpget.1* +%attr(0644,root,root) %{_mandir}/man1/snmpgetnext.1* +%attr(0644,root,root) %{_mandir}/man1/snmpinform.1* +%attr(0644,root,root) %{_mandir}/man1/snmpnetstat.1* +%attr(0644,root,root) %{_mandir}/man1/snmpset.1* +%attr(0644,root,root) %{_mandir}/man1/snmpstatus.1* +%attr(0644,root,root) %{_mandir}/man1/snmptable.1* +%attr(0644,root,root) %{_mandir}/man1/snmptest.1* +%attr(0644,root,root) %{_mandir}/man1/snmptranslate.1* +%attr(0644,root,root) %{_mandir}/man1/snmptrap.1* +%attr(0644,root,root) %{_mandir}/man1/snmpusm.1* +%attr(0644,root,root) %{_mandir}/man1/snmpwalk.1* + +%files devel +%defattr(0644,root,root,0755) +%{_libdir}/*.so +%{_libdir}/*.a +%{_libdir}/*.la + +%{_includedir} +/usr/include/ucd-snmp + +%attr(0644,root,root) %{_mandir}/man3/* + +%changelog +* Thu Jun 27 2002 Phil Knirsch 5.0.1-4 +- Added --enable-ucd-snmp-compatibility for compatibility with older version + and fixed installation thereof. +- Got rid of the perl(Tk) dependancy by removing snmpcheck. +- Include /usr/include/ucd-snmp in the filelist. + +* Wed Jun 26 2002 Phil Knirsch 5.0.1-1 +- Updated to 5.0.1 +- Dropped --enable-reentrant as it's currently broken + +* Tue Apr 23 2002 Phil Knirsch 5.0-1 +- Switch to latest stable version, 5.0 +- Renamed the packate to net-snmp and obsoleted ucd-snmp. + +* Wed Apr 17 2002 Phil Knirsch 4.2.4-3 +- Fixed problem with reload in initscript (#63526). + +* Mon Apr 15 2002 Tim Powers 4.2.4-2 +- rebuilt in new environment + +* Mon Apr 15 2002 Tim Powers 4.2.4-1 +- update to 4.2.4 final + +* Sat Apr 13 2002 Phil Knirsch 4.2.4.pre3-5 +- Added some missing files to the %files section. + +* Tue Apr 09 2002 Phil Knirsch 4.2.4.pre3-4 +- Hardcoded the ETC_MNTTAB to point to "/etc/mtab". + +* Mon Apr 08 2002 Phil Knirsch 4.2.4.pre3-3 +- Removed the check for dbFOO as we don't want to add another requirement. + +* Fri Apr 05 2002 Phil Knirsch 4.2.4.pre3-2 +- Added missing BuildPrereq to openssl-devel (#61525) + +* Thu Apr 04 2002 Phil Knirsch 4.2.4.pre3-1 +- Added ucd5820stat to the files section. +- Updated to latest version (4.2.4.pre3) + +* Mon Mar 18 2002 Phil Knirsch 4.2.4.pre2-1 +- Updated to latest version (4.2.4.pre2) + +* Tue Jan 29 2002 Phil Knirsch 4.2.3-4 +- Added the snmptrapd init script as per request (#49205) +- Fixed the again broken rpm query stuff (#57444) +- Removed all old and none-used db related stuff (libs and header checks/files) + +* Mon Jan 07 2002 Phil Knirsch 4.2.3-2 +- Included the Axioma Security Research fix for snmpnetstat from bugtraq. + +* Mon Dec 03 2001 Phil Knirsch 4.2.3-1 +- Update to 4.2.3 final. +- Fixed libtool/rpath buildroot pollution problem. +- Fixed library naming problem. + +* Fri Oct 5 2001 Philipp Knirsch +- Fixed a server segfault for snmpset operation (#53640). Thanks to Josh Giles + and Wes Hardaker for the patch. + +* Mon Sep 10 2001 Philipp Knirsch +- Fixed problem with RUNTESTS script. + +* Tue Sep 4 2001 Preston Brown +- fixed patch related to bug #35016 (Dell) + +* Fri Aug 24 2001 Philipp Knirsch 4.2.1-6 +- Fixed snmpd description (#52366) + +* Wed Aug 22 2001 Philipp Knirsch +- Final bcm5820 fix. Last one was broken. +- Fixed bugzilla bug (#51960) where the binaries contained rpath references. + +* Wed Aug 15 2001 Philipp Knirsch +- Fixed a couple of security issues: + o /tmp race and setgroups() privilege problem + o Various buffer overflow and format string issues. + o One signedness problem in ASN handling. +- Fixed an important RFE to support bcm5820 cards. (#51125) + +* Fri Jul 20 2001 Philipp Knirsch +- Removed tkmib from the package once again as we don't ship the Tk.pm CPAN + perl module required to run it (#49363) +- Added missing Provides for the .so.0 libraries as rpm doesn't seem to find + those during the build anymore (it used to) (#46388) + +* Thu Jul 19 2001 Philipp Knirsch +- Enabled IPv6 support (RFE #47764) +- Hopefully final fix of snmpwalk problem (#42153). Thanks to Douglas Warzecha + for the patch and Matt Domsch for reporting the problem. + +* Tue Jun 26 2001 Philipp Knirsch +- Fixed smux compilation problems (#41452) +- Fixed wrong paths displayed in manpages (#43053) + +* Mon Jun 25 2001 Philipp Knirsch +- Updated to 4.2.1. Removed 2 obsolete patches (fromcvs and #18153) +- Include /usr/share/snmp/snmpconf in %files + +* Wed Jun 13 2001 Than Ngo +- fix to use libwrap in distro +- add buildprereq: tcp_wrappers + +* Fri Jun 1 2001 Bill Nottingham +- add a *new* patch for IP address return sizes + +* Fri Apr 20 2001 Bill Nottingham +- add patch so that only four bytes are returned for IP addresses on ia64 (#32244) + +* Wed Apr 11 2001 Bill Nottingham +- rebuild (missing alpha packages) + +* Fri Apr 6 2001 Matt Wilson +- added ucd-snmp-4.2-null.patch to correcly handle a NULL value (#35016) + +* Tue Apr 3 2001 Preston Brown +- clean up deinstallation (#34168) + +* Tue Mar 27 2001 Matt Wilson +- return a usable RETVAL when running "service snmpd status" (#33571) + +* Tue Mar 13 2001 Matt Wilson +- configure with --enable-reentrant and added "smux" and "agentx" to + --with-mib-modules= argument (#29626) + +* Fri Mar 2 2001 Nalin Dahyabhai +- rebuild in new environment + +* Mon Feb 26 2001 Tim Powers +- fixed initscript, for reload and restart it was start then stop, + fixed. (#28477) + +* Fri Feb 2 2001 Trond Eivind Glomsrød +- i18nize initscript + +* Sat Jan 6 2001 Jeff Johnson +- don't depend on /etc/init.d so that package will work with 6.2. +- perl path fiddles no longer needed. +- rely on brp-compress frpm rpm to compress man pages. +- patch from ucd-snmp CVS (Wes Hardaker). +- configure.in needs to check for rpm libraries correctly (#23033). +- add simple logrotate script (#21399). +- add options to create pidfile and log with syslog with addresses (#23476). + +* Sat Dec 30 2000 Jeff Johnson +- package for Red Hat 7.1. + +* Thu Dec 07 2000 Wes Hardaker +- update for 4.2 + +* Thu Oct 12 2000 Jeff Johnson +- add explicit format for syslog call (#18153). + +* Thu Jul 20 2000 Bill Nottingham +- move initscript back + +* Thu Jul 20 2000 Jeff Johnson +- rebuild per Trond's request. + +* Tue Jul 18 2000 Nalin Dahyabhai +- fix syntax error that crept in with condrestart + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jul 10 2000 Preston Brown +- move initscript and add condrestart magic + +* Sat Jun 17 2000 Bill Nottingham +- fix %%attr on man pages + +* Mon Jun 12 2000 Jeff Johnson +- tkmib doco had #!/usr/bin/perl55 +- include snmpcheck and tkmib again (still needs some CPAN module, however). + +* Tue Jun 6 2000 Jeff Johnson +- update to 4.1.2. +- FHS packaging. +- patch for rpm 4.0. + +* Thu May 18 2000 Trond Eivind Glomsrød +- add version to buildroot +- rebuilt with new libraries + +* Sun Feb 27 2000 Jeff Johnson +- default config was broken (from Wes Hardaker) (#9752) + +* Sun Feb 13 2000 Jeff Johnson +- compressed man pages. + +* Fri Feb 11 2000 Wes Hardaker +- update to 4.1.1 + +* Sat Feb 5 2000 Florian La Roche +- change %postun to %preun + +* Thu Feb 3 2000 Elliot Lee +- Don't ship tkmib, since we don't ship the perl modules needed to run it. +(Bug #4881) + +* Tue Aug 31 1999 Jeff Johnson +- default config permits RO access to system group only (Wed Hardaker). + +* Sun Aug 29 1999 Jeff Johnson +- implement suggestions from Wes Hardaker. + +* Fri Aug 27 1999 Jeff Johnson +- stateless access to rpm database. + +* Wed Aug 25 1999 Jeff Johnson +- update to 4.0.1. + +* Mon Aug 16 1999 Bill Nottingham +- initscript munging + +* Sat Jun 12 1999 Jeff Johnson +- update to 3.6.2 (#3219,#3259). +- add missing man pages (#3057). + +* Thu Apr 8 1999 Wes Hardaker +- fix Source0 location. +- fix the snmpd.conf file to use real community names. + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 3) + +* Fri Mar 19 1999 Preston Brown +- upgrade to 3.6.1, fix configuration file stuff. + +* Wed Feb 24 1999 Preston Brown +- Injected new description and group. + +* Tue Feb 2 1999 Jeff Johnson +- restore host resources mib +- simplified config file +- rebuild for 6.0. + +* Tue Dec 22 1998 Bill Nottingham +- remove backup file to fix perl dependencies + +* Tue Dec 8 1998 Jeff Johnson +- add all relevant rpm scalars to host resources mib. + +* Sun Dec 6 1998 Jeff Johnson +- enable libwrap (#253) +- enable host module (rpm queries over SNMP!). + +* Mon Oct 12 1998 Cristian Gafton +- strip binaries + +* Fri Oct 2 1998 Jeff Johnson +- update to 3.5.3. +- don't include snmpcheck until perl-SNMP is packaged. + +* Thu Aug 13 1998 Jeff Johnson +- ucd-snmpd.init: start daemon w/o -f. + +* Tue Aug 4 1998 Jeff Johnson +- don't start snmpd unless requested +- start snmpd after pcmcia. + +* Sun Jun 21 1998 Jeff Johnson +- all but config (especially SNMPv2p) ready for prime time + +* Sat Jun 20 1998 Jeff Johnson +- update to 3.5. + +* Tue Dec 30 1997 Otto Hammersmith +- created the package... possibly replace cmu-snmp with this. diff --git a/sources b/sources index e69de29..652b6ec 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f209cff622b4ffee830d54b68985d859 net-snmp-5.0.1.tar.gz diff --git a/ucd-snmp-4.2.4.pre3-mnttab.patch b/ucd-snmp-4.2.4.pre3-mnttab.patch new file mode 100644 index 0000000..97e9ca3 --- /dev/null +++ b/ucd-snmp-4.2.4.pre3-mnttab.patch @@ -0,0 +1,19 @@ +--- ucd-snmp-4.2.4.pre3/configure.mnttab Tue Apr 9 13:56:13 2002 ++++ ucd-snmp-4.2.4.pre3/configure Tue Apr 9 13:58:14 2002 +@@ -7148,15 +7148,7 @@ + if eval "test \"`echo '$''{'ac_cv_ETC_MNTTAB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else +- ac_cv_ETC_MNTTAB="unknown" +-for i in /etc/mnttab /etc/mtab /etc/filesystems +- do +- if test -f $i; then +- ac_cv_ETC_MNTTAB="$i" +- break; +- fi +-done +- ++ ac_cv_ETC_MNTTAB="/etc/mtab" + fi + + echo "$ac_t""$ac_cv_ETC_MNTTAB" 1>&6 diff --git a/ucd5820stat b/ucd5820stat new file mode 100755 index 0000000..0c80f0e --- /dev/null +++ b/ucd5820stat @@ -0,0 +1,2 @@ +#!/bin/sh -f +[ -x /usr/bin/get5820stats ] && /usr/bin/get5820stats $@