[packages] tor: update to 0.2.1.22
[packages.git] / net / httping / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=httping
11 PKG_VERSION:=1.4.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
16 PKG_MD5SUM:=bde1ff3c01343d2371d8f34fbf8a1d9a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/httping
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+libopenssl
26   TITLE:=Httping is like 'ping' but for http-requests
27   URL:=http://www.vanheusden.com/httping/
28 endef
29
30 define Package/httping/description
31         Give it an url, and it'll show you how long it takes to connect, send a
32         request and retrieve the reply (only the headers). Be aware that the
33         transmission across the network also takes time!
34 endef
35
36 MAKE_FLAGS += \
37         CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
38
39 define Package/httping/install
40         $(INSTALL_DIR) $(1)/usr/bin
41         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,httping))