|
|
@@ -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 \
|