mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Extensions of generic web-based frontend for the popular MRTG
systems monitoring software. WWW: http://www.steveshipway.org/software/ PR: ports/106714 Submitted by: Xavier Beaudouin <kiwi at oav.net>
This commit is contained in:
parent
0c78ae2751
commit
a07ce68c37
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179736
@ -183,6 +183,7 @@
|
||||
SUBDIR += remarp
|
||||
SUBDIR += rotorouter
|
||||
SUBDIR += routers2
|
||||
SUBDIR += routers2-extensions
|
||||
SUBDIR += rubygem-snmp
|
||||
SUBDIR += satellite
|
||||
SUBDIR += scdp
|
||||
|
46
net-mgmt/routers2-extensions/Makefile
Normal file
46
net-mgmt/routers2-extensions/Makefile
Normal file
@ -0,0 +1,46 @@
|
||||
# New ports collection makefile for: routers2
|
||||
# Date created: December 14th 2006
|
||||
# Whom: Xavier Beaudouin <kiwi@oav.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= routers2-extensions
|
||||
PORTVERSION= 2.17
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://www.steveshipway.org/software/rrd/ \
|
||||
ftp://ftp.oav.oav.net/routers2/
|
||||
DISTNAME= routers2-v${PORTVERSION}a
|
||||
|
||||
MAINTAINER= kiwi@oav.net
|
||||
COMMENT= Extensions of routers2 frontend
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/www/routers2/routers2.cgi:${PORTSDIR}/net-mgmt/routers2 \
|
||||
${SITE_PERL}/Net/Telnet/Cisco.pm:${PORTSDIR}/net-mgmt/p5-Telnet-Cisco \
|
||||
${LOCALBASE}/bin/htmldoc:${PORTSDIR}/textproc/htmldoc
|
||||
|
||||
WRKSRC= ${WRKDIR}/routers2-v${PORTVERSION}/extensions
|
||||
|
||||
USE_PERL5= YES
|
||||
|
||||
NO_BUILD= YES
|
||||
|
||||
post-patch:
|
||||
for file in *.cgi ; do \
|
||||
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/$$file; \
|
||||
done
|
||||
|
||||
do-install:
|
||||
${MKDIR} -m 755 ${PREFIX}/www/routers2/extensions
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} -m 755 ${DOCSDIR}
|
||||
for file in README *.txt extension.cgi.pl; do \
|
||||
${INSTALL_DATA} ${WRKSRC}/$$file ${DOCSDIR}; \
|
||||
done
|
||||
.endif
|
||||
for file in *.cgi; do \
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/$$file ${PREFIX}/www/routers2/extensions; \
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
3
net-mgmt/routers2-extensions/distinfo
Normal file
3
net-mgmt/routers2-extensions/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (routers2-v2.17a.tar.gz) = 57e1542bca50940aa4b3908cc7ed5551
|
||||
SHA256 (routers2-v2.17a.tar.gz) = a8aa61db9969ebae2b56fe92184d045f03780a8c9412f99f48ecfed879d9703e
|
||||
SIZE (routers2-v2.17a.tar.gz) = 383280
|
8
net-mgmt/routers2-extensions/files/patch-ifrouter.cgi
Normal file
8
net-mgmt/routers2-extensions/files/patch-ifrouter.cgi
Normal file
@ -0,0 +1,8 @@
|
||||
--- ifrouter.cgi.orig Wed Nov 16 03:06:47 2005
|
||||
+++ ifrouter.cgi Thu Dec 14 00:38:58 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!e:\perl\bin\perl
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
#
|
||||
# Brian Dietz
|
||||
# brian.dietz@caremark.com
|
17
net-mgmt/routers2-extensions/files/patch-ifstatus.cgi
Normal file
17
net-mgmt/routers2-extensions/files/patch-ifstatus.cgi
Normal file
@ -0,0 +1,17 @@
|
||||
--- ifstatus.cgi.orig Thu Dec 14 00:39:56 2006
|
||||
+++ ifstatus.cgi Thu Dec 14 00:41:44 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
# vim:ts=4
|
||||
# ifstatus.pl v1.0
|
||||
#
|
||||
@@ -27,7 +27,7 @@
|
||||
my($VERSION) = "v1.0";
|
||||
|
||||
# Variables
|
||||
-my( $conffile ) = '/u01/etc/routers2.conf';
|
||||
+my( $conffile ) = '%%LOCALBASE%%/etc/routers2.conf';
|
||||
|
||||
my( $device, $community, $targetwindow, $target, $file, $backurl, $ifno )
|
||||
= ( "","","graph","","","","");
|
8
net-mgmt/routers2-extensions/files/patch-ifswitch.cgi
Normal file
8
net-mgmt/routers2-extensions/files/patch-ifswitch.cgi
Normal file
@ -0,0 +1,8 @@
|
||||
--- ifswitch.cgi.orig Thu Dec 14 00:43:22 2006
|
||||
+++ ifswitch.cgi Thu Dec 14 00:44:22 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!e:\perl\bin\perl
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
#
|
||||
# Brian Dietz
|
||||
# brian.dietz@caremark.com
|
24
net-mgmt/routers2-extensions/files/patch-pdfreport.cgi
Normal file
24
net-mgmt/routers2-extensions/files/patch-pdfreport.cgi
Normal file
@ -0,0 +1,24 @@
|
||||
--- pdfreport.cgi.orig Thu Dec 14 00:46:13 2006
|
||||
+++ pdfreport.cgi Thu Dec 14 00:48:43 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl -w
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
# vim:ts=4
|
||||
# pdfreport.cgi
|
||||
#
|
||||
@@ -13,11 +13,11 @@
|
||||
require 5.006;
|
||||
|
||||
# Configure here
|
||||
-my( $HTMLDOC ) = "/usr/bin/htmldoc"; # location of htmldoc executable
|
||||
-my( $ROUTERSCGI ) = "/u01/www/cgi-bin/routers2.cgi"; # location of routers2.cgi
|
||||
+my( $HTMLDOC ) = "%%LOCALBASE%%/bin/htmldoc"; # location of htmldoc executable
|
||||
+my( $ROUTERSCGI ) = "%%LOCALBASE%%/www/routers2/routers2.cgi"; # location of routers2.cgi
|
||||
my( $WORKDIR ) = "/tmp"; # temporary work directory
|
||||
-my( $WEBROOT ) = "/u01/www/html"; # docroot for your web server
|
||||
-my( $CONFPATH ) = "/u01/mrtg/conf"; # default path for cfg files
|
||||
+my( $WEBROOT ) = "%%LOCALBASE%%/www/data"; # docroot for your web server
|
||||
+my( $CONFPATH ) = "%%LOCALBASE%%/etc@/mrtg"; # default path for cfg files
|
||||
my( $VERSION ) = "1.3";
|
||||
|
||||
# Variables
|
17
net-mgmt/routers2-extensions/files/patch-routingtable.cgi
Normal file
17
net-mgmt/routers2-extensions/files/patch-routingtable.cgi
Normal file
@ -0,0 +1,17 @@
|
||||
--- routingtable.cgi.orig Thu Dec 14 00:56:50 2006
|
||||
+++ routingtable.cgi Thu Dec 14 00:57:29 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/local/bin/perl -w
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
# CHANGE ABOVE PATH TO MATCH YOUR PERL LOCATION! You may remove the -w
|
||||
##############################################################################.
|
||||
# routingtable.cgi : Version v1.5
|
||||
@@ -21,7 +21,7 @@
|
||||
##############################################################################.
|
||||
use strict;
|
||||
use CGI; # for CGI
|
||||
-#use Net::SNMP; # ActivePerl users may need this uncommented
|
||||
+use Net::SNMP; # ActivePerl users may need this uncommented
|
||||
##############################################################################.
|
||||
my ($VERSION) = "v1.5";
|
||||
my ($APPURL ) = "http://www.steveshipway.org/software/";
|
17
net-mgmt/routers2-extensions/files/patch-showcfg.cgi
Normal file
17
net-mgmt/routers2-extensions/files/patch-showcfg.cgi
Normal file
@ -0,0 +1,17 @@
|
||||
--- showcfg.cgi.orig Thu Dec 14 00:58:09 2006
|
||||
+++ showcfg.cgi Thu Dec 14 00:58:54 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
#
|
||||
# showcfg.cgi
|
||||
#
|
||||
@@ -11,7 +11,7 @@
|
||||
use CGI;
|
||||
|
||||
# Variables
|
||||
-my( $confpath ) = "/home/stevesh/public_html/mrtg/conf/";
|
||||
+my( $confpath ) = "%%LOCALBASE%%/etc/mrtg/";
|
||||
my( $device, $community, $targetwindow, $target, $file, $backurl )
|
||||
= ( "","public","graph","","","");
|
||||
my( $conffile );
|
17
net-mgmt/routers2-extensions/files/patch-tonagios.cgi
Normal file
17
net-mgmt/routers2-extensions/files/patch-tonagios.cgi
Normal file
@ -0,0 +1,17 @@
|
||||
--- tonagios.cgi.orig Thu Dec 14 01:00:19 2006
|
||||
+++ tonagios.cgi Thu Dec 14 01:00:58 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
#
|
||||
# tonagios.cgi
|
||||
#
|
||||
@@ -8,7 +8,7 @@
|
||||
use CGI;
|
||||
|
||||
# configure here: Nagios status.cgi URL (or use extinfo.cgi instead)
|
||||
-my( $NAGIOS ) = "http://nagios.auckland.ac.nz/nagios/cgi-bin/status.cgi";
|
||||
+my( $NAGIOS ) = "http://changeme/nagios/cgi-bin/status.cgi";
|
||||
|
||||
# Variables
|
||||
my( $device, $community, $targetwindow, $target, $file, $backurl )
|
18
net-mgmt/routers2-extensions/files/patch-trend.cgi
Normal file
18
net-mgmt/routers2-extensions/files/patch-trend.cgi
Normal file
@ -0,0 +1,18 @@
|
||||
--- trend.cgi.orig Thu Dec 14 01:07:06 2006
|
||||
+++ trend.cgi Thu Dec 14 01:08:21 2006
|
||||
@@ -1,5 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
-##!/usr/bin/speedy
|
||||
+#!%%LOCALBASE%%/bin/speedy -- -M20 -t3600 -gnone -r500
|
||||
# vim:ts=4
|
||||
# trend.cgi
|
||||
# Generate a trending graph, based on yearly data, for the specified
|
||||
@@ -67,7 +66,7 @@
|
||||
my( $BASE ) = 0; # 0=current, 1=average
|
||||
my( $device, $community, $targetwindow, $target, $file, $backurl )
|
||||
= ( "","public","graph","","","");
|
||||
-my( $conffile ) = "/u01/etc/routers2.conf"; # overridden by passed parameters
|
||||
+my( $conffile ) = "%%LOCALBASE%%/etc/routers2.conf"; # overridden by passed parameters
|
||||
my( $routersurl ) = '';
|
||||
my( $q ) = new CGI;
|
||||
my( %headeropts ) = ();
|
4
net-mgmt/routers2-extensions/pkg-descr
Normal file
4
net-mgmt/routers2-extensions/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Extensions of generic web-based frontend for the popular MRTG
|
||||
systems monitoring software.
|
||||
|
||||
WWW: http://www.steveshipway.org/software/
|
21
net-mgmt/routers2-extensions/pkg-plist
Normal file
21
net-mgmt/routers2-extensions/pkg-plist
Normal file
@ -0,0 +1,21 @@
|
||||
www/routers2/extensions/ifrouter.cgi
|
||||
www/routers2/extensions/ifstatus.cgi
|
||||
www/routers2/extensions/ifswitch.cgi
|
||||
www/routers2/extensions/pdfreport.cgi
|
||||
www/routers2/extensions/routingtable.cgi
|
||||
www/routers2/extensions/showcfg.cgi
|
||||
www/routers2/extensions/tonagios.cgi
|
||||
www/routers2/extensions/trend.cgi
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/extension.cgi.pl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/extension.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ifrouter.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ifstatus.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ifswitch.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/pdfreport.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/routingtable.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/showcfg.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/tonagios.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/trend.txt
|
||||
@dirrm www/routers2/extensions
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user