From owner-freebsd-ports Sun Aug 13 21:50:36 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 667CD37B986 for ; Sun, 13 Aug 2000 21:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA94158; Sun, 13 Aug 2000 21:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from xena.gsicomp.on.ca (gsi.enoreo.on.ca [209.82.52.145]) by hub.freebsd.org (Postfix) with ESMTP id E180A37B694 for ; Sun, 13 Aug 2000 21:41:13 -0700 (PDT) (envelope-from root@gabby.gsicomp.on.ca) Received: from gabby.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.42.130.87]) by xena.gsicomp.on.ca (8.10.1/8.9.2) with ESMTP id e7E4fAK78857 for ; Mon, 14 Aug 2000 00:41:11 -0400 (EDT) (envelope-from root@gabby.gsicomp.on.ca) Received: (from root@localhost) by gabby.gsicomp.on.ca (8.9.3/8.9.3) id AAA46684; Mon, 14 Aug 2000 00:16:50 -0400 (EDT) (envelope-from root) Message-Id: <200008140416.AAA46684@gabby.gsicomp.on.ca> Date: Mon, 14 Aug 2000 00:16:50 -0400 (EDT) From: Charlie Root Reply-To: root@gabby.gsicomp.on.ca To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/20586: Update port: net/fping updated to v2.2b1 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20586 >Category: ports >Synopsis: Update port: net/fping updated to v2.2b1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 13 21:50:02 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Matthew Emmerton >Release: FreeBSD 3.4-RELEASE i386 >Organization: GSI Computer Services >Environment: 3.4-RELEASE >Description: Updated fping from 1.x to 2.2b1. Shar follows. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # fping # fping/files # fping/files/md5 # fping/patches # fping/patches/patch-ac # fping/patches/patch-aa # fping/patches/patch-ad # fping/patches/patch-ab # fping/pkg # fping/pkg/COMMENT # fping/pkg/DESCR # fping/pkg/PLIST # fping/Makefile # echo c - fping mkdir -p fping > /dev/null 2>&1 echo c - fping/files mkdir -p fping/files > /dev/null 2>&1 echo x - fping/files/md5 sed 's/^X//' >fping/files/md5 << 'END-of-fping/files/md5' XMD5 (fping-2.2b1.tar.gz) = 76b398a9b97ee4f801a2e7ed37bc29a3 END-of-fping/files/md5 echo c - fping/patches mkdir -p fping/patches > /dev/null 2>&1 echo x - fping/patches/patch-ac sed 's/^X//' >fping/patches/patch-ac << 'END-of-fping/patches/patch-ac' X*** fping.c.orig Sun Aug 6 03:17:57 2000 X--- fping.c Sun Aug 6 03:19:25 2000 X*************** X*** 891,897 **** X if (report_all_rtts_flag) { X for (j = 0; j < h->num_sent; j++) X if ((resp = h->resp_times[j]) >= 0) X! fprintf(stderr, " %d.%d", resp/10, resp%10); X else fprintf(stderr, " -"); X fprintf(stderr, "\n"); X } else { X--- 891,897 ---- X if (report_all_rtts_flag) { X for (j = 0; j < h->num_sent; j++) X if ((resp = h->resp_times[j]) >= 0) X! fprintf(stderr, " %s", sprint_tm(resp)); X else fprintf(stderr, " -"); X fprintf(stderr, "\n"); X } else { END-of-fping/patches/patch-ac echo x - fping/patches/patch-aa sed 's/^X//' >fping/patches/patch-aa << 'END-of-fping/patches/patch-aa' X*** fping.c.orig Wed Jan 8 15:29:43 1997 X--- fping.c Sun Aug 6 02:01:08 2000 X*************** X*** 219,225 **** X--- 219,227 ---- X X extern char *optarg; X extern int optind,opterr; X+ #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) X extern char *sys_errlist[]; X+ #endif X extern int h_errno; X X #ifdef __cplusplus END-of-fping/patches/patch-aa echo x - fping/patches/patch-ad sed 's/^X//' >fping/patches/patch-ad << 'END-of-fping/patches/patch-ad' X*** fping.c.orig Sun Aug 6 03:17:57 2000 X--- fping.c Sun Aug 6 03:38:09 2000 X*************** X*** 486,498 **** X while ((c = getopt(argc, argv, X "edhlmnqusaAvz:t:i:p:f:r:c:b:C:Q:B:")) != EOF) { X switch (c) { X! case 't': if (!(timeout = (u_int)atoi(optarg)*10)) X usage(); break; X case 'r': if (!(retry = (u_int)atoi(optarg))) X usage(); break; X! case 'i': if (!(interval = (u_int)atoi(optarg)*10)) X usage(); break; X! case 'p': if (!(perhost_interval = (u_int)atoi(optarg)*10)) X usage(); break; X case 'c': if (!(count = (u_int)atoi(optarg))) X usage(); X--- 486,498 ---- X while ((c = getopt(argc, argv, X "edhlmnqusaAvz:t:i:p:f:r:c:b:C:Q:B:")) != EOF) { X switch (c) { X! case 't': if (!(timeout = (u_int)atoi(optarg)*100)) X usage(); break; X case 'r': if (!(retry = (u_int)atoi(optarg))) X usage(); break; X! case 'i': if (!(interval = (u_int)atoi(optarg)*100)) X usage(); break; X! case 'p': if (!(perhost_interval = (u_int)atoi(optarg)*100)) X usage(); break; X case 'c': if (!(count = (u_int)atoi(optarg))) X usage(); X*************** X*** 556,565 **** X usage(); X } X X! if ( (interval < MIN_INTERVAL * 10 || X! perhost_interval < MIN_PERHOST_INTERVAL * 10 || X retry > MAX_RETRY || X! timeout < MIN_TIMEOUT * 10) X && getuid() ) { X fprintf(stderr,"%s: these options are too risky for mere mortals.\n",prog); X fprintf(stderr, X--- 556,565 ---- X usage(); X } X X! if ( (interval < MIN_INTERVAL * 100 || X! perhost_interval < MIN_PERHOST_INTERVAL * 100 || X retry > MAX_RETRY || X! timeout < MIN_TIMEOUT * 100) X && getuid() ) { X fprintf(stderr,"%s: these options are too risky for mere mortals.\n",prog); X fprintf(stderr, END-of-fping/patches/patch-ad echo x - fping/patches/patch-ab sed 's/^X//' >fping/patches/patch-ab << 'END-of-fping/patches/patch-ab' X*** fping.8.orig Sun Aug 6 02:09:37 2000 X--- fping.8 Sun Aug 6 02:10:50 2000 X*************** X*** 141,152 **** X example none the less. X .nf X X! #!/usr/local/bin/perl X require 'open2.pl'; X X $MAILTO = "root"; X X! $pid = &open2("OUTPUT","INPUT","/usr/local/bin/fping -u"); X X @check=("slapshot","foo","foobar"); X X--- 141,152 ---- X example none the less. X .nf X X! #!/usr/bin/perl X require 'open2.pl'; X X $MAILTO = "root"; X X! $pid = &open2("OUTPUT","INPUT","/usr/local/sbin/fping -u"); X X @check=("slapshot","foo","foobar"); X X*************** X*** 167,173 **** X that are currently reachable. X .nf X X! #!/usr/local/bin/perl X X $hosts_to_backup = `cat /etc/hosts.backup | fping -a`; X X--- 167,173 ---- X that are currently reachable. X .nf X X! #!/usr/bin/perl X X $hosts_to_backup = `cat /etc/hosts.backup | fping -a`; X X*************** X*** 203,207 **** X X .ni X .SH SEE ALSO X! netstat(1), ping(8), ifconfig(8c) X X--- 203,207 ---- X X .ni X .SH SEE ALSO X! netstat(1), ping(8), ifconfig(8) X END-of-fping/patches/patch-ab echo c - fping/pkg mkdir -p fping/pkg > /dev/null 2>&1 echo x - fping/pkg/COMMENT sed 's/^X//' >fping/pkg/COMMENT << 'END-of-fping/pkg/COMMENT' XQuickly ping N hosts w/o flooding the network END-of-fping/pkg/COMMENT echo x - fping/pkg/DESCR sed 's/^X//' >fping/pkg/DESCR << 'END-of-fping/pkg/DESCR' XA tool to quickly ping N number of hosts to determine their reachability Xwithout flooding the network. X X fping is different from ping in that you can specify any number of X hosts on the command line, or specify a file containing the lists X of hosts to ping. Instead of trying one host until it timeouts or X replies, fping will send out a ping packet and move on to the next X host in a round-robin fashion. If a host replies, it is noted and X removed from the list of hosts to check. If a host does not respond X within a certain time limit and/or retry limit it will be considered X unreachable. X X Unlike ping, fping is meant to be used in scripts and its X output is easy to parse. X XWWW: http://www.stanford.edu/~schemers/docs/fping/ END-of-fping/pkg/DESCR echo x - fping/pkg/PLIST sed 's/^X//' >fping/pkg/PLIST << 'END-of-fping/pkg/PLIST' Xsbin/fping END-of-fping/pkg/PLIST echo x - fping/Makefile sed 's/^X//' >fping/Makefile << 'END-of-fping/Makefile' X# ex:ts=8 X# Ports collection makefile for: fping X# Date created: Tue Mar 25, 1997 X# Whom: David O'Brien (obrien@NUXI.com) X# X# $FreeBSD: ports/net/fping/Makefile,v 1.10 2000/04/20 20:18:57 mharo Exp $ X# X XPORTNAME= fping XPORTVERSION= 2.2b1 XCATEGORIES= net XMASTER_SITES= http://www.stanford.edu/~schemers/docs/fping/ X XMAINTAINER= matt@gsicomp.on.ca X XGNU_CONFIGURE= yes X XMAN8= fping.8 X Xpost-install: X @strip ${PREFIX}/sbin/fping X X.include END-of-fping/Makefile exit >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message