forked from mprovost/NFStash
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nfsping.spec
66 lines (49 loc) · 2.37 KB
/
nfsping.spec
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
# to download: wget https://github.com/mprovost/NFSping/tarball/master
%define git_rel 6ef8ce5
Name: nfsping
Version: 0.1
Release: 5.git%{git_rel}%{?dist}
Summary: NFSping is a command line utility for measuring the response time of an NFS server.
Group: Applications/Internet
License: BSD
URL: http://github.com/mprovost/NFSping
# git export from http://github.com/mprovost/NFSping/tarball/master
Source0: http://download.github.com/mprovost-NFSping-%{git_rel}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
NFSping is a command line utility for measuring the response time of an NFS server. It's basically a copy of the fping interface but doesn't share any code with that project.
On modern NFS servers, the network stack and filesystem are often being run on separate cores or even hardware components. This means in practise that a fast ICMP ping response isn't indicative of how quickly the NFS filesystem is responding. This tool more directly tests the NFS component of the operating system.
%prep
%setup -q -n mprovost-NFSping-%{git_rel}
%build
make
%install
rm -rf %{buildroot}
%{__mkdir} -p %{buildroot}%{_bindir}
%{__mkdir} -p %{buildroot}%{_datadir}/smokeping/lib/Smokeping/probes
%{__install} -m 755 bin/nfscat %{buildroot}%{_bindir}/nfscat
%{__install} -m 755 bin/nfsdf %{buildroot}%{_bindir}/nfsdf
%{__install} -m 755 bin/nfsls %{buildroot}%{_bindir}/nfsls
%{__install} -m 755 bin/nfsmount %{buildroot}%{_bindir}/nfsmount
%{__install} -m 755 bin/nfsping %{buildroot}%{_bindir}/nfsping
%{__install} -p -m 644 Smokeping/NFSping.pm %{buildroot}%{_datadir}/smokeping/lib/Smokeping/probes/NFSping.pm
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/smokeping/lib/Smokeping/probes/NFSping.pm
%doc README
%changelog
* Thu Aug 21 2014 Johan van den Dorpe <[email protected]> 0.1-5.git6ef8ce5
- Update to git rev 6ef8ce5
- Update for new binaries and filesystem layout
- Remove smp_mflags - make fails with 4+ simultaneous jobs run
* Fri Dec 06 2013 James Braid 0.1-4.gitdcf2f31
- Makefile is in top level directory now
* Fri Dec 06 2013 James Braid 0.1-3.gitdcf2f31
- update to dcf2f31
* Fri Dec 06 2013 James Braid 0.1-2.gite2d35d4
- new package built with tito
* Mon Nov 15 2010 James Braid <[email protected]> 0.1-1.gite2d35d4
- Initial package