2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=http
://www.vanheusden.com
/httping
16 PKG_MD5SUM
:=49f72b124afb8a60f152ec674a162ad6
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/httping
/Default
26 TITLE
:=Httping is like
'ping' but for http-requests
27 URL
:=http
://www.vanheusden.com
/httping
/
30 define Package
/httping
/Default
/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!
36 define Package/httping
37 $(call Package/httping/Default)
39 TITLE+= (with SSL support)
43 define Package/httping/description
44 $(call Package/httping/Default/description)
45 This package is built with SSL support.
48 define Package/httping-nossl
49 $(call Package/httping/Default)
50 TITLE+= (without SSL support)
54 define Package/httping-nossl/description
55 $(call Package/httping/Default/description)
56 This package is built without SSL support.
59 TARGET_CFLAGS += -D_GNU_SOURCE
61 ifeq ($(BUILD_VARIANT),nossl)
62 MAKE_FLAGS += SSL="no"
63 TARGET_CFLAGS += -DNO_SSL
66 define Package/httping/install
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
71 Package/httping-nossl/install = $(Package/httping/install)
73 $(eval $(call BuildPackage,httping))
74 $(eval $(call BuildPackage,httping-nossl))