diff --git a/fping/Build-nodes b/fping/Build-nodes index e46505a..4070e29 100644 --- a/fping/Build-nodes +++ b/fping/Build-nodes @@ -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 diff --git a/fping/fping.patch b/fping/fping.patch new file mode 100644 index 0000000..71c91d9 --- /dev/null +++ b/fping/fping.patch @@ -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 */ + diff --git a/fping/fping.spec b/fping/fping.spec index d4e7c79..ab68c02 100644 --- a/fping/fping.spec +++ b/fping/fping.spec @@ -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