add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
[openwrt/svn-archive/archive.git] / net / httping / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=httping
11 PKG_VERSION:=1.0.10
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=998b00b8babeb3196d28c20ad87d9c15
14
15 PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_CAT:=zcat
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 DESCRIPTION:=Httping is like 'ping' but for http-requests.\\\
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 URL:=http://www.vanheusden.com/httping/
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \
37 CC="$(TARGET_CC)" STAGING_DIR=$(STAGING_DIR)
38 endef
39
40 define Package/httping/install
41 mkdir -p $(1)/usr/sbin
42 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,httping))