2006-10-30 13:51:50 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-08-02 09:13:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=httping
|
2008-07-06 14:16:21 +00:00
|
|
|
PKG_VERSION:=1.2.6
|
2006-08-02 09:13:41 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
2006-10-28 13:36:27 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
|
2008-07-06 14:16:21 +00:00
|
|
|
PKG_MD5SUM:=2fa68b95d190a9e101232792df49e1ad
|
2006-08-02 09:13:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/httping
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libopenssl
|
|
|
|
TITLE:=Httping is like 'ping' but for http-requests
|
|
|
|
URL:=http://www.vanheusden.com/httping/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/httping/description
|
2008-07-06 14:16:21 +00:00
|
|
|
Give it an url, and it'll show you how long it takes to connect, send a
|
|
|
|
request and retrieve the reply (only the headers). Be aware that the
|
2007-10-14 04:32:56 +00:00
|
|
|
transmission across the network also takes time!
|
|
|
|
endef
|
|
|
|
|
2006-08-18 21:21:06 +00:00
|
|
|
define Build/Compile
|
2007-02-27 10:22:09 +00:00
|
|
|
$(call Build/Compile/Default, \
|
2009-04-29 12:56:17 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
2007-02-27 10:22:09 +00:00
|
|
|
)
|
2006-08-02 09:13:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/httping/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/httping $(1)/usr/sbin/
|
2006-08-02 09:13:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,httping))
|