fping/fping.spec
Kristyna Streitova c8d5c6e6b9 Accepting request 827348 from home:dirkmueller:branches:network:utilities
- update to 5.0:
  - In non-quiet loop and count mode, a line is printed for every lost packet
    8.8.8.8 : xmt/rcv/%loss = 2/2/0%, min/avg/max = 12.3/12.5/12.8
    8.8.8.7 : xmt/rcv/%loss = 2/0/100%
  - The returned size in bytes now always excludes the IP header, so if before it
    reported '84 bytes' e.g. when using 'fping -l', now it reports '64 bytes'.
    This is to make the reported size consistent with ping(8) from iputils and
    also with fping when pinging a IPv6 host (which never included the IPv6
    header size).
  - The number of sent pings is only counted when the pings are received or have
    timed out, ensuring that the loss ratio will be always correct. This makes it
    possible, for example, to use loop mode (-l) with interval statistics (-Q)
    and a timeout larger than period, without having the issue that initially
    some pings would be reported as missing (#193)
  - Improved precision of measurements from 10us to 1us (#136, thanks @tycho)
  - The reported size of received packets is now always correct on Linux even for
    packets > 4096 bytes.

OBS-URL: https://build.opensuse.org/request/show/827348
OBS-URL: https://build.opensuse.org/package/show/network:utilities/fping?expand=0&rev=51
2020-08-18 14:08:52 +00:00

82 lines
2.5 KiB
RPMSpec

#
# spec file for package fping
#
# Copyright (c) 2020 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/
#
Name: fping
Version: 5.0
Release: 0
Summary: A program to ping multiple hosts
License: MIT
Group: Productivity/Networking/Diagnostic
URL: http://www.fping.org
Source: http://fping.org/dist/%{name}-%{version}.tar.gz
Source2: http://fping.org/dist/%{name}-%{version}.tar.gz.asc
Source3: http://david.schweikert.ch/gpg-pubkey.txt#/%{name}.keyring
%if 0%{?suse_version} >= 1500
Requires(pre): permissions
%endif
%description
FPing is a ping-like program that uses the Internet Control Message
Protocol (ICMP) echo request to determine if a target host is
responding. FPing differs from ping in that you can specify any number
of targets on the command line or specify a file containing a list of
targets to ping. Instead of sending pings to one target until it times
out or replies, FPing sends a ping packet and moves on to the next
target in a round-robin fashion.
In the default mode, if a target replies, it is noted and removed from
the list of targets to check. If a target does not respond within a
certain time limit or retry limit, it is designated as unreachable.
FPing also supports sending a specified number of pings to a target or
looping indefinitely (as in ping).
Unlike ping, FPing is meant to be used in scripts. Its output is
designed to be easy to parse.
%prep
%setup -q
%build
%configure \
--enable-safe-limits
%make_build
%install
%make_install
%if 0%{?suse_version} >= 1500
%post
%set_permissions %{_sbindir}/fping
%verifyscript
%verify_permissions -e %{_sbindir}/fping
%endif
%files
%doc CHANGELOG.md
%if 0%{?suse_version} >= 1500
%license COPYING
%verify(not mode caps) %attr(0755,root,root) %{_sbindir}/fping
%else
%license COPYING
%{_sbindir}/fping
%endif
%{_mandir}/man8/fping.8%{?ext_man}
%changelog