Add LG, a Looking Glass written in Perl as a CGI script.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-08-13 14:34:37 +00:00
parent 2a570486ab
commit 03e5268aae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364788
5 changed files with 58 additions and 0 deletions

View file

@ -105,6 +105,7 @@
SUBDIR += jnettop
SUBDIR += kismet
SUBDIR += lanmap
SUBDIR += lg
SUBDIR += libsmi
SUBDIR += macroscope
SUBDIR += mbrowse

35
net-mgmt/lg/Makefile Normal file
View file

@ -0,0 +1,35 @@
# Created by: Mathieu Arnold <mat@freebsd.org>
# $FreeBSD$
PORTNAME= lg
PORTVERSION= 1.9.s20140622
MASTER_SITES= LOCAL/mat/lg GH GHC
CATEGORIES= net-mgmt perl5
MAINTAINER= mat@freebsd.org
COMMENT= Looking Glass written in Perl as a CGI script
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_GITHUB= yes
GH_ACCOUNT= Cougar
GH_COMMIT= 0d53e4b
GH_TAGNAME= ${GH_COMMIT}
USES= perl5
USE_PERL5= run
NO_BUILD= yes
do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
${INSTALL_SCRIPT} ${WRKSRC}/lg.cgi ${STAGEDIR}${WWWDIR}
cd ${WRKSRC} && ${INSTALL_DATA} lg.conf favicon.ico ${STAGEDIR}${WWWDIR}
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${INSTALL_SCRIPT} makeaslist.pl makedb.pl ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${INSTALL_DATA} as.txt communities.txt ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG COPYING README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

2
net-mgmt/lg/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (lg-1.9.s20140622.tar.gz) = cef9f6f3d8c36d15933999f383bef74d6f3b5f60677987fec731166a34ff587a
SIZE (lg-1.9.s20140622.tar.gz) = 44239

7
net-mgmt/lg/pkg-descr Normal file
View file

@ -0,0 +1,7 @@
LG is a Looking Glass written in Perl as a CGI script. It can execute almost
all BGP-related commands and do ping and traceroute in routers or relay these
queries to other looking glasses. It supports both IPv4 and IPv6 commands, and
is tested with Cisco, Zebra and Juniper. It can connect to router using either
SSH, telnet or rsh protocol.
WWW: http://wiki.version6.net/LG

13
net-mgmt/lg/pkg-plist Normal file
View file

@ -0,0 +1,13 @@
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/as.txt
%%DATADIR%%/communities.txt
%%DATADIR%%/makeaslist.pl
%%DATADIR%%/makedb.pl
%%WWWDIR%%/favicon.ico
%%WWWDIR%%/lg.cgi
%%WWWDIR%%/lg.conf
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
@dirrmtry %%DATADIR%%
@dirrmtry %%WWWDIR%%