Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2002 15:34:27 +0100 (BST)
From:      Janos Mohacsi <janos.mohacsi@dante.org.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/38920: New port: ASpath-tree a IPv6 route stability and correctness monitoring tool
Message-ID:  <200206051434.g55EYRIa062275@budapest.dante.org.uk>

next in thread | raw e-mail | index | archive | help

>Number:         38920
>Category:       ports
>Synopsis:       New port: ASpath-tree a IPv6 route stability and correctness monitoring tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 05 07:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Janos Mohacsi
>Release:        FreeBSD 4.6-RC i386
>Organization:
DANTE
>Environment:
System: FreeBSD budapest.dante.org.uk 4.6-RC FreeBSD 4.6-RC #2: Mon Jun 3 09:47:22 BST 2002 janos@budapest.dante.org.uk:/usr/src/sys/compile/BUDAPEST i386

>Description:

New port: Aspath-tree version 3.3. A IPv6 route stability and correctness 
monitoring tool. It is working on Cisco routers.

>How-To-Repeat:

Apply this shar.

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	aspathtree
#	aspathtree/pkg-plist
#	aspathtree/pkg-descr
#	aspathtree/pkg-comment
#	aspathtree/distinfo
#	aspathtree/Makefile
#	aspathtree/files
#	aspathtree/files/patch-update-rtree
#	aspathtree/files/patch-readme.txt
#	aspathtree/files/patch-etc::ASpath-tree.config
#	aspathtree/files/patch-lib::rsh-cisco.pl
#	aspathtree/pkg-message
#	aspathtree/scripts
#	aspathtree/scripts/configure
#
echo c - aspathtree
mkdir -p aspathtree > /dev/null 2>&1
echo x - aspathtree/pkg-plist
sed 's/^X//' >aspathtree/pkg-plist << 'END-of-aspathtree/pkg-plist'
Xaspathtree/etc/ASpath-tree.config.orig
Xaspathtree/etc/ASpath-tree.config.bak
Xaspathtree/etc/ASpath-tree.config.dist
Xaspathtree/htdocs/icons/vertical.gif
Xaspathtree/htdocs/icons/empty-point.gif
Xaspathtree/htdocs/icons/line-horiz.gif
Xaspathtree/htdocs/icons/line-vert.gif
Xaspathtree/htdocs/icons/r-green.gif
Xaspathtree/htdocs/icons/r-grey.gif
Xaspathtree/htdocs/icons/t-horiz.gif
Xaspathtree/htdocs/icons/t-vert.gif
Xaspathtree/htdocs/icons/corn-right.gif
Xaspathtree/lib/rsh-cisco.pl.orig
Xaspathtree/lib/as2site-conversion.pl
Xaspathtree/lib/bgp-tree-changes.pl
Xaspathtree/lib/bgp-tree.pl
Xaspathtree/lib/create-homepage.pl
Xaspathtree/lib/elaborate-aspaths.pl
Xaspathtree/lib/history.pl
Xaspathtree/lib/ipv6prefix.pl
Xaspathtree/lib/odd-routes.pl
Xaspathtree/lib/route-stability.pl
Xaspathtree/lib/rsh-cisco.pl
Xaspathtree/lib/utility.pl
Xaspathtree/lib/ASmain.pl
Xaspathtree/data/6bone.db
Xaspathtree/data/IANA-assigned.table
Xaspathtree/tools/update_ASpath-tree-history.pl
Xaspathtree/DISCLAIMER
Xaspathtree/update-rtree.bak
Xaspathtree/update-rtree
Xaspathtree/readme.txt.orig
Xaspathtree/readme.txt
Xaspathtree/changes.txt
Xaspathtree/update-rtree.orig
X@dirrm aspathtree/etc
X@dirrm aspathtree/htdocs/changes
X@dirrm aspathtree/htdocs/details
X@dirrm aspathtree/htdocs/icons
X@dirrm aspathtree/htdocs/trash
X@dirrm aspathtree/htdocs
X@dirrm aspathtree/history/bbtree
X@dirrm aspathtree/history/completetree
X@dirrm aspathtree/history/othertree
X@dirrm aspathtree/history/other
X@dirrm aspathtree/history/ptlas
X@dirrm aspathtree/history
X@dirrm aspathtree/lib
X@dirrm aspathtree/data
X@dirrm aspathtree/tools
X@dirrm aspathtree/log
X@dirrm aspathtree
END-of-aspathtree/pkg-plist
echo x - aspathtree/pkg-descr
sed 's/^X//' >aspathtree/pkg-descr << 'END-of-aspathtree/pkg-descr'
XASpath-tree program
X============================
X
XASpath-tree is a tool designed to be used by an IPv6 site involved
Xin the experimentation of the BGP4+ protocol inside the 6Bone network.
XIt automatically generates a set of html pages providing a graphical
Xview of the routing paths towards the other 6Bone sites participating
Xto the BGP4+ cloud. Additionally it provides pages for the detection
Xof BGP4+ routing anomalies (invalid prefixes and unaggregated prefixes
Xand BGP4+ routing stability analisys. Current version of ASpath-tree
X(version 3.3) also includes the following features:
X
X- other IANA assigned prefixes (200x) routing tree
X- other IANA assigned prefixes (200x) stability analisys
X
XWWW: http://carmen.ipv6.cselt.it/ipv6/tools/ASpath-tree/index.html
END-of-aspathtree/pkg-descr
echo x - aspathtree/pkg-comment
sed 's/^X//' >aspathtree/pkg-comment << 'END-of-aspathtree/pkg-comment'
XChecks IPv6 routes' stability and correctness on 6Bone
END-of-aspathtree/pkg-comment
echo x - aspathtree/distinfo
sed 's/^X//' >aspathtree/distinfo << 'END-of-aspathtree/distinfo'
XMD5 (ASpath-tree-v3.3.tar.gz) = d2312c857d1f554477e3beee7b942465
END-of-aspathtree/distinfo
echo x - aspathtree/Makefile
sed 's/^X//' >aspathtree/Makefile << 'END-of-aspathtree/Makefile'
X# New ports collection makefile for:    aspathtree
X# Date created:         06.05.2002
X# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
X#
X# $FreeBSD$
X
XPORTNAME=	aspathtree
XPORTVERSION=    3.3
XCATEGORIES=	ipv6 net
XMASTER_SITES=	#http://carmen.ipv6.cselt.it/ipv6/tools/ASpath-tree/index.html
XDISTNAME=	ASpath-tree-v${PORTVERSION}
X
XMAINTAINER=	Janos.Mohacsi@bsd.hu
X
XRUN_DEPENDS=    ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/Telnet.pm:${PORTSDIR}/net/p5-Net-Telnet
X
XWRKSRC=			${WRKDIR}/ASpath-tree-v3_3/
XRESTRICTED=		"not redistributable, license agreement required"
XNO_CDROM=	${RESTRICTED}
XNO_PACKAGE=	${RESTRICTED}
XNO_BUILD=	yes
XUSE_PERL5=      yes
XSCRIPTS_ENV+=   PERL5=${PERL5}
XPKGMESSAGE=     ${WRKDIR}/pkg-message
X
Xdo-fetch:
X	@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
X	${ECHO} '======================================================='; \
X	${ECHO} 'You need to read the license and disclaimer on '; \
X	${ECHO} 'http://carmen.ipv6.tilab.com/cgi-bin/download.pl?pkg=ASpath-tree'; \
X	${ECHO} 'and fetch on your own.'; \
X	${ECHO} 'Once ${DISTFILES} has been downloaded, move it to '; \
X	${ECHO} '${DISTDIR} and then restart this build '; \
X	${ECHO} '======================================================='; \
X	fi
X
Xdo-install:
X	@if [ ! -d ${PREFIX}/aspathtree ]; then \
X		${MKDIR} ${PREFIX}/aspathtree ; fi
X	${CP} -R ${WRKSRC}/* ${PREFIX}/aspathtree/
X	${CHMOD} +x ${PREFIX}/aspathtree/update-rtree
X
Xpost-install:
X	@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" pkg-message >${PKGMESSAGE}
X.if !defined(BATCH)
X	@${ECHO}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO}
X.endif
X
X.include <bsd.port.mk>
END-of-aspathtree/Makefile
echo c - aspathtree/files
mkdir -p aspathtree/files > /dev/null 2>&1
echo x - aspathtree/files/patch-update-rtree
sed 's/^X//' >aspathtree/files/patch-update-rtree << 'END-of-aspathtree/files/patch-update-rtree'
X*** update-rtree.orig	Fri Apr  5 15:19:45 2002
X--- update-rtree	Wed Jun  5 13:55:25 2002
X***************
X*** 1,10 ****
X! #!/usr/local/bin/perl
X  
X  # Configuration File
X! my $CONFIGFILE = "/etc/ASpath-tree.config";
X  
X  # Global variables
X! use vars qw ($HOMEDIR $RSHDIR $ROUTERADDR $ROUTERUSER $CONTACTNAME $CONTACTMAIL $SITENAME $SITEPICTURE $HTMLDIR
X               $WHOISLINK $QUIET $DEBUG);
X  use vars qw ($DATADIR $ROOTPICTURE $LIB $ICONS $WARNINGTIME $HISTORYPERIOD $FLAG_COLLECT $LONGDATE $CURRENTTIME $LASTRUN);
X  use vars qw ($SIXBONEDB $SIXBONEDBTABLE $PTLA_FILE $HISTORYFILE $LASTRUNFILE $OLDASPATHSFILE $OLDDATEFILE $OLDBBASPATHSFILE
X--- 1,10 ----
X! #!%%PATHPERLBIN%%
X  
X  # Configuration File
X! my $CONFIGFILE = "%%PREFIX%%/etc/ASpath-tree.config";
X  
X  # Global variables
X! use vars qw ($HOMEDIR $RSHDIR $ROUTERADDR $ROUTERUSER $ROUTERUSERPASS $CONTACTNAME $CONTACTMAIL $SITENAME $SITEPICTURE $HTMLDIR
X               $WHOISLINK $QUIET $DEBUG);
X  use vars qw ($DATADIR $ROOTPICTURE $LIB $ICONS $WARNINGTIME $HISTORYPERIOD $FLAG_COLLECT $LONGDATE $CURRENTTIME $LASTRUN);
X  use vars qw ($SIXBONEDB $SIXBONEDBTABLE $PTLA_FILE $HISTORYFILE $LASTRUNFILE $OLDASPATHSFILE $OLDDATEFILE $OLDBBASPATHSFILE
X***************
X*** 42,47 ****
X--- 42,48 ----
X  		if ($line =~ /^\s*RSHDIR\s*=\s*(.*)/)        {$RSHDIR = $1}
X  		if ($line =~ /^\s*ROUTERADDR\s*=\s*(.*)/)    {$ROUTERADDR = $1}
X  		if ($line =~ /^\s*ROUTERUSER\s*=\s*(.*)/)    {$ROUTERUSER = $1}
X+ 		if ($line =~ /^\s*ROUTERUSERPASS\s*=\s*(.*)/)    {$ROUTERUSERPASS = $1}
X  		if ($line =~ /^\s*CONTACTNAME\s*=\s*(.*)/)   {$CONTACTNAME = $1}
X  		if ($line =~ /^\s*CONTACTMAIL\s*=\s*(.*)/)   {$CONTACTMAIL = $1}
X  		if ($line =~ /^\s*SITENAME\s*=\s*(.*)/)      {$SITENAME = $1}
X***************
X*** 62,68 ****
X  	die "ERROR in configuration file: parameter HOMEDIR not set!\n"    unless ($HOMEDIR);
X  	# enabling log to file if required
X  	$LOGDIR = "$HOMEDIR/log";
X! 	unless (-e "$LOGDIR") {mkdir("$LOGDIR", 0777)};
X  	if ($DEBUG) {
X  		open(LOGFILE,"> $LOGDIR/runlog.txt");
X  		print LOGFILE "ASpath-tree DEBUG log file\n\n";
X--- 63,69 ----
X  	die "ERROR in configuration file: parameter HOMEDIR not set!\n"    unless ($HOMEDIR);
X  	# enabling log to file if required
X  	$LOGDIR = "$HOMEDIR/log";
X! 	unless (-e "$LOGDIR") {mkdir("$LOGDIR", 0775)};
X  	if ($DEBUG) {
X  		open(LOGFILE,"> $LOGDIR/runlog.txt");
X  		print LOGFILE "ASpath-tree DEBUG log file\n\n";
X***************
X*** 167,193 ****
X  
X  # Creating directories if required...
X  
X! 	unless (-e "$PTLASHISTORYDIR") {mkdir("$PTLASHISTORYDIR", 0777); &log_it("$PTLASHISTORYDIR created.")};
X! 	unless (-e "$OTHERHISTORYDIR") {mkdir("$OTHERHISTORYDIR", 0777); &log_it("$OTHERHISTORYDIR created.")};
X! 	unless (-e "$HOMEDIR/history/bbtree") {mkdir("$HOMEDIR/history/bbtree", 0777); &log_it("$HOMEDIR/history/bbtree created.")};
X! 	unless (-e "$HOMEDIR/history/completetree") {mkdir("$HOMEDIR/history/completetree", 0777); &log_it("$HOMEDIR/history/completetree created.")};
X! 	unless (-e "$HOMEDIR/history/othertree") {mkdir("$HOMEDIR/history/othertree", 0777); &log_it("$HOMEDIR/history/othertree created.")};
X! 	unless (-e "$DETAILDIR") {mkdir("$DETAILDIR", 0777); &log_it("$DETAILDIR created.")};
X! 	unless (-e "$DETAILDIRBB") {mkdir("$DETAILDIRBB", 0777); &log_it("$DETAILDIRBB created.")};
X! 	unless (-e "$DETAILDIRIANA") {mkdir("$DETAILDIRIANA", 0777); &log_it("$DETAILDIRIANA created.")};
X! 	unless (-e "$HISTORYHTMLDIR") {mkdir("$HISTORYHTMLDIR", 0777); &log_it("$HISTORYHTMLDIR created.")};
X! 	unless (-e "$CHANGESDIR") {mkdir("$CHANGESDIR", 0777); &log_it("$CHANGESDIR created.")}
X! 	unless (-e "$HTMLDIR_LOCAL/trash") {mkdir("$HTMLDIR_LOCAL/trash", 0777); &log_it("$HTMLDIR_LOCAL/trash created.")}
X  	else {system "rm -rf $HTMLDIR_LOCAL/trash/*"; &log_it("Trash empty")}
X  	if (-d $HTMLDIR) {
X! 		unless (-e "$HTMLDIR/details") {mkdir("$HTMLDIR/details", 0777); &log_it("$HTMLDIR/details created.")}
X! 		unless (-e "$HTMLDIR/details/complete") {mkdir("$HTMLDIR/details/complete", 0777); &log_it("$HTMLDIR/details/complete created.")}
X! 		unless (-e "$HTMLDIR/details/backbone") {mkdir("$HTMLDIR/details/backbone", 0777); &log_it("$HTMLDIR/details/backbone created.")}
X! 		unless (-e "$HTMLDIR/details/otherIANA") {mkdir("$HTMLDIR/details/otherIANA", 0777); &log_it("$HTMLDIR/details/otherIANA created.")}
X! 		unless (-e "$HTMLDIR/history") {mkdir("$HTMLDIR/history", 0777); &log_it("$HTMLDIR/history created.")}
X! 		unless (-e "$HTMLDIR/changes") {mkdir("$HTMLDIR/changes", 0777); &log_it("$HTMLDIR/changes created.")}
X  		unless (-e "$HTMLDIR/icons") {
X! 			mkdir("$HTMLDIR/icons", 0777);
X  			system("cp $ICONSDIR/* $HTMLDIR/icons");
X  			&log_it("$HTMLDIR/icons created and template icons copied.");
X  		}
X--- 168,194 ----
X  
X  # Creating directories if required...
X  
X! 	unless (-e "$PTLASHISTORYDIR") {mkdir("$PTLASHISTORYDIR", 0775); &log_it("$PTLASHISTORYDIR created.")};
X! 	unless (-e "$OTHERHISTORYDIR") {mkdir("$OTHERHISTORYDIR", 0775); &log_it("$OTHERHISTORYDIR created.")};
X! 	unless (-e "$HOMEDIR/history/bbtree") {mkdir("$HOMEDIR/history/bbtree", 0775); &log_it("$HOMEDIR/history/bbtree created.")};
X! 	unless (-e "$HOMEDIR/history/completetree") {mkdir("$HOMEDIR/history/completetree", 0775); &log_it("$HOMEDIR/history/completetree created.")};
X! 	unless (-e "$HOMEDIR/history/othertree") {mkdir("$HOMEDIR/history/othertree", 0775); &log_it("$HOMEDIR/history/othertree created.")};
X! 	unless (-e "$DETAILDIR") {mkdir("$DETAILDIR", 0775); &log_it("$DETAILDIR created.")};
X! 	unless (-e "$DETAILDIRBB") {mkdir("$DETAILDIRBB", 0775); &log_it("$DETAILDIRBB created.")};
X! 	unless (-e "$DETAILDIRIANA") {mkdir("$DETAILDIRIANA", 0775); &log_it("$DETAILDIRIANA created.")};
X! 	unless (-e "$HISTORYHTMLDIR") {mkdir("$HISTORYHTMLDIR", 0775); &log_it("$HISTORYHTMLDIR created.")};
X! 	unless (-e "$CHANGESDIR") {mkdir("$CHANGESDIR", 0775); &log_it("$CHANGESDIR created.")}
X! 	unless (-e "$HTMLDIR_LOCAL/trash") {mkdir("$HTMLDIR_LOCAL/trash", 0775); &log_it("$HTMLDIR_LOCAL/trash created.")}
X  	else {system "rm -rf $HTMLDIR_LOCAL/trash/*"; &log_it("Trash empty")}
X  	if (-d $HTMLDIR) {
X! 		unless (-e "$HTMLDIR/details") {mkdir("$HTMLDIR/details", 0775); &log_it("$HTMLDIR/details created.")}
X! 		unless (-e "$HTMLDIR/details/complete") {mkdir("$HTMLDIR/details/complete", 0775); &log_it("$HTMLDIR/details/complete created.")}
X! 		unless (-e "$HTMLDIR/details/backbone") {mkdir("$HTMLDIR/details/backbone", 0775); &log_it("$HTMLDIR/details/backbone created.")}
X! 		unless (-e "$HTMLDIR/details/otherIANA") {mkdir("$HTMLDIR/details/otherIANA", 0775); &log_it("$HTMLDIR/details/otherIANA created.")}
X! 		unless (-e "$HTMLDIR/history") {mkdir("$HTMLDIR/history", 0775); &log_it("$HTMLDIR/history created.")}
X! 		unless (-e "$HTMLDIR/changes") {mkdir("$HTMLDIR/changes", 0775); &log_it("$HTMLDIR/changes created.")}
X  		unless (-e "$HTMLDIR/icons") {
X! 			mkdir("$HTMLDIR/icons", 0775);
X  			system("cp $ICONSDIR/* $HTMLDIR/icons");
X  			&log_it("$HTMLDIR/icons created and template icons copied.");
X  		}
END-of-aspathtree/files/patch-update-rtree
echo x - aspathtree/files/patch-readme.txt
sed 's/^X//' >aspathtree/files/patch-readme.txt << 'END-of-aspathtree/files/patch-readme.txt'
X*** readme.txt.orig	Wed Jun  5 10:46:41 2002
X--- readme.txt	Wed Jun  5 11:02:27 2002
X***************
X*** 90,104 ****
X  ASpath-tree/DISCLAIMER
X  
X  The main script is "update-rtree"; to be executed it must be
X! customized and the cisco router must be configured to accept rsh commands.
X  
X  configuring the cisco router
X  ----------------------------
X  
X  At first it is necessary to configure the cisco router for the remote
X! collection of the BGP4+ routing table: the router must be configured
X! to accept rsh commands coming from the remote workstation which is
X! running the ASpath-tree scripts in the following way:
X  
X    ip rcmd remote-host <router-username> <remote-ip-address> <remote-username>
X    ip rcmd rsh-enable
X--- 90,109 ----
X  ASpath-tree/DISCLAIMER
X  
X  The main script is "update-rtree"; to be executed it must be
X! customized and the cisco router must be configured to accept rsh commands or 
X! accessing via telnet.
X  
X  configuring the cisco router
X  ----------------------------
X  
X  At first it is necessary to configure the cisco router for the remote
X! collection of the BGP4+ routing table: 
X! 
X! Option 1: rsh collection
X! 
X! The router must be configured to accept rsh commands coming from the 
X! remote workstation which is running the ASpath-tree scripts in the 
X! following way:
X  
X    ip rcmd remote-host <router-username> <remote-ip-address> <remote-username>
X    ip rcmd rsh-enable
X***************
X*** 126,131 ****
X--- 131,148 ----
X  This is exactly the rsh command which is used by the ASpath-tree scripts to
X  collect the routing information available on the cisco router.
X  
X+ option 2: telnet collection
X+ 
X+ The router must be configured to accept telnet commands coming from the 
X+ remote workstation which is running the ASpath-tree scripts. 
X+ 
X+ <router-username> is the name of the telnet user enabled to show the bgp table
X+ 	on the cisco router.
X+ <router-username-password> is the corresponding password of the telnet user 
X+ 	enabled to show the bgp table on the cisco router.
X+ 
X+ If you configure ROUTERUSERPWD then the telnet option automatically selected.
X+ 
X  configuring the script
X  ----------------------
X  
X***************
X*** 148,157 ****
X  ROUTERADDR   is the IP address of the cisco router from which the BGP4+
X               routing table has to be retrieved
X  			 
X! ROUTERUSER   is the rsh user (<router-username>) which you have enabled on
X!              the cisco router with the command
X  		ip rcmd remote-host
X  		   <router-username> <remote-ip-address> <remote-username>
X  			
X  HTMLDIR      is the full path to the directory where the generated html
X               files have to be placed. If you do not specify this option
X--- 165,182 ----
X  ROUTERADDR   is the IP address of the cisco router from which the BGP4+
X               routing table has to be retrieved
X  			 
X! ROUTERUSER   is the rsh user (<router-username>) which you have 
X!              enabled on the cisco router with the command
X  		ip rcmd remote-host
X  		   <router-username> <remote-ip-address> <remote-username>
X+              OR
X+              is the telnet user, that is enabled to execute show ipv6 bgp
X+              command
X+ 
X+ ROUTERUSERPASS
X+              is an optional parameter to use for telnet collection. If you
X+              configure this parameter telnet mode will be used automatically.
X+              DO NOT SPECIFY this parameter if you use RSH collection.
X  			
X  HTMLDIR      is the full path to the directory where the generated html
X               files have to be placed. If you do not specify this option
X***************
X*** 363,365 ****
X--- 388,393 ----
X  
X  Ivano Guardini (ivano.guardini@tilab.com)
X  Paolo Fasano (paolo.fasano@tilab.com)
X+ 
X+ Addition to Telnet menthod:
X+ Janos Mohacsi (janos.mohacsi@dante.org.uk)
END-of-aspathtree/files/patch-readme.txt
echo x - aspathtree/files/patch-etc::ASpath-tree.config
sed 's/^X//' >aspathtree/files/patch-etc::ASpath-tree.config << 'END-of-aspathtree/files/patch-etc::ASpath-tree.config'
X*** etc/ASpath-tree.config.orig	Fri Apr  5 15:21:03 2002
X--- etc/ASpath-tree.config	Wed Jun  5 14:10:07 2002
X***************
X*** 5,11 ****
X  # Full path to the directory where you have installed the ASpath-tree
X  # scripts. It is the directory where the script create-bgp-pages is
X  # located
X! HOMEDIR = /usr/local/ASpath-tree
X  
X  # Full path to the directory where the rsh command is installed on the unix
X  # system you are using
X--- 5,11 ----
X  # Full path to the directory where you have installed the ASpath-tree
X  # scripts. It is the directory where the script create-bgp-pages is
X  # located
X! HOMEDIR = %%PREFIX%%/aspathtree/
X  
X  # Full path to the directory where the rsh command is installed on the unix
X  # system you are using
X***************
X*** 19,26 ****
X--- 19,32 ----
X  # command:
X  #         ip rcmd remote-host
X  #              <router-user> <client-ip-address>  <client-user>
X+ # or the telnet user. See ROUTERUSERPASS also.
X  ROUTERUSER = router
X  
X+ # The password of the telnet user which have been enabled on the cisco 
X+ # router to issue 'show bgp ipv6' command. Set up only if you want to
X+ # use the telnet mode.
X+ # ROUTERUSERPASS = router
X+ 
X  # The full path to the directory where the generated html files have to be
X  # placed. If you do not specify this option the html files are stored under
X  # the htdocs/ directory which comes with the distribution
X***************
X*** 28,42 ****
X  # HTMLDIR = /usr/local/httpd/htdocs/bgp
X  
X  # The contactname which is placed at the bottom of the generated html pages
X! CONTACTNAME = TILAB IPv6 Group
X  
X  # e-mail address of the contact person. It is placed at the bottom of the
X  # generated html pages together with the contactname
X! CONTACTMAIL = ipv6@tilab.com
X  
X  # The name of your IPv6 site. It is used as the root of the BGP4+ routing
X  # tree displayed by the generated html pages
X! SITENAME = TILAB
X  
X  # The name of the image file (for instance a graphical logo representing
X  # your IPv6 site) to be placed at the beginning of the generated html 
X--- 34,48 ----
X  # HTMLDIR = /usr/local/httpd/htdocs/bgp
X  
X  # The contactname which is placed at the bottom of the generated html pages
X! CONTACTNAME = Your IPv6 Group
X  
X  # e-mail address of the contact person. It is placed at the bottom of the
X  # generated html pages together with the contactname
X! CONTACTMAIL = your@ipv6.mail
X  
X  # The name of your IPv6 site. It is used as the root of the BGP4+ routing
X  # tree displayed by the generated html pages
X! SITENAME = Your IPv6 project
X  
X  # The name of the image file (for instance a graphical logo representing
X  # your IPv6 site) to be placed at the beginning of the generated html 
END-of-aspathtree/files/patch-etc::ASpath-tree.config
echo x - aspathtree/files/patch-lib::rsh-cisco.pl
sed 's/^X//' >aspathtree/files/patch-lib::rsh-cisco.pl << 'END-of-aspathtree/files/patch-lib::rsh-cisco.pl'
X*** lib/rsh-cisco.pl.orig	Wed Apr  3 13:52:44 2002
X--- lib/rsh-cisco.pl	Wed Jun  5 14:33:56 2002
X***************
X*** 18,30 ****
X--- 18,53 ----
X  	my (@rtable) = ();
X  	my (@elements) = ();
X  
X+         use Socket;
X+ 	use Net::Telnet;
X+ 	
X+ 	if (defined($ROUTERUSERPASS)) {
X+ 
X+ # TELNET module to get BGP4+ AS Path table
X+ 
X+ 	my $telnet_session = new Net::Telnet(
X+ 	prompt => '/[\w().-]*[\$#>]\s?(?:\(enable\))?\s*$/'
X+ 	);	
X+ 
X+ 	$telnet_session->open($ROUTERADDR);
X+ 	$telnet_session->login($ROUTERUSER, $ROUTERUSERPASS);
X+ 	$telnet_session->cmd("teminal length 0");
X+ 
X+ 	@lines = $telnet_session->cmd(String => "show bgp ipv6",
X+                                   Timeout => 1800);
X+ 	$telnet_session->close;
X+ 	} else {
X+ 	
X+ 
X  # RSH command to get the BGP4+ AS Path table
X+ 
X  	open(OUTPUT,"$RSHDIR/rsh $ROUTERADDR -l $ROUTERUSER \"show bgp ipv6\" |");
X  	for (<OUTPUT>) {
X  		s/\x0d//g;
X  		push(@lines, $_);
X  	}
X  	close(OUTPUT);
X+ 	}
X  	chomp(@lines);
X  
X  	if($DEBUG) {
END-of-aspathtree/files/patch-lib::rsh-cisco.pl
echo x - aspathtree/pkg-message
sed 's/^X//' >aspathtree/pkg-message << 'END-of-aspathtree/pkg-message'
XFor to configuration information please look at 
X%%PREFIX%%/aspathtree/readme.txt. 
X
XCopy %%PREFIX%%/aspathtree/etc/ASpath-tree.config.dist to 
X%%PREFIX%%/etc/ASpath-tree.config
Xand modify accordingly to your environment.
END-of-aspathtree/pkg-message
echo c - aspathtree/scripts
mkdir -p aspathtree/scripts > /dev/null 2>&1
echo x - aspathtree/scripts/configure
sed 's/^X//' >aspathtree/scripts/configure << 'END-of-aspathtree/scripts/configure'
X#!/bin/sh
X#
X# $FreeBSD$
X
XFILES_CONF="update-rtree etc/ASpath-tree.config"
X
Xfor f in $FILES_CONF ; do
X	mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
X		s+%%PATHPERLBIN%%+${PERL5}+g >${WRKSRC}/${f}
X	mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
X		s+%%PREFIX%%+${PREFIX}+g >${WRKSRC}/${f}
Xdone
X
X# rename to dist
Xmv ${WRKSRC}/etc/ASpath-tree.config ${WRKSRC}/etc/ASpath-tree.config.dist
END-of-aspathtree/scripts/configure
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206051434.g55EYRIa062275>