Add p5-Cisco-Reconfig 0.8, parse and generate Cisco configuration files.
PR: ports/102490 Submitted by: Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
parent
49c0e39450
commit
bd96c5b32c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174021
5 changed files with 57 additions and 0 deletions
|
@ -130,6 +130,7 @@
|
||||||
SUBDIR += p0f
|
SUBDIR += p0f
|
||||||
SUBDIR += p5-Altoids
|
SUBDIR += p5-Altoids
|
||||||
SUBDIR += p5-Cflow
|
SUBDIR += p5-Cflow
|
||||||
|
SUBDIR += p5-Cisco-Reconfig
|
||||||
SUBDIR += p5-Mon
|
SUBDIR += p5-Mon
|
||||||
SUBDIR += p5-NSNMP
|
SUBDIR += p5-NSNMP
|
||||||
SUBDIR += p5-Nagios-Plugin
|
SUBDIR += p5-Nagios-Plugin
|
||||||
|
|
31
net-mgmt/p5-Cisco-Reconfig/Makefile
Normal file
31
net-mgmt/p5-Cisco-Reconfig/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# New ports collection makefile for: p5-Cisco-Reconfig
|
||||||
|
# Date created: 2006-08-25
|
||||||
|
# Whom: Gea-Suan Lin <gslin@gslin.org>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= Cisco-Reconfig
|
||||||
|
PORTVERSION= 0.8
|
||||||
|
CATEGORIES= net-mgmt perl5
|
||||||
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||||
|
MASTER_SITE_SUBDIR= Cisco
|
||||||
|
PKGNAMEPREFIX= p5-
|
||||||
|
|
||||||
|
MAINTAINER= gslin@gslin.org
|
||||||
|
COMMENT= Parse and generate Cisco configuration files
|
||||||
|
|
||||||
|
RUN_DEPENDS= ${SITE_PERL}/IO/String.pm:${PORTSDIR}/devel/p5-IO-String
|
||||||
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||||
|
|
||||||
|
PERL_CONFIGURE= yes
|
||||||
|
|
||||||
|
MAN3= Cisco::Reconfig.3
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if ${PERL_LEVEL} < 500703
|
||||||
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
3
net-mgmt/p5-Cisco-Reconfig/distinfo
Normal file
3
net-mgmt/p5-Cisco-Reconfig/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
MD5 (Cisco-Reconfig-0.8.tar.gz) = 803dbcb4e7a8c180c7017983188c7f33
|
||||||
|
SHA256 (Cisco-Reconfig-0.8.tar.gz) = 841093c752deb0df10bf5bc013b83058f60f709119f2c2f76d1ce383e71bd025
|
||||||
|
SIZE (Cisco-Reconfig-0.8.tar.gz) = 17996
|
15
net-mgmt/p5-Cisco-Reconfig/pkg-descr
Normal file
15
net-mgmt/p5-Cisco-Reconfig/pkg-descr
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Cisco::Reconfig makes it easier to write programs to generate changes
|
||||||
|
to Cisco configuration files.
|
||||||
|
|
||||||
|
Cisco::Reconfig is a module that parses Cisco router configuration
|
||||||
|
files. It doesn't have any real understanding of Cisco configurations
|
||||||
|
so it might be useful for other similar configuration languages. It
|
||||||
|
knows that nesting is shown by indentation. It knows that ! means a
|
||||||
|
comment. It knows that no may proceed a line without changing where
|
||||||
|
that line exists in the hierarchy. It doesn't know much else.
|
||||||
|
|
||||||
|
Cisco::Reconfig can be used to modify configurations. The set() method
|
||||||
|
will check the current configruation and return commands to change it
|
||||||
|
if it is other than what is wanted (as passed to the set() method).
|
||||||
|
|
||||||
|
WWW: http://search.cpan.org/dist/Cisco-Reconfig/
|
7
net-mgmt/p5-Cisco-Reconfig/pkg-plist
Normal file
7
net-mgmt/p5-Cisco-Reconfig/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@comment $FreeBSD$
|
||||||
|
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cisco/Reconfig/.packlist
|
||||||
|
%%SITE_PERL%%/Cisco/Reconfig.pm
|
||||||
|
%%SITE_PERL%%/Cisco/Reconfig.pod
|
||||||
|
@dirrmtry %%SITE_PERL%%/Cisco
|
||||||
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cisco/Reconfig
|
||||||
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cisco
|
Loading…
Reference in a new issue