pkgsrc/net/mrtg/Makefile

83 lines
2.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.30 2002/03/13 17:37:31 fredb Exp $
#
Update to 2.9.17 by Martti Kuparinen via pkg/13258. Notable changes in reverse order (newest on top): * mrtg_lib had broken scanning for Ip tables in populateconfcache this caused reference by IP to break * new option for mrtg --logging replaces $main::debugfile from 2.9.13. It can be set to a file which will take all mrtg output. On Win32 it can also be set to 'eventlog' which will make all mrtg output go to the eventlog. * snmpv2 regexp did not match in cfgmaker * fix for indexmakers extension feature * improved mrtg logfile format description * require perl 5.005 for mrtg_lib * populateconfcache steps across non existing tables gracefully * in mrtg, handle bigint more carefully and remove excess + from results as some perls seem to crash on them ... * check if gd was linked with jpeg and even freetype ... * if $main::debugfile is set to a writeable filename, all output form mrtg will go there (Firedeamon Suggenstion) * SNMP_Session 0.86 added ... lenient_source_port_matching replaces the ad hoc only_ip_address_matching from mrtg 2.9.11 ... AS/400 folks beware * added --section=portname to indexmaker * try to fix IsCounterBroken test in cfgmaker ... just cant find any broken coutners to test this :-( * fix for broken --dns-domain in cfgmaker * fix for broken RouterUptime[] configurable * fix for broken snmp with returns negative numbers for counters ... * integrated my SNMP_utils changes into the real thing. * make sure cfgmaker puts now raw < or > into the PageTop tag * properly integrated ytics support in rateup * properly deal with target math resulting in non integer data even when logging to rateup which can not deal with floats. * cleanup of rateup.c and some new options -b -a -o -i * new options for mrtg noborder, noarrow, noi, noo, nobanner and nolegend check reference.pod for docs. * generator meta tag to html pages * add 'only_ip_address_matching' feature to SNMP_Session. We are more libaral when accepting snmp responses now. * be more tolerant with external scripts input * added feature to SNMP_utils: If first snmp var name is a HASH pointer, the hash contents is used to set snmp options on the connection * handle descriptions with & in cfgmaker * added SnmpOptions: command to mrtg.cfg lanuage ... It allows to set Snmp Options as available in SNMP_Session. Check the reference.txt file. * test for availability of ifHCInOctets when running cfgmaker for v2 targets * fixed indexmake image path for situations with Directories * added option --prefix to indexmaker for people keeping thier index somewhere else than default. * honor background option in cfg file for indexmaker pages * fixed warning in indexmaker (Use of uninitialized value in concatenation <.> at indexmaker line 174) * when the integer option was specified, there was still a .x printed in the summary area ... * mrtg will now timestamp any warning and error message it emits * fixed threshold processing ... IT REALY WORKS NOW! ... **** Incompatible CHANGE **************** ThreshProgOK now gets the same commandline arguments as the normal ThreshProg ... **** Incompatible CHANGE **************** * configurable confcache (.ok) file location * add <meta http-equiv="Cache-Control" content="no-cache"> to html files as this seems to be more understandable than "Pragma" content="no-cache"
2001-06-20 16:21:52 +02:00
DISTNAME= mrtg-2.9.17
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/pub/ \
http://gd.tuwien.ac.at/infosys/network/tools/mrtg/pub/ \
ftp://mrtg.hdl.com/ \
ftp://ftp.sunet.se/pub/network/monitoring/mrtg/ \
ftp://ftp.ou.edu/mirrors/mrtg/ \
ftp://eesa.webstar.co.uk/pub/mrtg/ \
ftp://ftp.chg.ru/pub/networking/management/mrtg/ \
ftp://ftp.onet.pl/pub/unix/network/mrtg/pub/
MAINTAINER= bouyer@netbsd.org
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
COMMENT= The Multi-Router Traffic Grapher
DEPENDS= gd>=1.8.4nb1:../../graphics/gd
USE_PERL5= YES
PERL5_REQD= 5.6.0
USE_X11= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-gd-inc=${LOCALBASE}/include \
Update "mrtg" package to version 2.8.12: - make -M and -r work in indexmaker - hungarian translation - NoSpaceChar option. Supresses SPACE normally inserted between local value and PRE or APPEND value. - new features for cfgmaker --iponly, --options, --workdir - make RunAsDaemon work ... - Daemon mode now forks into background after cfgcheck - Remove locks after sig INT and TERM - make indexmaker ignore default values - added ThreshDesc config option. Its value is assigned to the env variable THRESH_DESC before and of the Thresh-Action scripts are called. - bugfix for big5 locale - bugfix for norwegian.pmd - it is RunAsDaemon and not RunAsDeamon - update for rrdtool integration 14all.cgi to 0.16 - updated danish translation - have cfgmaker put specific comments into the mrtg.cfg file regarding the reason for droping a certain interface .. - Added RunAsDeamon mode. Start mrtg only once. No Cron necessary. - linux ip-filter integration in contrib - version 2.2 of mrtgmk in contrib - catalan locales - rateup.c fix for kMG override bug - allow to set ShortLegend to '' - better parsing of PageTop with intexmakers -P option - fix for spanish translation (uptime had some probmlems) - contrib: switchmaker produces mrtg cfg files for Cisco Catylst 5XXX - made sure -lm comes last when linking ... - converted remaining gifs to png - make sure AbsMax is not smaller than MaxBytes - translation to icelandic - added japanese translations for ISO-2022-JP and EUC-JP - added turkish translation - update for rrdtool integration 14all.cgi - Added more modular translation system - Added German Translation - Chinese Translation - cfgmaker_ip ... keep first address and not last .. - Malayan translation - restored mibhelp to its old glory .. - added ability to index interfaces by physical address analog to the existing IP stuff ... there is now also a cfgmaker_phys - polish translation - graphing fix for rateup ... - cpuinfo contrib - contrib cisco config tftp - updates and bugfixes for mrtgmk v2.0 - fix for -F/-f in indexmaker - fix for view type in indexmaker - cisco accounting contrib - added -lm to LIBS in configure.in - patching system for languages ... check translate directory - NSI (Network Status Imager for MRTG) contrib - updates for mrtg-archiver
2000-02-07 17:44:13 +01:00
--with-gd-lib=${LOCALBASE}/lib
2000-03-03 14:56:48 +01:00
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --with-z-lib=${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-z-inc=${LOCALBASE}/include
CONFIGURE_ARGS+= --with-png-lib=${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-png-inc=${LOCALBASE}/include
.endif
post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/mrtg.conf.example \
>${WRKDIR}/mrtg.conf.example
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/netstat2mrtg \
>${WRKDIR}/netstat2mrtg
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/sys2mrtg \
>${WRKDIR}/sys2mrtg
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/envstat2mrtg \
>${WRKDIR}/envstat2mrtg
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/etc/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mrtg
for FILE in ${WRKSRC}/doc/*; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/doc/mrtg; \
done
2001-02-25 14:44:55 +01:00
${INSTALL_DATA} ${WRKSRC}/doc/mrtg.1 ${PREFIX}/man/man1
for FILE in cfgmaker.1 indexmaker.1; do \
${INSTALL_DATA} ${WRKSRC}/doc/$$FILE ${PREFIX}/man/man1/mrtg$$FILE; \
done
for FILE in ANNOUNCE CHANGES COPYING COPYRIGHT README; do \
${INSTALL_DATA} ${WRKSRC}/$$FILE ${PREFIX}/share/doc/mrtg; \
done
for FILE in ${WRKSRC}/images/*.png; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/mrtg; \
done
${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${PREFIX}/etc/mrtg
for FILE in netstat2mrtg sys2mrtg envstat2mrtg; do \
${INSTALL_SCRIPT} ${WRKDIR}/$$FILE ${PREFIX}/libexec; \
done
${INSTALL_DATA_DIR} ${PERL5_SITELIB}
Upgrate to mrtg 2.9.2, and change maintainer back to packages@netbsd.org (Todd Vierling doesn't use mrtg any more :) Changes from 2.8.12: MRTG 2.9 is the biggest change in MRTG since the release of MRTG 2.0. So let's hear the news first: * The rrdtool integration allows for massively increased logging performance. * Routers which change their interface numbers are no problem any more. MRTG can now reliably address interfaces by IP, MAC, Description, Name and Type. The cfgmaker tool has been rewritten from scratch and allows to generate configurations with any of the above mentioned interface addressing methods. * Indexmaker has be rewritten from scratch, it is now much more flexible and fully documented. * All the MRTG documentation has been reviewed and ported to perls "Plain Old Documentation (POD)" format. This allows to provide all documentation in text, HTML and man format. It is now all available on the MRTG web-site. * Config file parsing has been optimized. This makes reading configuration files much faster. Especially large configuration files are faster by factors * Under UNIX, mrtg can fork into several instances while querying routers. This improves data acquisition performance dramatically, especially with slow networks. * Graphs and webpages can be generated on the fly is mrtg is used with rrdtool logging. Several tools in the mrtg contrib section are available for this purpose. * And there is more: MRTG has been translated into 29 languages, OS detection has been automated, did I mention performance, many of the contributed tools have been dated and a slew of new ones has been added, The config file reading code is now available in a documented library which simplifies the creation of other tools which need access to the mrtg cfg file. * In total, over 200 individual changes are listed in the change log since the release of MRTG 2.9.2.
2000-10-20 18:06:16 +02:00
${INSTALL_SCRIPT} ${WRKSRC}/lib/mrtg2/BER.pm \
${WRKSRC}/lib/mrtg2/SNMP_Session.pm \
${WRKSRC}/lib/mrtg2/SNMP_util.pm \
${WRKSRC}/lib/mrtg2/MRTG_lib.pm \
${WRKSRC}/lib/mrtg2/locales_mrtg.pm \
${PERL5_SITELIB}
Upgrate to mrtg 2.9.2, and change maintainer back to packages@netbsd.org (Todd Vierling doesn't use mrtg any more :) Changes from 2.8.12: MRTG 2.9 is the biggest change in MRTG since the release of MRTG 2.0. So let's hear the news first: * The rrdtool integration allows for massively increased logging performance. * Routers which change their interface numbers are no problem any more. MRTG can now reliably address interfaces by IP, MAC, Description, Name and Type. The cfgmaker tool has been rewritten from scratch and allows to generate configurations with any of the above mentioned interface addressing methods. * Indexmaker has be rewritten from scratch, it is now much more flexible and fully documented. * All the MRTG documentation has been reviewed and ported to perls "Plain Old Documentation (POD)" format. This allows to provide all documentation in text, HTML and man format. It is now all available on the MRTG web-site. * Config file parsing has been optimized. This makes reading configuration files much faster. Especially large configuration files are faster by factors * Under UNIX, mrtg can fork into several instances while querying routers. This improves data acquisition performance dramatically, especially with slow networks. * Graphs and webpages can be generated on the fly is mrtg is used with rrdtool logging. Several tools in the mrtg contrib section are available for this purpose. * And there is more: MRTG has been translated into 29 languages, OS detection has been automated, did I mention performance, many of the contributed tools have been dated and a slew of new ones has been added, The config file reading code is now available in a documented library which simplifies the creation of other tools which need access to the mrtg cfg file. * In total, over 200 individual changes are listed in the change log since the release of MRTG 2.9.2.
2000-10-20 18:06:16 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/bin/rateup ${PREFIX}/libexec/
${INSTALL_SCRIPT} ${WRKSRC}/bin/mrtg ${PREFIX}/bin/
for FILE in cfgmaker indexmaker; do \
${INSTALL_SCRIPT} ${WRKSRC}/bin/$$FILE ${PREFIX}/bin/mrtg$$FILE; \
done
.include "../../mk/bsd.pkg.mk"