From e7cfef18dadc5630efe23545338b2c0caff4d33b931dfcbbe187eb3d8abe3e7f Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sun, 5 Apr 2015 18:32:21 +0000 Subject: [PATCH] Accepting request 294489 from home:jirislaby OBS-URL: https://build.opensuse.org/request/show/294489 OBS-URL: https://build.opensuse.org/package/show/network:utilities/2ping?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + 2ping-1397618874.f2c20471488c.tar.xz | 3 + 2ping-fix-use-of-uninitialized-warning.patch | 31 ++++++++++ 2ping.changes | 11 ++++ 2ping.spec | 62 ++++++++++++++++++++ _service | 11 ++++ 7 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 2ping-1397618874.f2c20471488c.tar.xz create mode 100644 2ping-fix-use-of-uninitialized-warning.patch create mode 100644 2ping.changes create mode 100644 2ping.spec create mode 100644 _service diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/2ping-1397618874.f2c20471488c.tar.xz b/2ping-1397618874.f2c20471488c.tar.xz new file mode 100644 index 0000000..b690128 --- /dev/null +++ b/2ping-1397618874.f2c20471488c.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29ee8755bf7ee08e72376e896fb3a0e824ae3fa0f06ad921f8d3db74686ca018 +size 23836 diff --git a/2ping-fix-use-of-uninitialized-warning.patch b/2ping-fix-use-of-uninitialized-warning.patch new file mode 100644 index 0000000..db2c85e --- /dev/null +++ b/2ping-fix-use-of-uninitialized-warning.patch @@ -0,0 +1,31 @@ +From c6753e03927cc5f065e3da6a6f735a1691146dd8 Mon Sep 17 00:00:00 2001 +From: Jiri Slaby +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 +--- + 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 + diff --git a/2ping.changes b/2ping.changes new file mode 100644 index 0000000..824bd3a --- /dev/null +++ b/2ping.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Fri Apr 3 15:29:33 UTC 2015 - jslaby@suse.com + +- update to 1397618874.f2c2047 +- 2ping-fix-use-of-uninitialized-warning.patch: add + +------------------------------------------------------------------- +Wed Nov 10 13:11:18 CET 2010 - jslaby@suse.de + +- Initial package (version 1.0) + diff --git a/2ping.spec b/2ping.spec new file mode 100644 index 0000000..b49bcc7 --- /dev/null +++ b/2ping.spec @@ -0,0 +1,62 @@ +# +# spec file for package 2ping +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: 2ping +Summary: Bi-directional ping utility +License: GPL-2.0 +Group: Productivity/Networking/Diagnostic +Version: 1397618874.f2c20471488c +Release: 0 +Url: http://www.finnie.org/software/2ping/ +Source0: %{name}-%{version}.tar.xz +Patch0: 2ping-fix-use-of-uninitialized-warning.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{perl_requires} +Recommends: perl(Digest::CRC) +Recommends: perl(Digest::MD5) +Recommends: perl(Digest::SHA) +Recommends: perl(IO::Socket::INET6) +BuildArch: noarch + +%description +2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP SYN, +SYN/ACK, ACK) and after-the-fact state comparison between a 2ping listener and +a 2ping client to determine which direction packet loss occurs. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files -f %{name}.files +%defattr(-,root,root) +%doc ChangeLog README + +%changelog diff --git a/_service b/_service new file mode 100644 index 0000000..29fbd18 --- /dev/null +++ b/_service @@ -0,0 +1,11 @@ + + + git://github.com/rfinnie/2ping.git + git + + + 2ping-*.tar + xz + + +