diff options
author | Sergei Kolobov <sergei@FreeBSD.org> | 2003-12-17 17:24:58 +0000 |
---|---|---|
committer | Sergei Kolobov <sergei@FreeBSD.org> | 2003-12-17 17:24:58 +0000 |
commit | d11936114f4a6fa2a85717456d4f2663888a02e7 (patch) | |
tree | 437b41d8f6c20bf61b0a4ad8b6604f0f615def26 /net/tcping/Makefile | |
parent | 289ced7fc41f01609afaad71a0f8671ca1e70467 (diff) |
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
Notes
Notes:
svn path=/head/; revision=96073
Diffstat (limited to 'net/tcping/Makefile')
-rw-r--r-- | net/tcping/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
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> |