2002-10-27 20:38:44 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2002/10/28 01:38:45 naddy Exp $
|
2001-05-06 00:59:54 -04:00
|
|
|
|
|
|
|
COMMENT= "multi-router traffic grapher"
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2001-06-01 22:40:09 -04:00
|
|
|
DISTNAME= mrtg-2.9.12a
|
1999-02-23 16:59:39 -05:00
|
|
|
CATEGORIES= net
|
2002-10-27 20:38:44 -05:00
|
|
|
|
2000-03-04 19:55:07 -05:00
|
|
|
MASTER_SITES= ftp://ftp.ou.edu/mirrors/mrtg/ \
|
|
|
|
ftp://ftp.sunet.se/pub/network/monitoring/mrtg/ \
|
|
|
|
http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/pub/
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2000-03-15 14:20:05 -05:00
|
|
|
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
|
2000-03-04 19:34:26 -05:00
|
|
|
|
2000-03-24 18:28:01 -05:00
|
|
|
LIB_DEPENDS= gd.18::graphics/gd
|
1999-03-31 18:25:50 -05:00
|
|
|
|
2002-05-12 11:54:20 -04:00
|
|
|
RUN_DEPENDS= ::net/p5-SNMP_Session
|
|
|
|
|
2000-09-24 03:03:59 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2000-03-04 19:34:26 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-06-12 13:42:45 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
1999-11-28 00:22:43 -05:00
|
|
|
CONFIGURE_ARGS= --with-gd-inc="${LOCALBASE}/include" \
|
|
|
|
--with-gd-lib="${LOCALBASE}/lib" \
|
|
|
|
--with-png-inc="${LOCALBASE}/include" \
|
|
|
|
--with-png-lib="${LOCALBASE}/lib"
|
2002-03-28 22:41:08 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -ljpeg -lttf"
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2002-10-27 20:38:44 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1999-02-23 16:59:39 -05:00
|
|
|
do-install:
|
2001-02-17 17:22:45 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mrtg
|
2001-01-08 14:09:15 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libdata/perl5/site_perl/Pod
|
2000-01-20 18:07:39 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mrtg
|
2000-03-04 19:34:26 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/*.png ${PREFIX}/share/mrtg
|
2001-01-08 14:09:15 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/rateup ${PREFIX}/bin
|
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.pod *.txt \
|
2000-03-04 19:34:26 -05:00
|
|
|
${PREFIX}/share/doc/mrtg
|
2001-01-08 14:09:15 -05:00
|
|
|
cd ${WRKSRC}/bin; ${INSTALL_SCRIPT} cfgmaker indexmaker mrtg \
|
|
|
|
${PREFIX}/bin
|
2002-05-12 11:54:20 -04:00
|
|
|
cd ${WRKSRC}/lib/mrtg2; ${INSTALL_DATA} MRTG_lib.pm locales_mrtg.pm \
|
|
|
|
${PREFIX}/libdata/perl5/site_perl/
|
2001-01-08 14:09:15 -05:00
|
|
|
cd ${WRKSRC}/lib/mrtg2/Pod; ${INSTALL_DATA} *.pm \
|
|
|
|
${PREFIX}/libdata/perl5/site_perl/Pod
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mrtgmk/cfg/mrtg.cfg \
|
2001-02-17 17:22:45 -05:00
|
|
|
${PREFIX}/share/examples/mrtg/mrtg.cfg.sample
|
1999-04-27 15:25:27 -04:00
|
|
|
|
1999-02-23 16:59:39 -05:00
|
|
|
.include <bsd.port.mk>
|