diff options
author | sergei <sergei@FreeBSD.org> | 2003-12-18 01:24:58 +0800 |
---|---|---|
committer | sergei <sergei@FreeBSD.org> | 2003-12-18 01:24:58 +0800 |
commit | 5952c61ce0214d4ff99a33dfb50362a1cb411dff (patch) | |
tree | 75838b4c18c8423953c2f860c7587fb8cd2614a8 /net | |
parent | d63f623b6ab9d068cfb3504b30f76e2b7ba03910 (diff) | |
download | freebsd-ports-gnome-5952c61ce0214d4ff99a33dfb50362a1cb411dff.tar.gz freebsd-ports-gnome-5952c61ce0214d4ff99a33dfb50362a1cb411dff.tar.zst freebsd-ports-gnome-5952c61ce0214d4ff99a33dfb50362a1cb411dff.zip |
Add tcping 1.3.3, do a TCP connect to the given ip/port combination.
tcping does a TCP connect to the given ip/port combination.
The user can specify a timeout in seconds.
This is useful in shell scripts running in firewalled environments.
Often SYNs are just being dropped by firewalls,
thus connection establishment will be retried several times
(for minutes) until a TCP timeout is reached.
With tcping it is possible to check first if the desired port
is reachable and then start connection establishment.
Author: Marc Kirchner <mail(at)marc(dash)kirchner(dot)de>
WWW: http://stud.fh-heilbronn.de/~kirchner/tcping/tcping.html
PR: 60301
Submitted by: Dryice Liu
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/tcping/Makefile | 29 | ||||
-rw-r--r-- | net/tcping/distinfo | 1 | ||||
-rw-r--r-- | net/tcping/pkg-descr | 11 | ||||
-rw-r--r-- | net/tcping/pkg-plist | 4 |
5 files changed, 46 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index c5777da9f27d..182dffd4b27f 100644 --- a/net/Makefile +++ b/net/Makefile @@ -675,6 +675,7 @@ SUBDIR += tcpdump SUBDIR += tcpflow SUBDIR += tcpillust + SUBDIR += tcping SUBDIR += tcpmssd SUBDIR += tcpreen SUBDIR += tcpreplay diff --git a/net/tcping/Makefile b/net/tcping/Makefile new file mode 100644 index 000000000000..b0106cf6c073 --- /dev/null +++ b/net/tcping/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: tcping +# Date created: 2003-12-16 +# Whom: Dryice Liu +# +# $FreeBSD$ +# + +PORTNAME= tcping +PORTVERSION= 1.3.3 +CATEGORIES= net +MASTER_SITES= http://stud.fh-heilbronn.de/~kirchner/tcping/ + +MAINTAINER= dryice@liu.com.cn +COMMENT= Do a TCP connect to the given ip/port combination + +DOCS= README + +do-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -DHAVE_HSTRERROR -o tcping tcping.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tcping ${PREFIX}/bin/tcping +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/net/tcping/distinfo b/net/tcping/distinfo new file mode 100644 index 000000000000..ad64f4fb8596 --- /dev/null +++ b/net/tcping/distinfo @@ -0,0 +1 @@ +MD5 (tcping-1.3.3.tar.gz) = 93621ec0a5d460ca22828d67178ec908 diff --git a/net/tcping/pkg-descr b/net/tcping/pkg-descr new file mode 100644 index 000000000000..19eef0a7b662 --- /dev/null +++ b/net/tcping/pkg-descr @@ -0,0 +1,11 @@ +tcping does a TCP connect to the given ip/port combination. +The user can specify a timeout in seconds. +This is useful in shell scripts running in firewalled environments. +Often SYNs are just being dropped by firewalls, +thus connection establishment will be retried several times +(for minutes) until a TCP timeout is reached. +With tcping it is possible to check first if the desired port +is reachable and then start connection establishment. + +Author: Marc Kirchner <mail(at)marc(dash)kirchner(dot)de> +WWW: http://stud.fh-heilbronn.de/~kirchner/tcping/tcping.html diff --git a/net/tcping/pkg-plist b/net/tcping/pkg-plist new file mode 100644 index 000000000000..b7f6d403973c --- /dev/null +++ b/net/tcping/pkg-plist @@ -0,0 +1,4 @@ +@comment $FreeBSD$ +bin/tcping +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% |