diff --git a/AIX/fping/Build-nodes b/AIX/fping/Build-nodes index 0f6bc2f..905c9e4 100644 --- a/AIX/fping/Build-nodes +++ b/AIX/fping/Build-nodes @@ -5,18 +5,13 @@ Build notes 2. cd to /tmp/fping. 3. un-tar the files 4. run ./fping-2.4b2_to/configure to create a Makefile. -5. Change line 121 - from - extern int h_errno; - to - #ifndef h_errno - extern int h_errno; - #endif - to avoid compiling errors. -6. tar -cvf fping.tar fping-2.4b2_to -7. gzip fping.tar to create a new fping.tar.gz -8. copy fping.tar.gz to /opt/freeware/src/packages/SOURCES/ directory +5. tar -cvf fping.tar fping-2.4b2_to +6. gzip fping.tar to create a new fping.tar.gz +7. copy fping.tar.gz to /opt/freeware/src/packages/SOURCES/ directory +8. copy fping.patch to /opt/freeware/src/packages/SOURCES/ directory 9. copy fping.spec to /opt/freeware/src/packages/SPECS/ directory 10. cd to /opt/freeware/src/packages/SPECS 11. run rpm -bb fping.spec + +* patch was created using "diff -r -C 3 fping-2.4b2_to fping-2.4b2_to_new" command diff --git a/AIX/fping/fping.patch b/AIX/fping/fping.patch new file mode 100644 index 0000000..797e020 --- /dev/null +++ b/AIX/fping/fping.patch @@ -0,0 +1,40 @@ +diff -r -C 3 fping-2.4b2_to/fping.c fping-2.4b2_to_new/fping.c +*** fping-2.4b2_to/fping.c Fri Jul 20 13:10:26 2001 +--- fping-2.4b2_to_new/fping.c Fri Feb 8 17:23:58 2008 +*************** +*** 118,125 **** + + extern char *optarg; + extern int optind,opterr; + extern int h_errno; +! + #ifdef __cplusplus + } + #endif /* __cplusplus */ +--- 118,126 ---- + + extern char *optarg; + extern int optind,opterr; ++ #ifndef h_errno + extern int h_errno; +! #endif + #ifdef __cplusplus + } + #endif /* __cplusplus */ +*************** +*** 1574,1580 **** + if( handle_random_icmp( icp, result, &response_addr ) ) + num_othericmprcvd++; + +! return 1; + + }/* IF */ + +--- 1575,1581 ---- + if( handle_random_icmp( icp, result, &response_addr ) ) + num_othericmprcvd++; + +! return 0; + + }/* IF */ + diff --git a/AIX/fping/fping.spec b/AIX/fping/fping.spec index 7468949..e77d2a0 100644 --- a/AIX/fping/fping.spec +++ b/AIX/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 diff --git a/fping/Build-nodes b/fping/Build-nodes index 4070e29..08e68ce 100644 --- a/fping/Build-nodes +++ b/fping/Build-nodes @@ -12,3 +12,7 @@ Build notes 9. copy fping.patch to /usr/src/packages/SOURCES/ directory 10. rpmbuild -ta /usr/src/packages/SOURCES/fping.tar.gz + +*The patch was created using "diff -uNr fping-2.4b2_to fping-2.4b2_to_new" command. +**on a RedHat Linux machine, /usr/src/packages is /usr/src/redhat. +