On 26 Jan 2000, Frank Strauss wrote:
Fine! There should be nearly no problem at all on FreeBSD.
Just one question: Did you observe any problem with the timezone
variable used in lib/parser-smi.y:397 ?
No, no compilation problems, excepts perhaps few warnings.
I was even able to re-build tab.c files from .y files
without any problems. The only problem I foresee
is that new -current does not include bison, but as
long as you ship .c versions it is fine.
Probably the Makefile `MIBS' variable
does not get set correctly?
It is okay, my fault. I forgot to USE_GMAKE :)
I enclose the port (small shar archive), just:
sh file-extracted-from-this-mail
cd libsmi
make install
and see how it works. You can even create binary
package (if you *have* to) with "make package".
Changes:
1. I modified MIB paths to be more compliant with FreeBSD
hierarchy (/usr/local/share/smi/mibs/*).
2. I have added /usr/local/share/snmp/mibs/ to $mibdir,
to include MIBs from UCD-SNMP port. Perhaps one day
we decide to have all MIBs in FreeBSD in one place.
3. I have modified configure{.in} to change default
location of global config file according to $prefix:
--- configure.in.orig Tue Dec 14 16:02:57 1999
+++ configure.in Thu Jan 27 09:59:41 2000
@@ -40,7 +40,7 @@
AC_CHECK_HEADER(getopt.h, AC_DEFINE(HAVE_GETOPT_H))
AC_CHECK_HEADER(pwd.h, AC_DEFINE(HAVE_PWD_H))
-AC_DEFINE(DEFAULT_GLOBALCONFIG, "/usr/local/etc/smi.conf")
+AC_DEFINE_UNQUOTED(DEFAULT_GLOBALCONFIG, "${prefix}/etc/smi.conf")
AC_DEFINE(DEFAULT_USERCONFIG, ".smirc")
AC_ARG_WITH(mibdir,
[ end ]
Perhaps the last change may be included in future releases.
Please review it, and I send it today to the FreeBSD port team.
--
<< Marcin Cieslak // saper@system.pl >>
-----------------------------------------------------------------
SYSTEM Internet Provider
http://www.system.pl
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# libsmi
# libsmi/files
# libsmi/files/md5
# libsmi/Makefile
# libsmi/patches
# libsmi/patches/patch-aa
# libsmi/patches/patch-ab
# libsmi/pkg
# libsmi/pkg/DESCR
# libsmi/pkg/COMMENT
# libsmi/pkg/PLIST
#
echo c - libsmi
mkdir -p libsmi > /dev/null 2>&1
echo c - libsmi/files
mkdir -p libsmi/files > /dev/null 2>&1
echo x - libsmi/files/md5
sed 's/^X//' >libsmi/files/md5 << 'END-of-libsmi/files/md5'
XMD5 (libsmi-0.1.8.tar.gz) = 8f2b50b73e602dcae7776efb259bc59c
END-of-libsmi/files/md5
echo x - libsmi/Makefile
sed 's/^X//' >libsmi/Makefile << 'END-of-libsmi/Makefile'
X# New ports collection makefile for: libsmi
X# Version required: 0.1.8
X# Date created: Tue Jan 27 2000
X# Whom: saper@system.pl
X#
X# $FreeBSD$
X#
X
XDISTNAME= libsmi-0.1.8
XCATEGORIES= net
XMASTER_SITES= ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/
X
XMAINTAINER= saper@system.pl
X
X#LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
X
X#USE_X_PREFIX= yes
X
XGNU_CONFIGURE= yes
XUSE_GMAKE= yes
XMIBDIR= ${PREFIX}/share/smi/mibs
XCONFIGURE_ARGS+=--with-data-dir=${PREFIX}/share/smi \
X --with-mibdir=${MIBDIR} \
X --with-smipath=${MIBDIR}/ietf:${MIBDIR}/iana:${MIBDIR}/irtf:${MIBDIR}/site:${PREFIX}/share/snmp/mibs
X
XMAN1= smiquery.1 smilint.1 smidump.1 smistrip.1
XMAN3= libsmi.3 smi_config.3 smi_module.3 smi_macro.3 smi_node.3 smi_type.3
X
X.include <bsd.port.mk>
END-of-libsmi/Makefile
echo c - libsmi/patches
mkdir -p libsmi/patches > /dev/null 2>&1
echo x - libsmi/patches/patch-aa
sed 's/^X//' >libsmi/patches/patch-aa << 'END-of-libsmi/patches/patch-aa'
X--- configure.in.orig Tue Dec 14 16:02:57 1999
X+++ configure.in Thu Jan 27 09:59:41 2000
X@@ -40,7 +40,7 @@
X AC_CHECK_HEADER(getopt.h, AC_DEFINE(HAVE_GETOPT_H))
X AC_CHECK_HEADER(pwd.h, AC_DEFINE(HAVE_PWD_H))
X
X-AC_DEFINE(DEFAULT_GLOBALCONFIG, "/usr/local/etc/smi.conf")
X+AC_DEFINE_UNQUOTED(DEFAULT_GLOBALCONFIG, "${prefix}/etc/smi.conf")
X AC_DEFINE(DEFAULT_USERCONFIG, ".smirc")
X
X AC_ARG_WITH(mibdir,
END-of-libsmi/patches/patch-aa
echo x - libsmi/patches/patch-ab
sed 's/^X//' >libsmi/patches/patch-ab << 'END-of-libsmi/patches/patch-ab'
X--- configure.orig Tue Dec 14 16:10:44 1999
X+++ configure Thu Jan 27 10:00:04 2000
X@@ -1405,8 +1405,8 @@
X fi
X
X
X-cat >> confdefs.h <<\EOF
X-#define DEFAULT_GLOBALCONFIG "/usr/local/etc/smi.conf"
X+cat >> confdefs.h <<EOF
X+#define DEFAULT_GLOBALCONFIG "${prefix}/etc/smi.conf"
X EOF
X
X cat >> confdefs.h <<\EOF
END-of-libsmi/patches/patch-ab
echo c - libsmi/pkg
mkdir -p libsmi/pkg > /dev/null 2>&1
echo x - libsmi/pkg/DESCR
sed 's/^X//' >libsmi/pkg/DESCR << 'END-of-libsmi/pkg/DESCR'
XThe purpose of libsmi is to give network management applications
Xa concise programmer-friendly interface to access MIB module information,
Xseparate the knowledge on SMI from the main parts of management applications,
Xallow to add new kinds of MIB repositories without the need
Xto adapt applications that make use of libsmi.
X
XThere are also simple tools to handle MIBs included.
X
XWWW:
http://www.ibr.cs.tu-bs.de/projects/libsmi/
X
X--
X << Marcin Cieslak // saper@system.pl >>
END-of-libsmi/pkg/DESCR
echo x - libsmi/pkg/COMMENT
sed 's/^X//' >libsmi/pkg/COMMENT << 'END-of-libsmi/pkg/COMMENT'
XA library to access SMI MIB information
END-of-libsmi/pkg/COMMENT
echo x - libsmi/pkg/PLIST
sed 's/^X//' >libsmi/pkg/PLIST << 'END-of-libsmi/pkg/PLIST'
Xbin/smidump
Xbin/smilint
Xbin/smiquery
Xbin/smistrip
Xinclude/smi.h
Xlib/libsmi.a
Xlib/libsmi.la
Xlib/libsmi.so
Xlib/libsmi.so.1
X@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
X@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
Xshare/smi/mibs/iana/IANA-ADDRESS-FAMILY-NUMBERS-MIB
Xshare/smi/mibs/iana/IANA-LANGUAGE-MIB
Xshare/smi/mibs/iana/IANATn3270eTC-MIB
Xshare/smi/mibs/iana/IANAifType-MIB
Xshare/smi/mibs/ietf/ACCOUNTING-CONTROL-MIB
Xshare/smi/mibs/ietf/ADSL-LINE-MIB
Xshare/smi/mibs/ietf/ADSL-TC-MIB
Xshare/smi/mibs/ietf/APPC-MIB
Xshare/smi/mibs/ietf/APPLETALK-MIB
Xshare/smi/mibs/ietf/APPLICATION-MIB
Xshare/smi/mibs/ietf/APPN-DLUR-MIB
Xshare/smi/mibs/ietf/APPN-MIB
Xshare/smi/mibs/ietf/APPN-TRAP-MIB
Xshare/smi/mibs/ietf/ATM-ACCOUNTING-INFORMATION-MIB
Xshare/smi/mibs/ietf/ATM-MIB
Xshare/smi/mibs/ietf/ATM-TC-MIB
Xshare/smi/mibs/ietf/BGP4-MIB
Xshare/smi/mibs/ietf/BRIDGE-MIB
Xshare/smi/mibs/ietf/CHARACTER-MIB
Xshare/smi/mibs/ietf/CLNS-MIB
Xshare/smi/mibs/ietf/DECNET-PHIV-MIB
Xshare/smi/mibs/ietf/DIAL-CONTROL-MIB
Xshare/smi/mibs/ietf/DIRECTORY-SERVER-MIB
Xshare/smi/mibs/ietf/DISMAN-SCHEDULE-MIB
Xshare/smi/mibs/ietf/DISMAN-SCRIPT-MIB
Xshare/smi/mibs/ietf/DLSW-MIB
Xshare/smi/mibs/ietf/DNS-RESOLVER-MIB
Xshare/smi/mibs/ietf/DNS-SERVER-MIB
Xshare/smi/mibs/ietf/DOCS-CABLE-DEVICE-MIB
Xshare/smi/mibs/ietf/DOCS-IF-MIB
Xshare/smi/mibs/ietf/DOT12-IF-MIB
Xshare/smi/mibs/ietf/DOT12-RPTR-MIB
Xshare/smi/mibs/ietf/DS0-MIB
Xshare/smi/mibs/ietf/DS0BUNDLE-MIB
Xshare/smi/mibs/ietf/DS1-MIB
Xshare/smi/mibs/ietf/DS3-MIB
Xshare/smi/mibs/ietf/DSA-MIB
Xshare/smi/mibs/ietf/EBN-MIB
Xshare/smi/mibs/ietf/ENTITY-MIB
Xshare/smi/mibs/ietf/EtherLike-MIB
Xshare/smi/mibs/ietf/FDDI-SMT73-MIB
Xshare/smi/mibs/ietf/FLOW-METER-MIB
Xshare/smi/mibs/ietf/FRAME-RELAY-DTE-MIB
Xshare/smi/mibs/ietf/FRNETSERV-MIB
Xshare/smi/mibs/ietf/HOST-RESOURCES-MIB
Xshare/smi/mibs/ietf/HPR-IP-MIB
Xshare/smi/mibs/ietf/HPR-MIB
Xshare/smi/mibs/ietf/IF-MIB
Xshare/smi/mibs/ietf/INTEGRATED-SERVICES-GUARANTEED-MIB
Xshare/smi/mibs/ietf/INTEGRATED-SERVICES-MIB
Xshare/smi/mibs/ietf/IP-FORWARD-MIB
Xshare/smi/mibs/ietf/IP-MIB
Xshare/smi/mibs/ietf/IPATM-IPMC-MIB
Xshare/smi/mibs/ietf/IPOA-MIB
Xshare/smi/mibs/ietf/IPV6-ICMP-MIB
Xshare/smi/mibs/ietf/IPV6-MIB
Xshare/smi/mibs/ietf/IPV6-TC
Xshare/smi/mibs/ietf/IPV6-TCP-MIB
Xshare/smi/mibs/ietf/IPV6-UDP-MIB
Xshare/smi/mibs/ietf/ISDN-MIB
Xshare/smi/mibs/ietf/Job-Monitoring-MIB
Xshare/smi/mibs/ietf/MAU-MIB
Xshare/smi/mibs/ietf/MIOX25-MIB
Xshare/smi/mibs/ietf/MIP-MIB
Xshare/smi/mibs/ietf/MTA-MIB
Xshare/smi/mibs/ietf/Modem-MIB
Xshare/smi/mibs/ietf/NETWORK-SERVICES-MIB
Xshare/smi/mibs/ietf/NHRP-MIB
Xshare/smi/mibs/ietf/OSPF-MIB
Xshare/smi/mibs/ietf/OSPF-TRAP-MIB
Xshare/smi/mibs/ietf/P-BRIDGE-MIB
Xshare/smi/mibs/ietf/PARALLEL-MIB
Xshare/smi/mibs/ietf/PPP-BRIDGE-NCP-MIB
Xshare/smi/mibs/ietf/PPP-IP-NCP-MIB
Xshare/smi/mibs/ietf/PPP-LCP-MIB
Xshare/smi/mibs/ietf/PPP-SEC-MIB
Xshare/smi/mibs/ietf/PerfHist-TC-MIB
Xshare/smi/mibs/ietf/Printer-MIB
Xshare/smi/mibs/ietf/Q-BRIDGE-MIB
Xshare/smi/mibs/ietf/RADIUS-ACC-CLIENT-MIB
Xshare/smi/mibs/ietf/RADIUS-ACC-SERVER-MIB
Xshare/smi/mibs/ietf/RADIUS-AUTH-CLIENT-MIB
Xshare/smi/mibs/ietf/RADIUS-AUTH-SERVER-MIB
Xshare/smi/mibs/ietf/RDBMS-MIB
Xshare/smi/mibs/ietf/RFC-1212
Xshare/smi/mibs/ietf/RFC-1213
Xshare/smi/mibs/ietf/RFC-1215
Xshare/smi/mibs/ietf/RFC1155-SMI
Xshare/smi/mibs/ietf/RFC1158-MIB
Xshare/smi/mibs/ietf/RFC1213-MIB
Xshare/smi/mibs/ietf/RFC1271-MIB
Xshare/smi/mibs/ietf/RFC1285-MIB
Xshare/smi/mibs/ietf/RFC1316-MIB
Xshare/smi/mibs/ietf/RFC1381-MIB
Xshare/smi/mibs/ietf/RFC1382-MIB
Xshare/smi/mibs/ietf/RFC1414-MIB
Xshare/smi/mibs/ietf/RIPv2-MIB
Xshare/smi/mibs/ietf/RMON-MIB
Xshare/smi/mibs/ietf/RMON2-MIB
Xshare/smi/mibs/ietf/RS-232-MIB
Xshare/smi/mibs/ietf/RSVP-MIB
Xshare/smi/mibs/ietf/SIP-MIB
Xshare/smi/mibs/ietf/SMON-MIB
Xshare/smi/mibs/ietf/SNA-NAU-MIB
Xshare/smi/mibs/ietf/SNA-SDLC-MIB
Xshare/smi/mibs/ietf/SNMP-FRAMEWORK-MIB
Xshare/smi/mibs/ietf/SNMP-MPD-MIB
Xshare/smi/mibs/ietf/SNMP-NOTIFICATION-MIB
Xshare/smi/mibs/ietf/SNMP-PROXY-MIB
Xshare/smi/mibs/ietf/SNMP-REPEATER-MIB
Xshare/smi/mibs/ietf/SNMP-TARGET-MIB
Xshare/smi/mibs/ietf/SNMP-USER-BASED-SM-MIB
Xshare/smi/mibs/ietf/SNMP-VIEW-BASED-ACM-MIB
Xshare/smi/mibs/ietf/SNMPv2-CONF
Xshare/smi/mibs/ietf/SNMPv2-MIB
Xshare/smi/mibs/ietf/SNMPv2-SMI
Xshare/smi/mibs/ietf/SNMPv2-TC
Xshare/smi/mibs/ietf/SONET-MIB
Xshare/smi/mibs/ietf/SOURCE-ROUTING-MIB
Xshare/smi/mibs/ietf/SYSAPPL-MIB
Xshare/smi/mibs/ietf/TCP-MIB
Xshare/smi/mibs/ietf/TCPIPX-MIB
Xshare/smi/mibs/ietf/TN3270E-MIB
Xshare/smi/mibs/ietf/TN3270E-RT-MIB
Xshare/smi/mibs/ietf/TOKEN-RING-RMON-MIB
Xshare/smi/mibs/ietf/TOKENRING-MIB
Xshare/smi/mibs/ietf/TOKENRING-STATION-SR-MIB
Xshare/smi/mibs/ietf/TUNNEL-MIB
Xshare/smi/mibs/ietf/UDP-MIB
Xshare/smi/mibs/ietf/UPS-MIB
Xshare/smi/mibs/ietf/WWW-MIB
Xshare/smi/mibs/irtf/IRTF-NMRG-SMING-EXTENSIONS.sming
Xshare/smi/mibs/irtf/IRTF-NMRG-SMING-TYPES.sming
Xshare/smi/mibs/irtf/IRTF-NMRG-SMING.sming
Xshare/smi/mibs/site/DISMAN-NSLOOKUP-MIB
Xshare/smi/mibs/site/DISMAN-PING-MIB
Xshare/smi/mibs/site/DISMAN-TRACEROUTE-MIB
Xshare/smi/mibs/site/TUBS-IBR-LINUX-MIB
Xshare/smi/mibs/site/TUBS-IBR-NFS-MIB
Xshare/smi/mibs/site/TUBS-IBR-PROC-MIB
Xshare/smi/mibs/site/TUBS-IBR-TEST-MIB
Xshare/smi/mibs/site/TUBS-IBR-TNM-COMPAT
Xshare/smi/mibs/site/TUBS-IBR-TNM-MIB
Xshare/smi/mibs/site/TUBS-REGISTRATION
X@dirrm share/smi/mibs/iana
X@dirrm share/smi/mibs/ietf
X@dirrm share/smi/mibs/irtf
X@dirrm share/smi/mibs/site
X@dirrm share/smi/mibs
X@dirrm share/smi
END-of-libsmi/pkg/PLIST
exit
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to
libsmi-request@ibr.cs.tu-bs.de.
!! See
http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.