3fe7a77e67
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19164 3c298f89-4303-0410-b956-a3cf2f4a3e73
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=httping
|
|
PKG_VERSION:=1.4.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
|
|
PKG_MD5SUM:=bde1ff3c01343d2371d8f34fbf8a1d9a
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
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
|
|
|
|
define Package/httping/description
|
|
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
|
|
transmission across the network also takes time!
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
|
|
|
define Package/httping/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,httping))
|