diff options
author | mat <mat@FreeBSD.org> | 2014-08-13 22:34:37 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-08-13 22:34:37 +0800 |
commit | 97fa35fea5440566bfc4e3b7684c65d5d0c45869 (patch) | |
tree | 0476eb194c171eed4f157d50c2844ea8782fe37d | |
parent | 4bb5eddbe05129d76a5d9b298b2276f64a4df9dd (diff) | |
download | freebsd-ports-gnome-97fa35fea5440566bfc4e3b7684c65d5d0c45869.tar.gz freebsd-ports-gnome-97fa35fea5440566bfc4e3b7684c65d5d0c45869.tar.zst freebsd-ports-gnome-97fa35fea5440566bfc4e3b7684c65d5d0c45869.zip |
Add LG, a Looking Glass written in Perl as a CGI script.
Sponsored by: Absolight
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/lg/Makefile | 35 | ||||
-rw-r--r-- | net-mgmt/lg/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/lg/pkg-descr | 7 | ||||
-rw-r--r-- | net-mgmt/lg/pkg-plist | 13 |
5 files changed, 58 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 9a14ab2b1aaf..292ae190e2f9 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -105,6 +105,7 @@ SUBDIR += jnettop SUBDIR += kismet SUBDIR += lanmap + SUBDIR += lg SUBDIR += libsmi SUBDIR += macroscope SUBDIR += mbrowse diff --git a/net-mgmt/lg/Makefile b/net-mgmt/lg/Makefile new file mode 100644 index 000000000000..68960d46ca30 --- /dev/null +++ b/net-mgmt/lg/Makefile @@ -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> diff --git a/net-mgmt/lg/distinfo b/net-mgmt/lg/distinfo new file mode 100644 index 000000000000..230c8b7b434a --- /dev/null +++ b/net-mgmt/lg/distinfo @@ -0,0 +1,2 @@ +SHA256 (lg-1.9.s20140622.tar.gz) = cef9f6f3d8c36d15933999f383bef74d6f3b5f60677987fec731166a34ff587a +SIZE (lg-1.9.s20140622.tar.gz) = 44239 diff --git a/net-mgmt/lg/pkg-descr b/net-mgmt/lg/pkg-descr new file mode 100644 index 000000000000..923b883aeda7 --- /dev/null +++ b/net-mgmt/lg/pkg-descr @@ -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 diff --git a/net-mgmt/lg/pkg-plist b/net-mgmt/lg/pkg-plist new file mode 100644 index 000000000000..b3d61c1dcdf4 --- /dev/null +++ b/net-mgmt/lg/pkg-plist @@ -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%% |