1999-07-25 21:25:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 1999/07/26 01:25:21 brad Exp $
|
1999-02-23 16:59:39 -05:00
|
|
|
|
1999-07-25 21:25:21 -04:00
|
|
|
DISTNAME= mrtg-2.8.5
|
1999-02-23 16:59:39 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/pub/
|
|
|
|
|
1999-03-31 18:25:50 -05:00
|
|
|
NEED_VERSION= 1.73
|
|
|
|
|
1999-02-23 16:59:39 -05:00
|
|
|
MAINTAINER= brad@openbsd.org
|
1999-07-25 21:25:21 -04:00
|
|
|
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
|
1999-02-23 16:59:39 -05:00
|
|
|
|
1999-07-25 21:25:21 -04:00
|
|
|
LIB_DEPENDS= png.1.3:${PORTSDIR}/graphics/png \
|
|
|
|
gd.1.6:${PORTSDIR}/graphics/gd
|
1999-02-23 16:59:39 -05:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1999-07-25 21:25:21 -04:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
1999-02-23 16:59:39 -05:00
|
|
|
|
|
|
|
do-install:
|
1999-07-25 21:25:21 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/mrtg
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/mrtg
|
|
|
|
@${MKDIR} ${PREFIX}/lib/mrtg
|
|
|
|
|
|
|
|
@for file in ${WRKSRC}/doc/*; do \
|
1999-03-31 18:25:50 -05:00
|
|
|
${INSTALL_DATA} $$file ${PREFIX}/share/doc/mrtg; \
|
1999-02-23 16:59:39 -05:00
|
|
|
done
|
1999-07-25 21:25:21 -04:00
|
|
|
@for file in ${WRKSRC}/images/*.gif; do \
|
1999-03-31 18:25:50 -05:00
|
|
|
${INSTALL_DATA} $$file ${PREFIX}/share/mrtg; \
|
1999-02-23 16:59:39 -05:00
|
|
|
done
|
1999-07-25 21:25:21 -04:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/run/rateup ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/cfgmaker ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/cfgmaker_ip ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/indexmaker ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/mrtg ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/locales_mrtg.pm ${PREFIX}/lib/mrtg
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/BER.pm ${PREFIX}/lib/mrtg
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/SNMP_Session.pm ${PREFIX}/lib/mrtg
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/run/SNMP_util.pm ${PREFIX}/lib/mrtg
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/sample-mrtg.cfg ${PREFIX}/lib/mrtg/mrtg.cfg.sample
|
1999-04-27 15:25:27 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
1999-02-23 16:59:39 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|