pkgsrc/net/mrtg/Makefile

57 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.103 2011/11/01 06:02:21 sbd Exp $
Update "mrtg" package to version 2.17.2. Changes since version 2.16.4: - can not replace a file by renaming another to its name under WIN32 fix in rateup #104 - Fix scaling when noo and noi options are used. fix for #95 - Stop staticly linking rateup. fix for #97 - Only set LD_RUN_PATH if it is actually necessary. patch from #98 - Net::SNMP only support aes128, des and 3des ... fix for cfgmaker from #99 - Understand desc and descr in ifdesc option of cfgmaker - only set $args{'-maxrepetitions'} if $Net_SNMP_util::MaxRepetitions > 0 - do not load Net_SNMP_util unless snmpv3 is requested ... fix for #75 - be more agressive about updating the confcache. If a key is missing, go looking for it again and complain. fix for #74 - only apply 32bit counter wrap compensation when the wrap is within 32bit range. fix for #70 - implement pngdate as TimeStrPos[x]: RU instead of separately. for for #68 - add missing <p> tag arount 'last updated ... ' in html output. fix for #63 - remove rececondition when writing new trafic graph files by writing to a temp file and moving it later. fix for #51 - make snmpopt_current available in cfgmaker templates. fix for #48 - explicitly import Socket6 routines in SNMP_Session. fix for #45 - default ThreshHyst to 0.1 only if ThreshDir is define. fix for #42 - point out when there is an unknown interface found. fix for #41. - allow for $speed to return 0 and still use SNMPv2 ... some Cisco Gear seems todo that. Fix for #33 - add dlink support for ifAlias OIDs to cfgmaker from #50 - add WWP (Ciena) support for ifAlias OIDs to cfgmaker from #66 - Updated squid docu #80 - Fix russian translation bug #92 - added rrdcached support - new keyword: RRDCached: which overrides anything set in the RRDCACHED_ADDRESS environment variable and sets MRTG to work in RRDCached mode. This verifies that you're using a unix-domain socket and the socket is writeable. - Check for environment variable RRDCACHED_ADDRESS and use this if no explicit address was set in the cfg file, making the same config validity checks. - Make warning if using rrdcached to the effect that the thresholding checks will no longer work. - If in rrdcached-mode, and using RRDTool 1.4, then force use of update rather than updatev (as rrdcached does not yet support updatev) and consequently bypass the thresholding checks. - Changes to validity check error messages to also report the file containing the error (as well as the line). - Added support for glob patterns in include - Make daemon reload cfg automatically when it changes - added support for Arista to cfgmaker - fix cfgmaker to work in mixed v1/2/3 snmp environment - do not strigify arguments to conversion function let eval take care of this - untaint inlast and outlast to make perl taint mode happy - teach cfgmaker about openbsd pkgsrc changes: - Avoid "Subroutine SNMP_Session::pack_sockaddr_in6 redefined" warnings with the Perl 5.14.1. As the patch might break "mrtg" with older version of Perl require at least version 5.14.1 of the "perl5" package.
2011-08-06 13:52:16 +02:00
DISTNAME= mrtg-2.17.2
PKGREVISION= 1
CATEGORIES= net
2007-01-14 10:57:52 +01:00
MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \
http://oss.oetiker.ch/mrtg/pub/old/
MAINTAINER= pkgsrc-users@NetBSD.org
2006-08-16 11:50:19 +02:00
HOMEPAGE= http://oss.oetiker.ch/mrtg/
COMMENT= The Multi-Router Traffic Grapher
LICENSE= gnu-gpl-v2
2010-02-11 23:14:30 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= perl:run
Update "mrtg" package to version 2.17.2. Changes since version 2.16.4: - can not replace a file by renaming another to its name under WIN32 fix in rateup #104 - Fix scaling when noo and noi options are used. fix for #95 - Stop staticly linking rateup. fix for #97 - Only set LD_RUN_PATH if it is actually necessary. patch from #98 - Net::SNMP only support aes128, des and 3des ... fix for cfgmaker from #99 - Understand desc and descr in ifdesc option of cfgmaker - only set $args{'-maxrepetitions'} if $Net_SNMP_util::MaxRepetitions > 0 - do not load Net_SNMP_util unless snmpv3 is requested ... fix for #75 - be more agressive about updating the confcache. If a key is missing, go looking for it again and complain. fix for #74 - only apply 32bit counter wrap compensation when the wrap is within 32bit range. fix for #70 - implement pngdate as TimeStrPos[x]: RU instead of separately. for for #68 - add missing <p> tag arount 'last updated ... ' in html output. fix for #63 - remove rececondition when writing new trafic graph files by writing to a temp file and moving it later. fix for #51 - make snmpopt_current available in cfgmaker templates. fix for #48 - explicitly import Socket6 routines in SNMP_Session. fix for #45 - default ThreshHyst to 0.1 only if ThreshDir is define. fix for #42 - point out when there is an unknown interface found. fix for #41. - allow for $speed to return 0 and still use SNMPv2 ... some Cisco Gear seems todo that. Fix for #33 - add dlink support for ifAlias OIDs to cfgmaker from #50 - add WWP (Ciena) support for ifAlias OIDs to cfgmaker from #66 - Updated squid docu #80 - Fix russian translation bug #92 - added rrdcached support - new keyword: RRDCached: which overrides anything set in the RRDCACHED_ADDRESS environment variable and sets MRTG to work in RRDCached mode. This verifies that you're using a unix-domain socket and the socket is writeable. - Check for environment variable RRDCACHED_ADDRESS and use this if no explicit address was set in the cfg file, making the same config validity checks. - Make warning if using rrdcached to the effect that the thresholding checks will no longer work. - If in rrdcached-mode, and using RRDTool 1.4, then force use of update rather than updatev (as rrdcached does not yet support updatev) and consequently bypass the thresholding checks. - Changes to validity check error messages to also report the file containing the error (as well as the line). - Added support for glob patterns in include - Make daemon reload cfg automatically when it changes - added support for Arista to cfgmaker - fix cfgmaker to work in mixed v1/2/3 snmp environment - do not strigify arguments to conversion function let eval take care of this - untaint inlast and outlast to make perl taint mode happy - teach cfgmaker about openbsd pkgsrc changes: - Avoid "Subroutine SNMP_Session::pack_sockaddr_in6 redefined" warnings with the Perl 5.14.1. As the patch might break "mrtg" with older version of Perl require at least version 5.14.1 of the "perl5" package.
2011-08-06 13:52:16 +02:00
PERL5_REQD= 5.14.1
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-gd=${BUILDLINK_PREFIX.gd}
CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png}
CONFIGURE_ARGS+= --with-z=${BUILDLINK_PREFIX.zlib}
MAKE_ENV+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB}
REPLACE_PERL= bin/cfgmaker bin/indexmaker bin/mrtg bin/mrtg-traffic-sum
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/mrtg.conf ${PKG_SYSCONFDIR}/mrtg.conf
.include "options.mk"
- Update to 2.11.1 - Fix bug with IPv6 support on non-IPv6 enabled systems - Tidy up Makefile - Move patch-aa to Makefile - ok'ed bouyer@ Changes 2.11.1, 2005-01-05 -------------------------- From: Artyom Adjemov <one.bofh location gmail.com> * new Windows docu ... running mrtg as an nt service with srvany. From: Joe Pruett <joey location clean.q7.com> * fixed snmp options parsing in MRTG_lib.pm to allow for ! From: Tobi * fixed secondmean and logscale to actually issue the propper options for rateup. * fixed compilation of rateup.exe for windows to get the new strftime function to be actually used ... Changes 2.11.00, 2004-12-08 --------------------------- From: Al Payne <apayne location pleiades.com> * integrated support for dellLan in cfgmaker * reindented cfgmaker From: Mike Nealon <mnealon location conversent.com> and Larry Fahnoe <fahnoe@FahnoeTech.com> * fix cfgmaker handling of 'lowspeed' highSpeed interfaces From: Tobi Oetiker * reindent rateup.c * remove @ signs from mail addresses in change log * added if_MTU variable to cfgmaker * make windows users happy. rateup.exe now uses a special strftime.c that knows about %V and will thus provided propper ISO week numbers for windows as well. Changed the default week format to V. From: zurkabsd location yahoo.com.cn * new chinese translation From: Jaime Damiao Anjos Cadete <jaime.d.cadete location ptprime.pt> * put -lm into LIBS to make sure it comes last From: Ian Duplisse <i.duplisse location cablelabs.com> * remove the flattening of peaks from the code in rateup.c this does not reflect what actually happens From: John Van Essen <vanes002 location umn.edu> * fix handling of unknonwn (-1) data in rateup ... From: Benjamin Despres <http://users.tmok.com/~pla/email_me.shtml> * Logscale and Secondmean logarithmic scaling for rateup From: alex <alex location craxor.com> * contributed mrtg message dll. Added note about it to mrtg-reference.pod From: Mateusz <mateusz location republika.pl> * support option derive is using rrdtool logging From: Ulf Härnhammar <Ulf.Harnhammar.9485 location student.uu.se> * prevent potential buffer overflow in ratup due to 'strange' input files Changes 2.10.15, 2004-08-08 --------------------------- From: NormW <normw location bocnet.com.au> * patches for netware support From: Tobi * the optional Conversion function wants to have the original data pulled in via snmp to work with, mapping \n and \r to nothing and stripping spaces must happen later. * better error message for missing library * Updated to snmp_session 1.05 From: Fuminori -Tany- Tanizaki <tany location tany.org> * fix for cuin and cout values saved in html comments From: Tom Pala <gotar location pld-linux.org> * fix for polish translation From: Georgi Georgiev <chutz location gg3.net> * nodetach option for running mrtg under daemontools From: Jozsef Szilagyi <j.szilagyi location atlastelecom.ro> * fixed indexmaker. added missing last for --section=portname code From: Bartosz Kwitniewski <zerg2000 location lurker.ath.cx> * fixed scaling bug in rateup (unsigned long) should have been long long From: Mike Mitchell <mcm location unx.sas.com> * fix indexmaker when used with 14all
2005-01-22 16:07:01 +01:00
SUBST_CLASSES+= files
SUBST_STAGE.files= post-patch
SUBST_FILES.files= ../mrtg.conf.example ../netstat2mrtg \
../sys2mrtg ../envstat2mrtg
- Update to 2.11.1 - Fix bug with IPv6 support on non-IPv6 enabled systems - Tidy up Makefile - Move patch-aa to Makefile - ok'ed bouyer@ Changes 2.11.1, 2005-01-05 -------------------------- From: Artyom Adjemov <one.bofh location gmail.com> * new Windows docu ... running mrtg as an nt service with srvany. From: Joe Pruett <joey location clean.q7.com> * fixed snmp options parsing in MRTG_lib.pm to allow for ! From: Tobi * fixed secondmean and logscale to actually issue the propper options for rateup. * fixed compilation of rateup.exe for windows to get the new strftime function to be actually used ... Changes 2.11.00, 2004-12-08 --------------------------- From: Al Payne <apayne location pleiades.com> * integrated support for dellLan in cfgmaker * reindented cfgmaker From: Mike Nealon <mnealon location conversent.com> and Larry Fahnoe <fahnoe@FahnoeTech.com> * fix cfgmaker handling of 'lowspeed' highSpeed interfaces From: Tobi Oetiker * reindent rateup.c * remove @ signs from mail addresses in change log * added if_MTU variable to cfgmaker * make windows users happy. rateup.exe now uses a special strftime.c that knows about %V and will thus provided propper ISO week numbers for windows as well. Changed the default week format to V. From: zurkabsd location yahoo.com.cn * new chinese translation From: Jaime Damiao Anjos Cadete <jaime.d.cadete location ptprime.pt> * put -lm into LIBS to make sure it comes last From: Ian Duplisse <i.duplisse location cablelabs.com> * remove the flattening of peaks from the code in rateup.c this does not reflect what actually happens From: John Van Essen <vanes002 location umn.edu> * fix handling of unknonwn (-1) data in rateup ... From: Benjamin Despres <http://users.tmok.com/~pla/email_me.shtml> * Logscale and Secondmean logarithmic scaling for rateup From: alex <alex location craxor.com> * contributed mrtg message dll. Added note about it to mrtg-reference.pod From: Mateusz <mateusz location republika.pl> * support option derive is using rrdtool logging From: Ulf Härnhammar <Ulf.Harnhammar.9485 location student.uu.se> * prevent potential buffer overflow in ratup due to 'strange' input files Changes 2.10.15, 2004-08-08 --------------------------- From: NormW <normw location bocnet.com.au> * patches for netware support From: Tobi * the optional Conversion function wants to have the original data pulled in via snmp to work with, mapping \n and \r to nothing and stripping spaces must happen later. * better error message for missing library * Updated to snmp_session 1.05 From: Fuminori -Tany- Tanizaki <tany location tany.org> * fix for cuin and cout values saved in html comments From: Tom Pala <gotar location pld-linux.org> * fix for polish translation From: Georgi Georgiev <chutz location gg3.net> * nodetach option for running mrtg under daemontools From: Jozsef Szilagyi <j.szilagyi location atlastelecom.ro> * fixed indexmaker. added missing last for --section=portname code From: Bartosz Kwitniewski <zerg2000 location lurker.ath.cx> * fixed scaling bug in rateup (unsigned long) should have been long long From: Mike Mitchell <mcm location unx.sas.com> * fix indexmaker when used with 14all
2005-01-22 16:07:01 +01:00
SUBST_SED.files= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_MESSAGE.files= Fixing default configuration files.
- Update to 2.11.1 - Fix bug with IPv6 support on non-IPv6 enabled systems - Tidy up Makefile - Move patch-aa to Makefile - ok'ed bouyer@ Changes 2.11.1, 2005-01-05 -------------------------- From: Artyom Adjemov <one.bofh location gmail.com> * new Windows docu ... running mrtg as an nt service with srvany. From: Joe Pruett <joey location clean.q7.com> * fixed snmp options parsing in MRTG_lib.pm to allow for ! From: Tobi * fixed secondmean and logscale to actually issue the propper options for rateup. * fixed compilation of rateup.exe for windows to get the new strftime function to be actually used ... Changes 2.11.00, 2004-12-08 --------------------------- From: Al Payne <apayne location pleiades.com> * integrated support for dellLan in cfgmaker * reindented cfgmaker From: Mike Nealon <mnealon location conversent.com> and Larry Fahnoe <fahnoe@FahnoeTech.com> * fix cfgmaker handling of 'lowspeed' highSpeed interfaces From: Tobi Oetiker * reindent rateup.c * remove @ signs from mail addresses in change log * added if_MTU variable to cfgmaker * make windows users happy. rateup.exe now uses a special strftime.c that knows about %V and will thus provided propper ISO week numbers for windows as well. Changed the default week format to V. From: zurkabsd location yahoo.com.cn * new chinese translation From: Jaime Damiao Anjos Cadete <jaime.d.cadete location ptprime.pt> * put -lm into LIBS to make sure it comes last From: Ian Duplisse <i.duplisse location cablelabs.com> * remove the flattening of peaks from the code in rateup.c this does not reflect what actually happens From: John Van Essen <vanes002 location umn.edu> * fix handling of unknonwn (-1) data in rateup ... From: Benjamin Despres <http://users.tmok.com/~pla/email_me.shtml> * Logscale and Secondmean logarithmic scaling for rateup From: alex <alex location craxor.com> * contributed mrtg message dll. Added note about it to mrtg-reference.pod From: Mateusz <mateusz location republika.pl> * support option derive is using rrdtool logging From: Ulf Härnhammar <Ulf.Harnhammar.9485 location student.uu.se> * prevent potential buffer overflow in ratup due to 'strange' input files Changes 2.10.15, 2004-08-08 --------------------------- From: NormW <normw location bocnet.com.au> * patches for netware support From: Tobi * the optional Conversion function wants to have the original data pulled in via snmp to work with, mapping \n and \r to nothing and stripping spaces must happen later. * better error message for missing library * Updated to snmp_session 1.05 From: Fuminori -Tany- Tanizaki <tany location tany.org> * fix for cuin and cout values saved in html comments From: Tom Pala <gotar location pld-linux.org> * fix for polish translation From: Georgi Georgiev <chutz location gg3.net> * nodetach option for running mrtg under daemontools From: Jozsef Szilagyi <j.szilagyi location atlastelecom.ro> * fixed indexmaker. added missing last for --section=portname code From: Bartosz Kwitniewski <zerg2000 location lurker.ath.cx> * fixed scaling bug in rateup (unsigned long) should have been long long From: Mike Mitchell <mcm location unx.sas.com> * fix indexmaker when used with 14all
2005-01-22 16:07:01 +01:00
INSTALLATION_DIRS+= ${EGDIR} libexec
- Update to 2.11.1 - Fix bug with IPv6 support on non-IPv6 enabled systems - Tidy up Makefile - Move patch-aa to Makefile - ok'ed bouyer@ Changes 2.11.1, 2005-01-05 -------------------------- From: Artyom Adjemov <one.bofh location gmail.com> * new Windows docu ... running mrtg as an nt service with srvany. From: Joe Pruett <joey location clean.q7.com> * fixed snmp options parsing in MRTG_lib.pm to allow for ! From: Tobi * fixed secondmean and logscale to actually issue the propper options for rateup. * fixed compilation of rateup.exe for windows to get the new strftime function to be actually used ... Changes 2.11.00, 2004-12-08 --------------------------- From: Al Payne <apayne location pleiades.com> * integrated support for dellLan in cfgmaker * reindented cfgmaker From: Mike Nealon <mnealon location conversent.com> and Larry Fahnoe <fahnoe@FahnoeTech.com> * fix cfgmaker handling of 'lowspeed' highSpeed interfaces From: Tobi Oetiker * reindent rateup.c * remove @ signs from mail addresses in change log * added if_MTU variable to cfgmaker * make windows users happy. rateup.exe now uses a special strftime.c that knows about %V and will thus provided propper ISO week numbers for windows as well. Changed the default week format to V. From: zurkabsd location yahoo.com.cn * new chinese translation From: Jaime Damiao Anjos Cadete <jaime.d.cadete location ptprime.pt> * put -lm into LIBS to make sure it comes last From: Ian Duplisse <i.duplisse location cablelabs.com> * remove the flattening of peaks from the code in rateup.c this does not reflect what actually happens From: John Van Essen <vanes002 location umn.edu> * fix handling of unknonwn (-1) data in rateup ... From: Benjamin Despres <http://users.tmok.com/~pla/email_me.shtml> * Logscale and Secondmean logarithmic scaling for rateup From: alex <alex location craxor.com> * contributed mrtg message dll. Added note about it to mrtg-reference.pod From: Mateusz <mateusz location republika.pl> * support option derive is using rrdtool logging From: Ulf Härnhammar <Ulf.Harnhammar.9485 location student.uu.se> * prevent potential buffer overflow in ratup due to 'strange' input files Changes 2.10.15, 2004-08-08 --------------------------- From: NormW <normw location bocnet.com.au> * patches for netware support From: Tobi * the optional Conversion function wants to have the original data pulled in via snmp to work with, mapping \n and \r to nothing and stripping spaces must happen later. * better error message for missing library * Updated to snmp_session 1.05 From: Fuminori -Tany- Tanizaki <tany location tany.org> * fix for cuin and cout values saved in html comments From: Tom Pala <gotar location pld-linux.org> * fix for polish translation From: Georgi Georgiev <chutz location gg3.net> * nodetach option for running mrtg under daemontools From: Jozsef Szilagyi <j.szilagyi location atlastelecom.ro> * fixed indexmaker. added missing last for --section=portname code From: Bartosz Kwitniewski <zerg2000 location lurker.ath.cx> * fixed scaling bug in rateup (unsigned long) should have been long long From: Mike Mitchell <mcm location unx.sas.com> * fix indexmaker when used with 14all
2005-01-22 16:07:01 +01:00
post-extract:
cp ${FILESDIR}/mrtg.conf.example ${WRKDIR}
cp ${FILESDIR}/netstat2mrtg ${WRKDIR}
cp ${FILESDIR}/sys2mrtg ${WRKDIR}
cp ${FILESDIR}/envstat2mrtg ${WRKDIR}
post-install:
2010-02-11 23:14:30 +01:00
${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${DESTDIR}${EGDIR}/mrtg.conf
${INSTALL_SCRIPT} ${WRKDIR}/envstat2mrtg ${DESTDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/netstat2mrtg ${DESTDIR}${PREFIX}/libexec
${INSTALL_SCRIPT} ${WRKDIR}/sys2mrtg ${DESTDIR}${PREFIX}/libexec
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"