mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-21 17:11:45 +00:00
spec file, patch and build notes added for building latest fping on AIX.
This commit is contained in:
parent
149769e28f
commit
6839ca1faf
@ -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
|
||||
|
40
AIX/fping/fping.patch
Normal file
40
AIX/fping/fping.patch
Normal file
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user