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
This commit is contained in:
commit
e7cfef18da
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
2ping-1397618874.f2c20471488c.tar.xz
Normal file
3
2ping-1397618874.f2c20471488c.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:29ee8755bf7ee08e72376e896fb3a0e824ae3fa0f06ad921f8d3db74686ca018
|
||||
size 23836
|
31
2ping-fix-use-of-uninitialized-warning.patch
Normal file
31
2ping-fix-use-of-uninitialized-warning.patch
Normal file
@ -0,0 +1,31 @@
|
||||
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
|
||||
|
11
2ping.changes
Normal file
11
2ping.changes
Normal file
@ -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)
|
||||
|
62
2ping.spec
Normal file
62
2ping.spec
Normal file
@ -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
|
11
_service
Normal file
11
_service
Normal file
@ -0,0 +1,11 @@
|
||||
<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