Browse Source

give up on the TCP and UDP table MIBs for now (see comment BSD and HP/UX), and correct library usage in Makefile on HP/UX systems

Michael Schloh von Bennewitz 21 years ago
parent
commit
2d8f02f7d7
1 changed files with 14 additions and 2 deletions
  1. 14 2
      snmp/snmp.spec

+ 14 - 2
snmp/snmp.spec

@@ -34,7 +34,7 @@ Class:        BASE
 Group:        Network
 License:      BSD
 Version:      5.1.1
-Release:      20040701
+Release:      20040810
 
 #   package options
 %option       with_fsl      yes
@@ -42,6 +42,10 @@ Release:      20040701
 %option       with_mib_host no
 %option       with_mib_smux no
 
+#   version 5.1.1 mib modules tcpTable and udpTable are not yet complete
+#   (they only build on BSD when patched and fail completely on NetBSD)
+%option       with_mib_tables no
+
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz
 Source1:      rc.snmp
@@ -131,13 +135,18 @@ AutoReqProv:  no
     mibs="$mibs smux"
 %endif
 
+    #   use correct libraries for platform
+    case "%{l_platform -t}" in
+        *-hpux* ) loclibs="-lnm" ;;
+    esac
+
     #   configure package
     ./configure \
         --cache-file=./config.cache \
         --with-cc="%{l_cc}" \
         --with-cflags="%{l_cflags -O} %{l_cppflags}" \
         --with-ldflags="%{l_ldflags} %{l_fsl_ldflags}" \
-        --with-libs="%{l_fsl_libs}" \
+        --with-libs="%{l_fsl_libs} $loclibs" \
         --prefix=%{l_prefix} \
         --with-persistent-directory=%{l_prefix}/var/snmp \
         --with-openssl=%{l_prefix} \
@@ -146,6 +155,9 @@ AutoReqProv:  no
 %if "%{with_mib_host}" == "yes" || "%{with_mib_smux}" == "yes"
         --with-mib-modules="$mibs" \
 %endif
+%if "%{with_mib_tables}" == "no"
+    --with-out-mib-modules="mibII/tcpTable mibII/udpTable" \
+%endif
 %if "%{with_perl}" == "yes"
         --with-perl-modules \
         --enable-embedded-perl \