pkgsrc/net/mrtg/Makefile

85 lines
2.7 KiB
Makefile
Raw Normal View History

2007-05-16 11:01:13 +02:00
# $NetBSD: Makefile,v 1.80 2007/05/16 09:01:13 martti Exp $
2007-05-16 11:01:13 +02:00
DISTNAME= mrtg-2.15.2
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/ \
ftp://ftp2.cscnet.cz/pub/mirror/mrtg/
MAINTAINER= martti@NetBSD.org
2006-08-16 11:50:19 +02:00
HOMEPAGE= http://oss.oetiker.ch/mrtg/
COMMENT= The Multi-Router Traffic Grapher
USE_TOOLS+= perl:run
GNU_CONFIGURE= YES
LDFLAGS+= -lgd -lintl -ljpeg
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
REPLACE_PERL= bin/cfgmaker bin/indexmaker bin/mrtg
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= bin libexec ${PKGMANDIR}/man1 ${EGDIR}
INSTALLATION_DIRS+= share/mrtg share/doc/mrtg
.include "../../devel/gettext-lib/buildlink3.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
.include "../../graphics/gd/buildlink3.mk"
post-extract:
cp ${FILESDIR}/mrtg.conf.example ${WRKDIR}
cp ${FILESDIR}/netstat2mrtg ${WRKDIR}
cp ${FILESDIR}/sys2mrtg ${WRKDIR}
cp ${FILESDIR}/envstat2mrtg ${WRKDIR}
do-install:
for FILE in ${WRKSRC}/doc/*.??*; do \
${INSTALL_DATA} $$FILE ${PREFIX}/share/doc/mrtg; \
done
${INSTALL_DATA} ${WRKSRC}/doc/mrtg*.1 ${PREFIX}/${PKGMANDIR}/man1/
for FILE in cfgmaker.1 indexmaker.1; do \
${INSTALL_DATA} ${WRKSRC}/doc/$$FILE ${PREFIX}/${PKGMANDIR}/man1/mrtg$$FILE; \
done
for FILE in 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 ${EGDIR}/mrtg.conf
for FILE in netstat2mrtg sys2mrtg envstat2mrtg; do \
${INSTALL_SCRIPT} ${WRKDIR}/$$FILE ${PREFIX}/libexec; \
done
${INSTALL_DATA_DIR} ${PERL5_INSTALLVENDORLIB}
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_INSTALLVENDORLIB}
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"