mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-12-25 12:41:33 +00:00
added patch, spec file and build note for building latest fping rpm on Linux
This commit is contained in:
parent
20e2488ee0
commit
149769e28f
@ -5,9 +5,10 @@ Build notes
|
||||
2. cd to /tmp/fping.
|
||||
3. un-tar the files
|
||||
4. run ./fping-2.4b2_to/configure to create a Makefile.
|
||||
5. copy fping.spec to current directory
|
||||
5. copy fping.spec /tmp/fping directory
|
||||
6. tar -cvf fping.tar fping.spec fping-2.4b2_to
|
||||
7. gzip fping.tar to create a new fping.tar.gz
|
||||
8. copy fping.tar.gz to /usr/src/packages/SOURCES/ directory
|
||||
9. rpmbuild -ta /usr/src/packages/SOURCES/fping.tar.gz
|
||||
9. copy fping.patch to /usr/src/packages/SOURCES/ directory
|
||||
10. rpmbuild -ta /usr/src/packages/SOURCES/fping.tar.gz
|
||||
|
||||
|
12
fping/fping.patch
Normal file
12
fping/fping.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr fping-2.4b2_to/fping.c fping-2.4b2_to_new/fping.c
|
||||
--- fping-2.4b2_to/fping.c 2001-07-20 13:10:26.000000000 -0400
|
||||
+++ fping-2.4b2_to_new/fping.c 2008-02-08 16:28:44.000000000 -0500
|
||||
@@ -1574,7 +1574,7 @@
|
||||
if( handle_random_icmp( icp, result, &response_addr ) )
|
||||
num_othericmprcvd++;
|
||||
|
||||
- return 1;
|
||||
+ return 0;
|
||||
|
||||
}/* IF */
|
||||
|
@ -1,5 +1,5 @@
|
||||
Source: fping.tar.gz
|
||||
#Patch: fping.patch
|
||||
Patch: fping.patch
|
||||
Release: 1
|
||||
AutoReq: true
|
||||
AutoProv: true
|
||||
@ -16,7 +16,7 @@ URL: http://fping.sourceforge.net/
|
||||
fping pings hosts in parallel
|
||||
%Prep
|
||||
%setup -q
|
||||
#%patch
|
||||
%patch -p1
|
||||
|
||||
|
||||
%Build
|
||||
|
Loading…
Reference in New Issue
Block a user