2013-09-21 00:24:43 +02:00
|
|
|
# Created by: Xavier Beaudouin <kiwi@oav.net>
|
2006-12-12 20:31:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= routers2
|
2008-11-19 00:25:18 +01:00
|
|
|
PORTVERSION= 2.19
|
2012-05-07 20:52:09 +02:00
|
|
|
PORTREVISION= 5
|
2006-12-12 20:31:12 +01:00
|
|
|
CATEGORIES= net-mgmt
|
|
|
|
MASTER_SITES= http://www.steveshipway.org/software/rrd/ \
|
|
|
|
ftp://ftp.oav.oav.net/routers2/
|
2008-07-11 01:33:43 +02:00
|
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION}
|
2006-12-12 20:31:12 +01:00
|
|
|
|
|
|
|
MAINTAINER= kiwi@oav.net
|
|
|
|
COMMENT= Frontend for the MRTG system monitoring software
|
|
|
|
|
2012-06-30 14:42:52 +02:00
|
|
|
BUILD_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD
|
|
|
|
RUN_DEPENDS= p5-Convert-ASN1>=0:${PORTSDIR}/converters/p5-Convert-ASN1 \
|
|
|
|
p5-Crypt-UnixCrypt>=0:${PORTSDIR}/security/p5-Crypt-UnixCrypt \
|
|
|
|
p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
|
|
|
|
p5-Crypt-UnixCrypt>=0:${PORTSDIR}/security/p5-Crypt-UnixCrypt \
|
|
|
|
p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP \
|
|
|
|
p5-SNMP_Session>=0:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
|
|
|
|
p5-CGI-SpeedyCGI>=0:${PORTSDIR}/www/p5-CGI-SpeedyCGI \
|
2006-12-14 23:19:00 +01:00
|
|
|
${LOCALBASE}/bin/mrtg:${PORTSDIR}/net-mgmt/mrtg
|
2006-12-12 20:31:12 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION}
|
2013-09-04 05:27:37 +02:00
|
|
|
USES= perl5
|
2006-12-12 20:31:12 +01:00
|
|
|
NO_BUILD= YES
|
2014-07-29 03:37:42 +02:00
|
|
|
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2006-12-12 20:31:12 +01:00
|
|
|
|
|
|
|
post-patch:
|
2014-07-29 03:37:42 +02:00
|
|
|
@${RM} ${WRKSRC}/extras/targetnames/BER.pm \
|
|
|
|
${WRKSRC}/extras/targetnames/SNMP_*.pm
|
|
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/routers2.cgi.pl ${WRKSRC}/routers2.conf
|
2006-12-12 20:31:12 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-07-29 03:37:42 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/www/routers2 \
|
|
|
|
${STAGEDIR}${PREFIX}/www/routers2/rrdicons \
|
|
|
|
${STAGEDIR}${PREFIX}/www/routers2/graphs \
|
|
|
|
${STAGEDIR}/var/db/rrdtool
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/routers2.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/routers2.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rrdicons/* \
|
|
|
|
${STAGEDIR}${PREFIX}/www/routers2/rrdicons
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/routers2.cgi.pl \
|
|
|
|
${STAGEDIR}${PREFIX}/www/routers2/routers2.cgi
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${INSTALL_DATA} CHANGES README doc/* ${STAGEDIR}${DOCSDIR}
|
2006-12-12 20:31:12 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
#post-install:
|
|
|
|
#.if !defined(BATCH)
|
|
|
|
# @${ECHO} ""
|
|
|
|
# @${ECHO} "############################################################################"
|
|
|
|
# @${ECHO} "# Please create a MRTG config file in ${PREFIX}/etc/mrtg #"
|
|
|
|
# @${ECHO} "# A configuration file can be automatically generated with cfgmaker #"
|
|
|
|
# @${ECHO} "# A sample configuration file is installed as mrtg.cfg.sample #"
|
|
|
|
# @${ECHO} "# #"
|
|
|
|
# @${ECHO} "# To enable MRTG in daemon mode, put the following to your /etc/rc.conf or #"
|
|
|
|
# @${ECHO} "# /etc/rc.conf.local file: #"
|
|
|
|
# @${ECHO} "# mrtg_daemon_enable=\"YES\" #"
|
|
|
|
# @${ECHO} "############################################################################"
|
|
|
|
#.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|