mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-12-25 12:41:33 +00:00
Add fping modifications to xcat-dep
This commit is contained in:
parent
764ee928e8
commit
3fbf48e595
72
fping/fping.patch
Normal file
72
fping/fping.patch
Normal file
@ -0,0 +1,72 @@
|
||||
*** fping.c.ORIG Mon Nov 20 09:45:00 2000
|
||||
--- fping.c Mon Nov 20 09:45:51 2000
|
||||
***************
|
||||
*** 219,225 ****
|
||||
|
||||
extern char *optarg;
|
||||
extern int optind,opterr;
|
||||
! extern char *sys_errlist[];
|
||||
extern int h_errno;
|
||||
|
||||
#ifdef __cplusplus
|
||||
--- 219,225 ----
|
||||
|
||||
extern char *optarg;
|
||||
extern int optind,opterr;
|
||||
! /*extern char *sys_errlist[];*/
|
||||
extern int h_errno;
|
||||
|
||||
#ifdef __cplusplus
|
||||
***************
|
||||
*** 842,848 ****
|
||||
if(verbose_flag || unreachable_flag) {
|
||||
printf("%s", h->host);
|
||||
if (verbose_flag)
|
||||
! printf(" is unreachable");
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
--- 842,849 ----
|
||||
if(verbose_flag || unreachable_flag) {
|
||||
printf("%s", h->host);
|
||||
if (verbose_flag)
|
||||
! /* printf(" is unreachable");*/
|
||||
! printf(": noping");
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
***************
|
||||
*** 1129,1135 ****
|
||||
/* handle some problem */
|
||||
if (handle_random_icmp(icp, result, &response_addr))
|
||||
num_othericmprcvd++;
|
||||
! return 1;
|
||||
}
|
||||
|
||||
if (icp->icmp_id != ident)
|
||||
--- 1130,1136 ----
|
||||
/* handle some problem */
|
||||
if (handle_random_icmp(icp, result, &response_addr))
|
||||
num_othericmprcvd++;
|
||||
! return 0;
|
||||
}
|
||||
|
||||
if (icp->icmp_id != ident)
|
||||
***************
|
||||
*** 1196,1202 ****
|
||||
num_alive++;
|
||||
if(verbose_flag||alive_flag) {
|
||||
printf("%s",h->host);
|
||||
! if (verbose_flag) printf(" is alive");
|
||||
if (elapsed_flag) printf(" (%s ms)", sprint_tm(this_reply));
|
||||
if (response_addr.sin_addr.s_addr != h->saddr.sin_addr.s_addr)
|
||||
printf(" [<- %s]", inet_ntoa(response_addr.sin_addr));
|
||||
--- 1197,1204 ----
|
||||
num_alive++;
|
||||
if(verbose_flag||alive_flag) {
|
||||
printf("%s",h->host);
|
||||
! /* if (verbose_flag) printf(" is alive");*/
|
||||
! if (verbose_flag) printf(": ping");
|
||||
if (elapsed_flag) printf(" (%s ms)", sprint_tm(this_reply));
|
||||
if (response_addr.sin_addr.s_addr != h->saddr.sin_addr.s_addr)
|
||||
printf(" [<- %s]", inet_ntoa(response_addr.sin_addr));
|
34
fping/fping.spec
Normal file
34
fping/fping.spec
Normal file
@ -0,0 +1,34 @@
|
||||
Source: fping-2.2b1.tar.gz
|
||||
Patch: fping.patch
|
||||
Release: 1
|
||||
AutoReq: true
|
||||
AutoProv: true
|
||||
BuildRoot: %{_tmppath}/fping-2.2b1-root
|
||||
|
||||
Name: fping
|
||||
Version: 2.2b1
|
||||
Group: System/Utilities
|
||||
License: Stanford
|
||||
Summary: Pings hosts in parallel
|
||||
URL: http://fping.sourceforge.net/
|
||||
|
||||
%Description
|
||||
fping pings hosts in parallel
|
||||
%Prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
|
||||
%Build
|
||||
make
|
||||
%Install
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
cp fping $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8/
|
||||
cp fping.8 $RPM_BUILD_ROOT/usr/share/man/man8/
|
||||
pwd
|
||||
echo $RPM_BUILD_ROOT
|
||||
%Files
|
||||
%defattr(-,root,root)
|
||||
/usr/bin/fping
|
||||
/usr/share/man/man8/fping.8.gz
|
Loading…
Reference in New Issue
Block a user