Files
fping/fping.spec

81 lines
2.4 KiB
RPMSpec

#
# spec file for package fping
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2004 SUSE LINUX AG, 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 https://bugs.opensuse.org/
#
Name: fping
Version: 4.1
Release: 0
Summary: A Program to Ping Multiple Hosts
License: X11
Group: Productivity/Networking/Diagnostic
Url: http://www.fping.org
Source: http://fping.org/dist/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1500
PreReq: permissions
%endif
%description
FPing is a Ping-like program which 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 will send out a ping packet and move 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 and/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
make %{?_smp_mflags}
%install
make install DESTDIR="%{buildroot}"
%if 0%{?suse_version} >= 1500
%verifyscript
%verify_permissions -e %{_sbindir}/fping
%post
%set_permissions %{_sbindir}/fping
%endif
%files
%defattr(-,root,root)
%doc CHANGELOG.md
%if 0%{?suse_version} >= 1500
%license COPYING
%else
%doc COPYING
%endif
%{_mandir}/man8/fping.8%{?ext_man}
%{_sbindir}/fping
%changelog