BitTorrent btpd 0.13 package
[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.2.2
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:=cde335c0110fb1b156afdf80ff5ade1d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/httping
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libopenssl
27 TITLE:=Httping is like 'ping' but for http-requests
28 URL:=http://www.vanheusden.com/httping/
29 endef
30
31 define Package/httping/description
32 Give it an url, and it'll show you how long it takes to connect, send a
33 request and retrieve the reply (only the headers). Be aware that the
34 transmission across the network also takes time!
35 endef
36
37 define Build/Compile
38 $(call Build/Compile/Default, \
39 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
40 )
41 endef
42
43 define Package/httping/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/httping $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,httping))