Subject: pkg/8652: pkg submission: net/echoping
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@mail.weird.com>
List: netbsd-bugs
Date: 10/19/1999 22:15:52
>Number: 8652
>Category: pkg
>Synopsis: pkg submission: net/echoping
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager (NetBSD software packages system bug manager)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Oct 19 22:15:00 1999
>Last-Modified:
>Originator: Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release: 1999/10/19
>Environment:
System: NetBSD
>Description:
here's a pkg for echoping, a handy tool for testing TCP servers
Note that the ICP support really needs the following, from IANA's
<URL:http://www.isi.edu/in-notes/iana/assignments/port-numbers>,
added to /etc/services too:
icpv2 3130/tcp # ICPv2
icpv2 3130/udp # ICPv2
# Duane Wessels <wessels@nlanr.net>
>How-To-Repeat:
desire the ability test for availability of a Squid server....
>Fix:
unshar the following in .../pkgsrc/net and tweak to taste:
# 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:
#
# Makefile
# files/
# files/md5
# patches/
# patches/patch-aa
# patches/patch-ab
# pkg/
# pkg/COMMENT
# pkg/DESCR
# pkg/PLIST
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X#
X# pkgsrc/net/echoping
X#
X
XDISTNAME= echoping-2.2.0
XCATEGORIES= net
XMASTER_SITES= ftp://ftp.internatif.org/pub/unix/echoping/
X
XMAINTAINER= packages@netbsd.org
X
X.include "../../mk/bsd.pkg.mk"
END-of-Makefile
echo c - files/
mkdir -p files/ > /dev/null 2>&1
echo x - files/md5
sed 's/^X//' >files/md5 << 'END-of-files/md5'
X$NetBSD$
X
XMD5 (echoping-2.2.0.tar.gz) = 0e72fbcbd69bbd914c036ebdd54492a0
END-of-files/md5
echo c - patches/
mkdir -p patches/ > /dev/null 2>&1
echo x - patches/patch-aa
sed 's/^X//' >patches/patch-aa << 'END-of-patches/patch-aa'
X*** Makefile.orig Mon Aug 31 10:57:28 1998
X***************
X*** 1,6 ****
X # Choose your C compiler
X! CC = gcc
X! #CC = cc
X
X # Possible options:
X # HTTP : supports the HTTP protocol (Add HTTP10 is for the old HTTP 1.0 protocol,
X--- 1,6 ----
X # Choose your C compiler
X! #CC = gcc
X! CC = cc
X
X # Possible options:
X # HTTP : supports the HTTP protocol (Add HTTP10 is for the old HTTP 1.0 protocol,
X***************
X*** 9,15 ****
X # ICP : supports the ICP protocol (Web proxy/caches). Requires HTTP.
X # USE_SIGACTION: uses sigaction instead of signal. Necessary on pure BSD
X # machines because we need to change the semantic of signals.
X! OPTIONS = -DHTTP -DUSE_SIGACTION
X
X # Flags for gcc
X CFLAGS = -c -O3 $(OPTIONS) -Wall
X--- 9,15 ----
X # ICP : supports the ICP protocol (Web proxy/caches). Requires HTTP.
X # USE_SIGACTION: uses sigaction instead of signal. Necessary on pure BSD
X # machines because we need to change the semantic of signals.
X! OPTIONS = -DHTTP -DICP -DUSE_SIGACTION
X
X # Flags for gcc
X CFLAGS = -c -O3 $(OPTIONS) -Wall
X***************
X*** 22,32 ****
X # For Solaris
X #LDFLAGS = -o echoping -lsocket -lnsl
X
X! INSTALL=install
X INSTALL_BIN_FLAGS=-m 755
X INSTALL_MAN_FLAGS=-m 644
X
X! ROOT=/usr/local
X DESTBIN=$(ROOT)/bin
X DESTMAN=$(ROOT)/man/man1
X
X--- 22,32 ----
X # For Solaris
X #LDFLAGS = -o echoping -lsocket -lnsl
X
X! INSTALL=install -c
X INSTALL_BIN_FLAGS=-m 755
X INSTALL_MAN_FLAGS=-m 644
X
X! ROOT=${PREFIX}
X DESTBIN=$(ROOT)/bin
X DESTMAN=$(ROOT)/man/man1
X
END-of-patches/patch-aa
echo x - patches/patch-ab
sed 's/^X//' >patches/patch-ab << 'END-of-patches/patch-ab'
X*** echoping.h.orig Mon Aug 31 10:57:28 1998
X***************
X*** 58,64 ****
X #define DISCARD_TCP_PORT "discard"
X #define CHARACTER_GENERATOR_TCP_PORT "chargen"
X #define HTTP_TCP_PORT "http"
X! #define ICP_UDP_PORT "icp"
X
X #define USE_ECHO 1
X #define USE_DISCARD 2
X--- 58,64 ----
X #define DISCARD_TCP_PORT "discard"
X #define CHARACTER_GENERATOR_TCP_PORT "chargen"
X #define HTTP_TCP_PORT "http"
X! #define ICP_UDP_PORT "icpv2"
X
X #define USE_ECHO 1
X #define USE_DISCARD 2
END-of-patches/patch-ab
echo c - pkg/
mkdir -p pkg/ > /dev/null 2>&1
echo x - pkg/COMMENT
sed 's/^X//' >pkg/COMMENT << 'END-of-pkg/COMMENT'
X"echoping" test performance of a remote TCP service.
END-of-pkg/COMMENT
echo x - pkg/DESCR
sed 's/^X//' >pkg/DESCR << 'END-of-pkg/DESCR'
X"echoping" is a small program to test (approximatively) performances of a
Xremote host by sending it TCP "echo" (or other protocol) packets.
END-of-pkg/DESCR
echo x - pkg/PLIST
sed 's/^X//' >pkg/PLIST << 'END-of-pkg/PLIST'
Xbin/echoping
Xman/man1/echoping.1
END-of-pkg/PLIST
exit
>Audit-Trail:
>Unformatted: