summaryrefslogtreecommitdiffstats
path: root/net/fping
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-03-25 09:58:02 +0000
committerobrien <obrien@FreeBSD.org>1997-03-25 09:58:02 +0000
commit9193d6bd4350479821be289a4112d607ea56adc4 (patch)
tree24f96a11dab025c14a385946c65f34207232732b /net/fping
parent24e18e4e51a3e5e7a1db901abe29898b92b8beb1 (diff)
downloadFreeBSD-ports-9193d6bd4350479821be289a4112d607ea56adc4.zip
FreeBSD-ports-9193d6bd4350479821be289a4112d607ea56adc4.tar.gz
A tool to quickly ping N number of hosts to determine their reachability
without flooding the network.
Diffstat (limited to 'net/fping')
-rw-r--r--net/fping/Makefile34
-rw-r--r--net/fping/distinfo1
-rw-r--r--net/fping/files/patch-0212
-rw-r--r--net/fping/files/patch-0332
-rw-r--r--net/fping/pkg-comment1
-rw-r--r--net/fping/pkg-descr14
-rw-r--r--net/fping/pkg-plist2
7 files changed, 96 insertions, 0 deletions
diff --git a/net/fping/Makefile b/net/fping/Makefile
new file mode 100644
index 0000000..8ecdeb7
--- /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 0000000..51a9be37
--- /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 0000000..10ca57b
--- /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 0000000..4a24bd0
--- /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 0000000..1a80cc9
--- /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 0000000..0e7d998
--- /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 0000000..e7e0fad
--- /dev/null
+++ b/net/fping/pkg-plist
@@ -0,0 +1,2 @@
+sbin/fping
+man/man8/fping.8.gz
OpenPOWER on IntegriCloud