File: fping.spec

package info (click to toggle)
fping 5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 944 kB
  • sloc: sh: 4,524; ansic: 2,661; perl: 606; makefile: 29
file content (74 lines) | stat: -rw-r--r-- 1,876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Summary: send ICMP echo probes to multiple hosts
Name: fping
Version: 4.2
Release: 1
License: Freely redistributable without restriction
Group: Applications/System
Source0: http://fping.org/dist/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
fping is a program to send ICMP echo probes to network hosts, similar to ping,
but much better performing when pinging multiple hosts. fping has a very long
history: Roland Schemers did publish a first version of it in 1992 and it has
established itself since then as a standard tool for network diagnostics and
statistics.

%prep
%setup -q

%build

if [ ! -f ./configure ] ; then
    ./autogen.sh
fi

# fping
%configure --enable-ipv4
make

# fping6
%configure --enable-ipv6
make
%{__mv} -f src/fping src/fping6

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# fping6
%{__install} -Dp -m4755 src/fping6 %{buildroot}%{_sbindir}/fping6
%{__ln_s} -f fping.8 %{buildroot}%{_mandir}/man8/fping6.8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%attr(4755, root, root) /usr/sbin/fping
%attr(4755, root, root) /usr/sbin/fping6
%doc README.md COPYING CHANGELOG.md
/usr/share/man/man8/fping.8.gz
/usr/share/man/man8/fping6.8.gz

%post
if [ -x /usr/sbin/setcap ]; then
    /bin/chmod 0755 /usr/sbin/fping*
    /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping
    /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping6
fi

%changelog
* Mon Dec 24 2012 Marcus Vinicius Ferreira <ferreira.mv@gmail.com>
- Missing './configure' script when cloning from master.
- Making 'fping6'.
- Fix setuid permission to 'rwsr-xr-x'.
- doc files.
- Replacing setuid permission if 'setcap' is present on post-install.
- Using 'http://fping.org/dist/' for release source distributions.

* Mon Jul 16 2012 Stephen Schaefer <sschaefer@acm.org>
- Initial build

# vim:ft=spec: