diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1997-03-25 09:58:02 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1997-03-25 09:58:02 +0000 |
commit | 16a624c8497d110dd95e4fb049fee5320bef3804 (patch) | |
tree | f9b7d54cf638f66b27756d3957ec8aa5b641338a | |
parent | previous was a bogus commit. Important lines accidently got deleted. (diff) |
A tool to quickly ping N number of hosts to determine their reachability
without flooding the network.
Notes
Notes:
svn path=/head/; revision=6006
-rw-r--r-- | net/fping/Makefile | 34 | ||||
-rw-r--r-- | net/fping/distinfo | 1 | ||||
-rw-r--r-- | net/fping/files/patch-02 | 12 | ||||
-rw-r--r-- | net/fping/files/patch-03 | 32 | ||||
-rw-r--r-- | net/fping/pkg-comment | 1 | ||||
-rw-r--r-- | net/fping/pkg-descr | 14 | ||||
-rw-r--r-- | net/fping/pkg-plist | 2 |
7 files changed, 96 insertions, 0 deletions
diff --git a/net/fping/Makefile b/net/fping/Makefile new file mode 100644 index 000000000000..8ecdeb798da2 --- /dev/null +++ b/net/fping/Makefile @@ -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> diff --git a/net/fping/distinfo b/net/fping/distinfo new file mode 100644 index 000000000000..51a9be37349f --- /dev/null +++ b/net/fping/distinfo @@ -0,0 +1 @@ +MD5 (fping/part01.Z) = b472b9936f814051370f5cada5e3ab0a diff --git a/net/fping/files/patch-02 b/net/fping/files/patch-02 new file mode 100644 index 000000000000..10ca57b2785c --- /dev/null +++ b/net/fping/files/patch-02 @@ -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 diff --git a/net/fping/files/patch-03 b/net/fping/files/patch-03 new file mode 100644 index 000000000000..4a24bd07b463 --- /dev/null +++ b/net/fping/files/patch-03 @@ -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`; + diff --git a/net/fping/pkg-comment b/net/fping/pkg-comment new file mode 100644 index 000000000000..1a80cc9d1311 --- /dev/null +++ b/net/fping/pkg-comment @@ -0,0 +1 @@ +quickly ping N hosts to determine their reachability w/o flooding the network diff --git a/net/fping/pkg-descr b/net/fping/pkg-descr new file mode 100644 index 000000000000..0e7d998a6ca1 --- /dev/null +++ b/net/fping/pkg-descr @@ -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. diff --git a/net/fping/pkg-plist b/net/fping/pkg-plist new file mode 100644 index 000000000000..e7e0fadd7ecc --- /dev/null +++ b/net/fping/pkg-plist @@ -0,0 +1,2 @@ +sbin/fping +man/man8/fping.8.gz |