A tool to quickly ping N number of hosts to determine their reachability

without flooding the network.
This commit is contained in:
David E. O'Brien 1997-03-25 09:58:02 +00:00
parent 4048633000
commit 16a624c849
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6006
7 changed files with 96 additions and 0 deletions

34
net/fping/Makefile Normal file
View file

@ -0,0 +1,34 @@
# ex:ts=8
# Ports collection makefile for: foo
# Version required: 2.1
# Date created: Mon Feb 03, 1997
# Whom: David O'Brien (obrien@FreeBSD.org)
#
# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $
#
DISTNAME= part01
PKGNAME= fping-1.20
CATEGORIES= net
MASTER_SITES= ftp://ftp.uu.net/usenet/comp.sources.unix/volume26/fping/ \
ftp://ftp.digital.com/pub/usenet/comp.sources.unix/volume26/fping/ \
ftp://ftp.wustl.edu/usenet/comp.sources.unix/volume26/fping/ \
ftp://ftp.isnet.is/pub/Usenet/Usenet.src/comp.sources.unix/v26/fping/
EXTRACT_SUFX= .Z
MAINTAINER= obrien@NUXI.com
BUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar
DIST_SUBDIR= fping
EXTRACT_CMD= zcat
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR}
NO_WRKSUBDIR= yes
MAN8= fping.8
post-install:
@strip ${PREFIX}/sbin/fping
.include <bsd.port.mk>

1
net/fping/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (fping/part01.Z) = b472b9936f814051370f5cada5e3ab0a

12
net/fping/files/patch-02 Normal file
View file

@ -0,0 +1,12 @@
--- fping.c.orig Tue Mar 25 01:24:16 1997
+++ fping.c Tue Mar 25 01:24:02 1997
@@ -185,7 +185,9 @@
extern char *optarg;
extern int optind,opterr;
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
extern char *sys_errlist[];
+#endif
#ifdef __cplusplus

32
net/fping/files/patch-03 Normal file
View file

@ -0,0 +1,32 @@
--- fping.man.orig Tue Mar 25 01:24:16 1997
+++ fping.man Tue Mar 25 01:25:33 1997
@@ -1,4 +1,4 @@
-.TH fping l
+.TH fping 8
.SH NAME
fping \- send ICMP ECHO_REQUEST packets to network hosts
.SH SYNOPSIS
@@ -70,12 +70,12 @@
example none the less.
.nf
-#!/usr/local/bin/perl
+#!/usr/bin/perl
require 'open2.pl';
$MAILTO = "root";
-$pid = &open2("OUTPUT","INPUT","/usr/local/bin/fping -u");
+$pid = &open2("OUTPUT","INPUT","/usr/local/sbin/fping -u");
@check=("slapshot","foo","foobar");
@@ -96,7 +96,7 @@
that are currently reachable.
.nf
-#!/usr/local/bin/perl
+#!/usr/bin/perl
$hosts_to_backup = `cat /etc/hosts.backup | fping -a`;

1
net/fping/pkg-comment Normal file
View file

@ -0,0 +1 @@
quickly ping N hosts to determine their reachability w/o flooding the network

14
net/fping/pkg-descr Normal file
View file

@ -0,0 +1,14 @@
A tool to quickly ping N number of hosts to determine their reachability
without flooding the network.
fping is different from ping in that you can specify any number of
hosts on the command line, or specify a file containing the lists
of hosts to ping. Instead of trying one host until it timeouts or
replies, fping will send out a ping packet and move on to the next
host in a round-robin fashion. If a host replies, it is noted and
removed from the list of hosts to check. If a host does not respond
within a certain time limit and/or retry limit it will be considered
unreachable.
Unlike ping, fping is meant to be used in scripts and its
output is easy to parse.

2
net/fping/pkg-plist Normal file
View file

@ -0,0 +1,2 @@
sbin/fping
man/man8/fping.8.gz