packages/net/httping/Makefile
2009-04-29 12:56:17 +00:00

46 lines
1.1 KiB
Makefile

#
# Copyright (C) 2006-2009 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.2.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
PKG_MD5SUM:=2fa68b95d190a9e101232792df49e1ad
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
define Build/Compile
$(call Build/Compile/Default, \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
)
endef
define Package/httping/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/httping $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,httping))