2011-03-02 03:36:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.75 2011/03/02 08:36:28 sthen Exp $
|
2001-05-06 00:59:54 -04:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT= multi-router traffic grapher
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2011-03-02 03:36:28 -05:00
|
|
|
DISTNAME= mrtg-2.17.1
|
1999-02-23 16:59:39 -05:00
|
|
|
CATEGORIES= net
|
2002-10-27 20:38:44 -05:00
|
|
|
|
2007-04-03 10:52:29 -04:00
|
|
|
HOMEPAGE= http://oss.oetiker.ch/mrtg/
|
2000-03-04 19:34:26 -05:00
|
|
|
|
2010-03-20 19:01:11 -04:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2007-12-19 03:58:03 -05:00
|
|
|
# GPLv2
|
2000-03-04 19:34:26 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-12-19 03:58:03 -05:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
WANTLIB= c jpeg m png z gd>=18
|
2007-12-19 03:58:03 -05:00
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}pub/ \
|
|
|
|
${HOMEPAGE}pub/old
|
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
RUN_DEPENDS= net/p5-IO-Socket-INET6 \
|
|
|
|
net/p5-Net-SNMP \
|
|
|
|
net/p5-SNMP_Session \
|
|
|
|
net/rrdtool,-perl
|
|
|
|
LIB_DEPENDS= graphics/gd
|
2007-12-19 03:58:03 -05:00
|
|
|
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-01-25 14:27:26 -05:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2010-03-22 17:20:49 -04:00
|
|
|
AUTOCONF_VERSION= 2.63
|
2007-12-19 03:58:03 -05:00
|
|
|
CONFIGURE_ARGS+=--with-gd-inc="${LOCALBASE}/include" \
|
1999-11-28 00:22:43 -05:00
|
|
|
--with-gd-lib="${LOCALBASE}/lib" \
|
|
|
|
--with-png-inc="${LOCALBASE}/include" \
|
|
|
|
--with-png-lib="${LOCALBASE}/lib"
|
2005-10-22 10:11:23 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
|
2005-10-24 01:12:31 -04:00
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
1999-02-23 16:59:39 -05:00
|
|
|
|
2002-10-27 20:38:44 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2010-01-13 07:33:24 -05:00
|
|
|
# SUBST_CMD mangles the file
|
|
|
|
pre-configure:
|
2010-05-18 04:31:43 -04:00
|
|
|
@perl -pi -e 's,/etc/mrtg,${SYSCONFDIR}/mrtg,g' ${WRKSRC}/bin/mrtg
|
2010-01-13 07:33:24 -05:00
|
|
|
|
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
|
2004-01-25 14:27:26 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/images/* ${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}/bin; ${INSTALL_SCRIPT} cfgmaker indexmaker mrtg \
|
2007-12-19 03:58:03 -05:00
|
|
|
${PREFIX}/bin
|
2008-01-29 13:46:27 -05:00
|
|
|
cd ${WRKSRC}/lib/mrtg2; ${INSTALL_DATA} MRTG_lib.pm Net_SNMP_util.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 \
|
2007-12-19 03:58:03 -05:00
|
|
|
${PREFIX}/libdata/perl5/site_perl/Pod
|
2001-01-08 14:09:15 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mrtgmk/cfg/mrtg.cfg \
|
2007-12-19 03:58:03 -05:00
|
|
|
${PREFIX}/share/examples/mrtg
|
1999-04-27 15:25:27 -04:00
|
|
|
|
1999-02-23 16:59:39 -05:00
|
|
|
.include <bsd.port.mk>
|