--- /dev/null
+--- net-snmp-5.0.8/configure.in.orig 2003-05-17 15:51:58.000000000 +0200
++++ net-snmp-5.0.8/configure.in 2003-05-17 17:26:14.000000000 +0200
+@@ -1423,8 +1423,7 @@
+ dnl Replace `main' with a function in -lkvm:
+ AC_CHECK_LIB(kvm, kvm_read)
+ dnl DYNAMIC MODULE SUPPORT
+-AC_CHECK_LIB(dl, dlopen)
+-AC_CHECK_FUNCS(dlopen)
++AC_CHECK_LIB(dl, dlopen, [AC_DEFINE([HAVE_DLOPEN],,[dlopen function])])
+
+ AC_CHECK_FUNCS(kvm_openfiles nlist knlist kvm_getprocs)
+ echo "$with_mib_modules" | grep "ucd-snmp/diskio" >/dev/null
--- /dev/null
+--- net-snmp-5.0.8/snmplib/Makefile.in.orig 2002-10-29 20:30:10.000000000 +0100
++++ net-snmp-5.0.8/snmplib/Makefile.in 2003-05-17 17:54:14.000000000 +0200
+@@ -136,11 +136,11 @@
+
+ # how to build the libraries.
+ libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION): ${TOBJS}
+- $(LIB_LD_CMD) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
++ $(LIB_LD_CMD) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS} -lcrypto
+ $(RANLIB) libnetsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
+
+ libsnmp.$(LIB_EXTENSION)$(LIB_VERSION): ${TOBJS}
+- $(LIB_LD_CMD) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
++ $(LIB_LD_CMD) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS} -lcrypto
+ $(RANLIB) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
+
+ #
--- /dev/null
+--- net-snmp-5.0.8/Makefile.top.orig 2003-03-05 21:08:26.000000000 +0100
++++ net-snmp-5.0.8/Makefile.top 2003-05-17 17:43:03.000000000 +0200
+@@ -27,7 +27,7 @@
+ snmplibdir = $(datadir)/snmp
+ mibdir = $(snmplibdir)/mibs
+ persistentdir = @PERSISTENT_DIRECTORY@
+-
++sysconfdir = @sysconfdir@
+
+ #
+ # Programs
+--- net-snmp-5.0.8/man/mib2c.1.def.orig 2003-02-25 19:20:33.000000000 +0100
++++ net-snmp-5.0.8/man/mib2c.1.def 2003-05-17 17:40:02.000000000 +0200
+@@ -35,7 +35,7 @@
+ .TP
+ .BI -c " CONFIGFILE"
+ Use CONFIGFILE when generating code. These files will be searched for
+-first in the current directory and then in the DATADIR directory
++first in the current directory and then in the DATADIR/snmp directory
+ (which is where the default mib2c configuration files can be found).
+ .TP
+ .BI -f " OUTNAME"
# - review Obsoletes:
# - review Provides:
# - review ucd patches:
-# -- link_libsnmp_with_libcrypto
-# -- noinstalled
# -- ia64
-# -- include-netinet_in_h
-# -- dlopen-fix
-# -- glibc21
-# -- manpage
-# -- no_libelf
# -- init_master-libwrap
%include /usr/lib/rpm/macros.perl
Summary: A collection of SNMP protocol tools
Summary(uk): îÁÂ¦Ò ÕÔÉÌ¦Ô ÄÌÑ ÐÒÏÔÏËÏÌÕ SNMP ×¦Ä UC-Davis
Name: net-snmp
Version: 5.0.8
-Release: 0.1
+Release: 0.2
License: BSD-like
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
Patch2: %{name}-rpm-implicit-libs.patch
Patch3: %{name}-DESTDIR.patch
Patch4: %{name}-config-noflags.patch
+Patch5: %{name}-dlopen-fix.patch
+Patch6: %{name}-manpage.patch
+Patch7: %{name}-link.patch
URL: http://www.net-snmp.org/
BuildRequires: autoconf >= 2.57-3
BuildRequires: automake
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
%build
%{__libtoolize}
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
-%post compat -p /sbin/ldconfig
-%postun compat -p /sbin/ldconfig
+%post compat-libs -p /sbin/ldconfig
+%postun compat-libs -p /sbin/ldconfig
%post snmptrapd
/sbin/chkconfig --add snmptrapd