2 # Copyright (C) 2006-2014 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
15 PKG_SOURCE_URL
:=https
://github.com
/folkertvanheusden
/HTTPing
16 PKG_SOURCE_VERSION
:=v
$(PKG_VERSION
)
17 PKG_MIRROR_HASH
:=70c2a9baeed9fdb69009fcf159a5b7ef133df0b7f6df198ae2ccd1691b4713b8
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/cmake.mk
21 include $(INCLUDE_DIR
)/nls.mk
23 define Package
/httping
/Default
26 TITLE
:=Httping is like
'ping' but for http-requests
27 URL
:=https
://www.vanheusden.com
/httping
/
28 DEPENDS
:=$(INTL_DEPENDS
)
29 MAINTAINER
:=Marcin Jurkowski
<marcin1j@gmail.com
>
32 define Package
/httping
/Default
/description
33 Give it an url
, and it
'll show you how long it takes to connect, send a
34 request and retrieve the reply (only the headers). Be aware that the
35 transmission across the network also takes time!
38 define Package/httping
39 $(call Package/httping/Default)
41 TITLE+= (with SSL support)
45 define Package/httping/description
46 $(call Package/httping/Default/description)
47 This package is built with SSL support.
50 define Package/httping-nossl
51 $(call Package/httping/Default)
52 TITLE+= (without SSL support)
56 define Package/httping-nossl/description
57 $(call Package/httping/Default/description)
58 This package is built without SSL support.
63 -DENABLE_NCURSES=OFF \
66 ifeq ($(BUILD_VARIANT),nossl)
67 CMAKE_OPTIONS += -DENABLE_SSL=OFF
73 define Package/httping/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_BUILD_DIR)/httping $(1)/usr/bin/
78 Package/httping-nossl/install = $(Package/httping/install)
80 $(eval $(call BuildPackage,httping))
81 $(eval $(call BuildPackage,httping-nossl))