[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[openwrt/svn-archive/archive.git] / net / httping / Makefile
1 #
2 # Copyright (C) 2006-2009 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.2.6
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:=2fa68b95d190a9e101232792df49e1ad
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/httping
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libopenssl
24 TITLE:=Httping is like 'ping' but for http-requests
25 URL:=http://www.vanheusden.com/httping/
26 endef
27
28 define Package/httping/description
29 Give it an url, and it'll show you how long it takes to connect, send a
30 request and retrieve the reply (only the headers). Be aware that the
31 transmission across the network also takes time!
32 endef
33
34 define Build/Compile
35 $(call Build/Compile/Default, \
36 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
37 )
38 endef
39
40 define Package/httping/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/httping $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,httping))