2000-03-18 00:31:48 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2000/03/17 23:31:48 tron Exp $
|
1998-07-13 19:56:27 +02:00
|
|
|
# FreeBSD Id: Makefile,v 1.7 1997/12/16 19:42:17 vanilla Exp
|
1998-07-13 18:59:07 +02:00
|
|
|
#
|
|
|
|
|
2000-02-07 17:44:13 +01:00
|
|
|
DISTNAME= mrtg-2.8.12
|
1998-07-13 18:59:07 +02:00
|
|
|
CATEGORIES= net
|
1999-05-22 12:45:32 +02:00
|
|
|
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/
|
1998-07-13 18:59:07 +02:00
|
|
|
|
1998-07-13 19:56:27 +02:00
|
|
|
MAINTAINER= tv@netbsd.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
|
1998-07-13 18:59:07 +02:00
|
|
|
|
2000-03-18 00:31:48 +01:00
|
|
|
DEPENDS= gd>=1.8.1:../../graphics/gd
|
1998-07-13 18:59:07 +02:00
|
|
|
|
|
|
|
USE_PERL5= YES
|
1999-11-01 04:37:35 +01:00
|
|
|
USE_X11= YES
|
1999-05-22 12:45:32 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2000-02-07 17:44:13 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gd-inc=${LOCALBASE}/include \
|
|
|
|
--with-gd-lib=${LOCALBASE}/lib
|
1998-07-13 18:59:07 +02:00
|
|
|
|
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
|
|
|
|
|
1999-05-18 16:16:53 +02:00
|
|
|
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
|
1999-05-22 12:45:32 +02:00
|
|
|
|
1998-07-13 18:59:07 +02:00
|
|
|
do-install:
|
1998-07-13 19:56:27 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/etc/mrtg
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mrtg
|
1999-05-22 12:45:32 +02:00
|
|
|
for file in ${WRKSRC}/doc/*; do \
|
|
|
|
${INSTALL_DATA} $$file ${PREFIX}/share/doc/mrtg/; \
|
|
|
|
done
|
|
|
|
for file in ANNOUNCE CHANGES COPYING COPYRIGHT README; do \
|
1998-07-13 19:56:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/share/doc/mrtg/; \
|
|
|
|
done
|
2000-03-05 08:35:17 +01:00
|
|
|
for file in ${WRKSRC}/images/*.png; do \
|
1998-07-13 19:56:27 +02:00
|
|
|
${INSTALL_DATA} $$file ${PREFIX}/share/mrtg/; \
|
|
|
|
done
|
1999-05-18 16:16:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mrtg.conf.example ${PREFIX}/etc/mrtg
|
|
|
|
for file in netstat2mrtg sys2mrtg; do \
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/$$file ${PREFIX}/libexec/; \
|
|
|
|
done
|
1999-05-22 12:45:32 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/run/rateup ${PREFIX}/libexec/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run/mrtg ${PREFIX}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run/BER.pm ${WRKSRC}/run/SNMP_Session.pm \
|
1999-08-29 01:25:30 +02:00
|
|
|
${WRKSRC}/run/SNMP_util.pm ${WRKSRC}/run/locales_mrtg.pm \
|
|
|
|
${PREFIX}/lib/perl5/site_perl/
|
1999-05-22 12:45:32 +02:00
|
|
|
for file in cfgmaker cfgmaker_ip indexmaker; do \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run/$$file \
|
|
|
|
${PREFIX}/bin/mrtg$$file; \
|
1998-07-13 19:56:27 +02:00
|
|
|
done
|
1998-07-13 18:59:07 +02:00
|
|
|
|
1998-07-13 19:56:27 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|