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