Sync from SUSE:SLFO:Main perl-Net-Telnet revision 548771a1fec36c72dadf500634cd616b
This commit is contained in:
commit
d5b630a237
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
Net-Telnet-3.05.tar.gz
(Stored with Git LFS)
Normal file
BIN
Net-Telnet-3.05.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
35
cpanspec.yml
Normal file
35
cpanspec.yml
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
# baz.patch: PATCH-FIX-OPENSUSE
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
135
perl-Net-Telnet.changes
Normal file
135
perl-Net-Telnet.changes
Normal file
@ -0,0 +1,135 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 22 03:06:47 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 3.05
|
||||
see /usr/share/doc/packages/perl-Net-Telnet/ChangeLog
|
||||
|
||||
2021-06-20 Jay Rogers <jay@rgrs.com>
|
||||
* Version 3.05 released.
|
||||
2021-06-20 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm: Fixed new perl warning about argument isn't numeric in
|
||||
numeric ge (>=).
|
||||
2021-05-30 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm (dump_log input_log option_log output_log): Changed
|
||||
the logging subroutines to also accept a tied filehandle.
|
||||
2021-03-30 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm (waitfor): Improved the speed to search for the
|
||||
"match", especially when reading a large amount of data, by using
|
||||
the dynamic arrays @- and @+ instead of $` and $&.
|
||||
2021-03-30 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm (new): Fixed a bug that caused the instantiation to
|
||||
fail when setting one of the *_log input args to an empty string.
|
||||
2020-02-20 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm: Added a workaround for the "require FileHandle" bug in
|
||||
perl 5.10.1.
|
||||
2020-02-20 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm: Stopped using the deprecated variable $[ in the
|
||||
autoflush idiom select((select($fh), $|=1)[$[]).
|
||||
2018-07-12 Jay Rogers <jay@rgrs.com>
|
||||
* Telnet.pm: Fixed some documentation and pod command typos.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 8 07:20:48 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 3.04
|
||||
* Telnet.pm (open family sockfamily): Added IPv6
|
||||
support. It is enabled using the method/parameter
|
||||
family() and the installed Socket package version is
|
||||
1.94+ (which corresponds with perl 5.14+).
|
||||
|
||||
* Telnet.pm (peerhost peerport sockhost sockport):
|
||||
New methods to support IPv6, because the inherited
|
||||
ones from IO::Socket::INET don't.
|
||||
|
||||
* Telnet.pm (open localhost localfamily): New
|
||||
methods and open() parameters for binding to a local
|
||||
network interface.
|
||||
|
||||
* Telnet.pm (dump_log, input_log, option_log, output_log): Fixed
|
||||
so they turn off logging when passed an empty string arg.
|
||||
|
||||
* Telnet.pm (_fillbuf _put): Fixed to use
|
||||
Errno::EINTR, when possible, to test for an
|
||||
interrupted select(), sysread(), or syswrite(). The
|
||||
test for $! =~ /^interrupted doesn't work when LANG
|
||||
is not English.
|
||||
|
||||
* Telnet.pm (dump_log, input_log, option_log, output_log): Fixed
|
||||
so they take a bare filehandle.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 27 06:33:38 UTC 2013 - coolo@suse.com
|
||||
|
||||
- update license to new format
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 18 11:09:08 UTC 2011 - coolo@suse.com
|
||||
|
||||
- use original .tar.gz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 1 13:34:12 UTC 2010 - coolo@novell.com
|
||||
|
||||
- switch to perl_requires macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:30:47 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 19 08:38:52 UTC 2010 - coolo@novell.com
|
||||
|
||||
- add perl as explicit buildrequire
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de
|
||||
|
||||
- enable parallel build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:39:52 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 28 22:15:20 CEST 2005 - dmueller@suse.de
|
||||
|
||||
- add norootforbuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 22 15:26:40 CEST 2003 - mjancar@suse.cz
|
||||
|
||||
- require the perl version we build with
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 15 16:09:58 CEST 2003 - mjancar@suse.cz
|
||||
|
||||
- adapt to perl-5.8.1
|
||||
- use %perl_process_packlist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 14:39:43 CEST 2003 - mjancar@suse.cz
|
||||
|
||||
- fix filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 20 12:41:46 CEST 2003 - mjancar@suse.cz
|
||||
|
||||
- remove unpackaged files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 20 16:52:36 CET 2002 - prehak@suse.cz
|
||||
|
||||
- updated to version 3.03
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 17:40:06 MEST 2002 - mls@suse.de
|
||||
|
||||
- remove race in .packlist generation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 22 16:57:33 CEST 2001 - rvasice@suse.cz
|
||||
|
||||
- initial package release (version 3.02)
|
||||
|
91
perl-Net-Telnet.spec
Normal file
91
perl-Net-Telnet.spec
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# spec file for package perl-Net-Telnet
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name Net-Telnet
|
||||
Name: perl-Net-Telnet
|
||||
Version: 3.05
|
||||
Release: 0
|
||||
Summary: Interact with TELNET port or other TCP ports
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/J/JR/JROGERS/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Net::Telnet allows you to make client connections to a TCP port and do
|
||||
network I/O, especially to a port using the TELNET protocol. Simple I/O
|
||||
methods such as print, get, and getline are provided. More sophisticated
|
||||
interactive features are provided because connecting to a TELNET port
|
||||
ultimately means communicating with a program designed for human
|
||||
interaction. These interactive features include the ability to specify a
|
||||
time-out and to wait for patterns to appear in the input stream, such as
|
||||
the prompt from a shell. IPv6 support is available when using perl 5.14 or
|
||||
later, see 'family()'.
|
||||
|
||||
Other reasons to use this module than strictly with a TELNET port are:
|
||||
|
||||
* You're not familiar with sockets and you want a simple way to make client
|
||||
connections to TCP services.
|
||||
|
||||
* You want to be able to specify your own time-out while connecting, reading,
|
||||
or writing.
|
||||
|
||||
* You're communicating with an interactive program at the other end of some
|
||||
socket or pipe and you want to wait for certain patterns to appear.
|
||||
|
||||
Here's an example that prints who's logged-on to a remote host. In addition
|
||||
to a username and password, you must also know the user's shell prompt,
|
||||
which for this example is '"bash$ "'
|
||||
|
||||
use Net::Telnet ();
|
||||
$t = new Net::Telnet (Timeout => 10,
|
||||
Prompt => '/bash\$ $/');
|
||||
$t->open($host);
|
||||
$t->login($username, $passwd);
|
||||
@lines = $t->cmd("who");
|
||||
print @lines;
|
||||
|
||||
See the *EXAMPLES* section below for more examples.
|
||||
|
||||
Usage questions should be directed to the perlmonks.org discussion group.
|
||||
Bugs can be viewed or reported at cpan.org on the Net::Telnet page.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc ChangeLog README
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user