Accepting request 414947 from network:utilities
1 OBS-URL: https://build.opensuse.org/request/show/414947 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/2ping?expand=0&rev=2
This commit is contained in:
commit
86efcd509c
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:29ee8755bf7ee08e72376e896fb3a0e824ae3fa0f06ad921f8d3db74686ca018
|
|
||||||
size 23836
|
|
3
2ping-3.2.1.tar.gz
Normal file
3
2ping-3.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2e53efd33d0f8b98fcc9c5ece26e87119a6bbbc7c4820a9563610143d46712a6
|
||||||
|
size 49000
|
@ -1,31 +0,0 @@
|
|||||||
From c6753e03927cc5f065e3da6a6f735a1691146dd8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jiri Slaby <jirislaby@gmail.com>
|
|
||||||
Date: Sat, 4 Apr 2015 12:54:27 +0200
|
|
||||||
Subject: [PATCH] 2ping: fix 'use of uninitialized' warning
|
|
||||||
|
|
||||||
With 2ping --listen -6, I see
|
|
||||||
Use of uninitialized value $opt_intaddr in pattern match (m//) at /usr/bin/2ping line 356.
|
|
||||||
Check for undef, as there might be one pushed to the array.
|
|
||||||
|
|
||||||
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
|
|
||||||
---
|
|
||||||
script/2ping.in | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/script/2ping.in b/script/2ping.in
|
|
||||||
index 24c00b95ec2f..ff117f9b0fd4 100755
|
|
||||||
--- a/script/2ping.in
|
|
||||||
+++ b/script/2ping.in
|
|
||||||
@@ -350,7 +350,8 @@ if($opt_listen) {
|
|
||||||
foreach my $opt_intaddr (@working_opt_intaddrs) {
|
|
||||||
my($sock);
|
|
||||||
my($is_ipv6) = $opt_ipv6;
|
|
||||||
- if($opt_ipv6 && $opt_intaddr =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) {
|
|
||||||
+ if($opt_ipv6 && defined $opt_intaddr &&
|
|
||||||
+ $opt_intaddr =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) {
|
|
||||||
$is_ipv6 = 0;
|
|
||||||
}
|
|
||||||
my $sockerr = '';
|
|
||||||
--
|
|
||||||
2.3.4
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 24 12:53:10 UTC 2016 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Update to version 3.2.1
|
||||||
|
* Please read the ChangeLog; not able to track all changes since
|
||||||
|
previous version
|
||||||
|
- Upstream moved to python
|
||||||
|
* Remove %{perl_requires} dependency
|
||||||
|
* Remove perl recommendations; perl(Digest::CRC), perl(Digest::MD5),
|
||||||
|
perl(Digest::SHA) and perl(IO::Socket::INET6)
|
||||||
|
* Add python-devel and python-setuptools requirements
|
||||||
|
- Use official tarball and download Url
|
||||||
|
- Remove obsolete 2ping-fix-use-of-uninitialized-warning.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 3 15:29:33 UTC 2015 - jslaby@suse.com
|
Fri Apr 3 15:29:33 UTC 2015 - jslaby@suse.com
|
||||||
|
|
||||||
|
40
2ping.spec
40
2ping.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package 2ping
|
# spec file for package 2ping
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,17 +20,16 @@ Name: 2ping
|
|||||||
Summary: Bi-directional ping utility
|
Summary: Bi-directional ping utility
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Networking/Diagnostic
|
Group: Productivity/Networking/Diagnostic
|
||||||
Version: 1397618874.f2c20471488c
|
Version: 3.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.finnie.org/software/2ping/
|
Url: http://www.finnie.org/software/2ping/
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: http://www.finnie.org/software/2ping/%{name}-%{version}.tar.gz
|
||||||
Patch0: 2ping-fix-use-of-uninitialized-warning.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
BuildRequires: python-devel
|
||||||
Recommends: perl(Digest::CRC)
|
BuildRequires: python-setuptools
|
||||||
Recommends: perl(Digest::MD5)
|
# A bit tricky but should do it
|
||||||
Recommends: perl(Digest::SHA)
|
Provides: %{name} = 1397618874.f2c20471488c
|
||||||
Recommends: perl(IO::Socket::INET6)
|
Obsoletes: %{name} = 1397618874.f2c20471488c
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -40,23 +39,26 @@ a 2ping client to determine which direction packet loss occurs.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
python setup.py build
|
||||||
make %{?_smp_mflags}
|
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||||
|
install -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping.1
|
||||||
|
install -m 0644 doc/2ping.1 %{buildroot}%{_mandir}/man1/2ping6.1
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
%perl_process_packlist
|
|
||||||
%perl_gen_filelist
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
python setup.py test
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc ChangeLog COPYING README
|
%doc ChangeLog COPYING README doc/2ping-protocol-examples.py doc/2ping.md doc/2ping-protocol.md
|
||||||
|
%{_bindir}/2ping
|
||||||
|
%{_bindir}/2ping6
|
||||||
|
%{_mandir}/man1/2ping.1.*
|
||||||
|
%{_mandir}/man1/2ping6.1.*
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
11
_service
11
_service
@ -1,11 +0,0 @@
|
|||||||
<services>
|
|
||||||
<service mode="localonly" name="tar_scm">
|
|
||||||
<param name="url">git://github.com/rfinnie/2ping.git</param>
|
|
||||||
<param name="scm">git</param>
|
|
||||||
</service>
|
|
||||||
<service mode="localonly" name="recompress">
|
|
||||||
<param name="file">2ping-*.tar</param>
|
|
||||||
<param name="compression">xz</param>
|
|
||||||
</service>
|
|
||||||
<service mode="localonly" name="set_version"/>
|
|
||||||
</services>
|
|
Loading…
x
Reference in New Issue
Block a user