ports/162676: [NEW PORT] net-mgmt/ssgless: View ScreenOS configuration files
Pavel I Volkov
pavelivolkov at googlemail.com
Sat Nov 19 12:50:04 UTC 2011
>Number: 162676
>Category: ports
>Synopsis: [NEW PORT] net-mgmt/ssgless: View ScreenOS configuration files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 19 12:50:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Pavel I Volkov
>Release: FreeBSD 9.0-RC2 i386
>Organization:
>Environment:
System: FreeBSD cvs0.catervaska.dyndns.org 9.0-RC2 FreeBSD 9.0-RC2 #0: Sun Nov 13 14:05:56 MSK 2011
>Description:
Viewer configuration files of devices with ScreenOS
(of Juniper Networks), considers the context of commands.
For example to:
set vrouter trust-vr sharable
set vrouter "trust-vr"
unset auto-route-export
set protocol ospf
set enable
exit
exit
unset alg sip enable
and after:
set vrouter trust-vr sharable
set vrouter "trust-vr"
unset auto-route-export
set protocol ospf
set enable
exit
exit
unset alg sip enable
- Pavel I Volkov
pavelivolkov at googlemail.com
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- ssgless-1.2.shar begins here ---
# 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:
#
# ssgless
# ssgless/files
# ssgless/files/lesspipe-ssg.awk.in
# ssgless/files/ssgless.in
# ssgless/pkg-descr
# ssgless/Makefile
# ssgless/pkg-message
#
echo c - ssgless
mkdir -p ssgless > /dev/null 2>&1
echo c - ssgless/files
mkdir -p ssgless/files > /dev/null 2>&1
echo x - ssgless/files/lesspipe-ssg.awk.in
sed 's/^X//' >ssgless/files/lesspipe-ssg.awk.in << 'bf4c3f7023a6820e3d2f6deb13a59a19'
X#!%%AWK%% -f
XBEGIN { count=1 }
X/^set anti-spam profile [^[:space:]]+\r?$/ ||
X/^set av profile [^[:space:]]+\r?$/ ||
X/^set vrouter [^[:space:]]+\r?$/ ||
X/^set protocol bgp/ ||
X/^set protocol ospf\r?$/ ||
X/^set protocol pim\r?$/ ||
X/^set protocol rip\r?$/ ||
X/^set crypto-policy\r?$/ ||
X/^set sctp configuration aaa\r?$/ ||
X/^set policy id [[:digit:]]+\r?$/ ||
X/^set url protocol [^[:space:]]+\r?$/ ||
X/^set route-map name / { out($0,count); count++; next }
X/^exit\r?$/ { count-- }
X{ out($0,count) }
Xfunction out(s,c) { for(i=1; i<c; i++) printf("%s","\t"); print s }
bf4c3f7023a6820e3d2f6deb13a59a19
echo x - ssgless/files/ssgless.in
sed 's/^X//' >ssgless/files/ssgless.in << 'b489cffe4262b4abc00db2e0ec690fbb'
X#!/bin/sh
Xexport LESSOPEN="|%%PREFIX%%/bin/lesspipe-ssg.awk %s"
Xexec %%LESS%% "$@"
b489cffe4262b4abc00db2e0ec690fbb
echo x - ssgless/pkg-descr
sed 's/^X//' >ssgless/pkg-descr << '37673dea26236023f2115f2a47685a71'
XViewer configuration files of devices with ScreenOS
X(of Juniper Networks), considers the context of commands.
X
X For example to:
Xset vrouter trust-vr sharable
Xset vrouter "trust-vr"
Xunset auto-route-export
Xset protocol ospf
Xset enable
Xexit
Xexit
Xunset alg sip enable
X and after:
Xset vrouter trust-vr sharable
Xset vrouter "trust-vr"
X unset auto-route-export
X set protocol ospf
X set enable
X exit
Xexit
Xunset alg sip enable
X
X- Pavel I Volkov
Xpavelivolkov at googlemail.com
37673dea26236023f2115f2a47685a71
echo x - ssgless/Makefile
sed 's/^X//' >ssgless/Makefile << '3b36dc38ccb37c41fda4210c8a97d22c'
X# New ports collection makefile for: ssgless
X# Date created: 8 Nov 2011
X# Whom: Pavel I Volkov
X#
X# $FreeBSD$
X#
X
XPORTNAME= ssgless
XPORTVERSION= 1.2
XCATEGORIES= net-mgmt
XDISTFILES=
X
XMAINTAINER= pavelivolkov at googlemail.com
XCOMMENT= View ScreenOS configuration files
X
XLICENSE= BSD
X
XLESS= `whereis -bq less`
X
XNOFETCHFILES= yes
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
XNO_MTREE= yes
X
XPLIST_FILES= bin/${PORTNAME} bin/lesspipe-ssg.awk
X
XSUB_FILES= ${PORTNAME} lesspipe-ssg.awk
X
XSUB_LIST= "AWK=${AWK}" "LESS=${LESS}"
X
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
X ${INSTALL_SCRIPT} ${WRKDIR}/lesspipe-ssg.awk ${PREFIX}/bin
X
Xpost-install:
X @${ECHO}
X @${CAT} ${PKGMESSAGE}
X @${ECHO}
X
X.include <bsd.port.mk>
3b36dc38ccb37c41fda4210c8a97d22c
echo x - ssgless/pkg-message
sed 's/^X//' >ssgless/pkg-message << 'f5d2a2fa8f1e6aee457b884157497723'
Xusage: ssgless -x3 ssg-device_cfg.txt
f5d2a2fa8f1e6aee457b884157497723
exit
--- ssgless-1.2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list