OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael Schloh Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 10-Aug-2004 16:26:22 Branch: HEAD Handle: 2004081015262100 Modified files: openpkg-src/snmp snmp.spec Log: 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 Summary: Revision Changes Path 1.66 +14 -2 openpkg-src/snmp/snmp.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/snmp/snmp.spec ============================================================================ $ cvs diff -u -r1.65 -r1.66 snmp.spec --- openpkg-src/snmp/snmp.spec 1 Jul 2004 18:11:31 -0000 1.65 +++ openpkg-src/snmp/snmp.spec 10 Aug 2004 14:26:21 -0000 1.66 @@ -34,7 +34,7 @@ Group: Network License: BSD Version: 5.1.1 -Release: 20040701 +Release: 20040810 # package options %option with_fsl yes @@ -42,6 +42,10 @@ %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 @@ 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 @@ %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 \ @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]