cccb417e8f
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. http://www.linuxco.de/tcping/tcping.html [Peter: wrap help text, pass TARGET_LDFLAGS] Signed-off-by: Arnaud Rébillout <rebillout@syscom.ch> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
22 lines
561 B
Makefile
22 lines
561 B
Makefile
################################################################################
|
|
#
|
|
# tcping
|
|
#
|
|
################################################################################
|
|
|
|
TCPING_VERSION = 1.3.5
|
|
TCPING_SITE = http://www.linuxco.de/tcping
|
|
TCPING_LICENSE = GPLv3+
|
|
TCPING_LICENSE_FILES = LICENSE
|
|
|
|
define TCPING_BUILD_CMDS
|
|
$(MAKE) CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
|
|
-C $(@D) tcping.linux
|
|
endef
|
|
|
|
define TCPING_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/tcping $(TARGET_DIR)/usr/bin/tcping
|
|
endef
|
|
|
|
$(eval $(generic-package))
|