openbsd-ports/net/mrtg/Makefile

52 lines
1.8 KiB
Makefile
Raw Normal View History

1999-04-22 11:53:26 -04:00
# $OpenBSD: Makefile,v 1.8 1999/04/22 15:53:26 brad Exp $
1999-02-23 16:59:39 -05:00
1999-04-22 11:53:26 -04:00
DISTNAME= mrtg-2.7.3b
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
HOMEPAGE= http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
BUILD_DEPENDS= ${PREFIX}/lib/libgd.a:${PORTSDIR}/graphics/gd
1999-03-31 18:25:50 -05:00
USE_PERL5= yes
1999-02-23 16:59:39 -05:00
GNU_CONFIGURE= yes
1999-03-31 18:25:50 -05:00
CONFIGURE_ARGS= --with-gd-lib=${PREFIX}/lib --with-gd-inc=${PREFIX}/include/gd
1999-02-23 16:59:39 -05:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/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
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-03-31 18:25:50 -05:00
${INSTALL_PROGRAM} ${WRKSRC}/run/rateup ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/run/cfgmaker ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/run/indexmaker ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/run/mrtg ${PREFIX}/bin
${MKDIR} ${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
cp ${PREFIX}/lib/mrtg/BER.pm /usr/lib/perl5/site_perl
cp ${PREFIX}/lib/mrtg/SNMP_Session.pm /usr/lib/perl5/site_perl
cp ${PREFIX}/lib/mrtg/SNMP_util.pm /usr/lib/perl5/site_perl
${INSTALL_DATA} ${WRKSRC}/doc/sample-mrtg.cfg ${PREFIX}/lib/mrtg/mrtg.cfg.sample
@${ECHO} ""
@${ECHO} "*** The latest sample config file"
1999-03-31 18:39:55 -05:00
@${ECHO} "*** can be found in ${PREFIX}/lib/mrtg"
1999-03-31 18:25:50 -05:00
@if [ -f /etc/mrtg.cfg ]; then \
${ECHO} "*** Your /etc/mrtg.cfg has NOT been changed"; \
else \
cp ${PREFIX}/lib/mrtg/mrtg.cfg.sample /etc/mrtg.cfg; \
${ECHO} "*** mrtg.cfg has been copied into /etc"; \
fi
@${ECHO} ""
1999-02-23 16:59:39 -05:00
.include <bsd.port.mk>