From c7a7dac46ea577c87c327edef6f8912df2065238 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Wed, 13 Dec 2017 19:40:50 +1300 Subject: dev-perl/Net-Telnet-Cisco: Bump to version 1.110.0 - EAPI6 - Enable tests - Patch out interactive steps in tests - Add network-test plans Upstream: - Fix handling of warnings leading to crash - Override Net::Telnet::fhopen to do the right thing - Fix autopage handling in constructor - Fix bad splitting and useless modifier in split - Remove hard requirement of Term::ReadKey Package-Manager: Portage-2.3.18, Repoman-2.3.6 --- dev-perl/Net-Telnet-Cisco/Manifest | 1 + .../Net-Telnet-Cisco-1.110.0.ebuild | 31 +++++ ...Net-Telnet-Cisco-1.11-no-interactive-test.patch | 125 +++++++++++++++++++++ 3 files changed, 157 insertions(+) create mode 100644 dev-perl/Net-Telnet-Cisco/Net-Telnet-Cisco-1.110.0.ebuild create mode 100644 dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch (limited to 'dev-perl/Net-Telnet-Cisco') diff --git a/dev-perl/Net-Telnet-Cisco/Manifest b/dev-perl/Net-Telnet-Cisco/Manifest index 9b502326e0c4..8e5501b4bf62 100644 --- a/dev-perl/Net-Telnet-Cisco/Manifest +++ b/dev-perl/Net-Telnet-Cisco/Manifest @@ -1 +1,2 @@ DIST Net-Telnet-Cisco-1.10.tar.gz 17579 BLAKE2B 0fd21fcb58d7d0b8474df3e04b28cc8e2ae978f1d02f2c050bc9974b39f1b531ff159f9282aec9d17ddae309ff902a0a5eeacdf9903acfd5ee503f803d9cdb00 SHA512 1fcae8e54425a2ddf2e32c772886af97d308421eb664abb296ec16e97531c2eb6727ea4607d48fa957e9a926dc5b88bfffdfa75da10793f4f0247fa3b1f45672 +DIST Net-Telnet-Cisco-1.11.tar.gz 19282 BLAKE2B 39925b96a8d709f58012c12ec368c48a54549a324ae0fbcdc4cf97daed034b6cb76639b3fda1c3b77824e5c702f6b8e5abc4093558888788ce6cac19342575c4 SHA512 b12da84517df470d40d56a54e8d8c7b331bed87c3c330da7fc1efb7d078805e6f7348f0b52971d3c1b4e3d39014d76bbe7535c40ad3afa7efcf567521ddf0c4b diff --git a/dev-perl/Net-Telnet-Cisco/Net-Telnet-Cisco-1.110.0.ebuild b/dev-perl/Net-Telnet-Cisco/Net-Telnet-Cisco-1.110.0.ebuild new file mode 100644 index 000000000000..238f2c98ec18 --- /dev/null +++ b/dev-perl/Net-Telnet-Cisco/Net-Telnet-Cisco-1.110.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=VINSWORLD +DIST_VERSION=1.11 +inherit perl-module + +DESCRIPTION="Automate telnet sessions w/ routers&switches" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +RDEPEND=">=dev-perl/Net-Telnet-3.20.0" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + test? ( dev-perl/TermReadKey ) +" +PATCHES=( "${FILESDIR}/${PN}-1.11-no-interactive-test.patch" ) +PERL_RM_FILES=( "t/02-pod-coverage.t" ) + +src_test() { + if [[ -z $CISCO_TEST_ROUTER ]]; then + elog "Comprehensive testing requires a configured, network accessible Cisco Router" + elog "to test against. For details, see:" + elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}" + fi + perl-module_src_test +} diff --git a/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch b/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch new file mode 100644 index 000000000000..7ab7b2ad20ab --- /dev/null +++ b/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch @@ -0,0 +1,125 @@ +From 60d93af35887e53677be5a0f95591489c2683c73 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +Date: Wed, 13 Dec 2017 18:42:56 +1300 +Subject: Remove test interactivity + +Pass configuration by enviroment variables and don't prompt. +--- + test.pl | 82 ++++++++++++++++------------------------------------------------- + 1 file changed, 20 insertions(+), 62 deletions(-) + +diff --git a/test.pl b/test.pl +index 369bc30..e9f7ae2 100644 +--- a/test.pl ++++ b/test.pl +@@ -5,14 +5,8 @@ + + use Test::More tests => 32; + #use Test::More qw/no_plan/; +-use ExtUtils::MakeMaker qw/prompt/; + use Carp; + use Cwd; +-my $HAVE_Term_ReadKey = 0; +-eval "use Term::ReadKey"; +-if(!$@) { +- $HAVE_Term_ReadKey = 1 +-} + + use vars qw/$ROUTER $PASSWD $LOGIN $S $EN_PASS $PASSCODE/; + +@@ -161,18 +155,9 @@ END { cleanup() }; + + sub cleanup { + return unless -f "input.log" || -f "dump.log"; +- +- print <); +- } +- } else { +- print "$def\n"; +- } +- return ($ans ne '') ? $ans : $def; ++EOB + } +-- +2.14.3 + -- cgit v1.2.3-65-gdbad