[packages] httping: update to 2.3.4
[openwrt/svn-archive/archive.git] / net / httping / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=httping
11 PKG_VERSION:=2.3.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.vanheusden.com/httping
16 PKG_MD5SUM:=7a71ed513f9f22fe331b783a3d36767e
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/httping/Default
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Httping is like 'ping' but for http-requests
28 URL:=http://www.vanheusden.com/httping/
29 endef
30
31 define Package/httping/Default/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 Package/httping
38 $(call Package/httping/Default)
39 DEPENDS+= +libopenssl
40 TITLE+= (with SSL support)
41 VARIANT:=ssl
42 endef
43
44 define Package/httping/description
45 $(call Package/httping/Default/description)
46 This package is built with SSL support.
47 endef
48
49 define Package/httping-nossl
50 $(call Package/httping/Default)
51 TITLE+= (without SSL support)
52 VARIANT:=nossl
53 endef
54
55 define Package/httping-nossl/description
56 $(call Package/httping/Default/description)
57 This package is built without SSL support.
58 endef
59
60 define Build/Configure
61 endef
62
63 MAKE_FLAGS += \
64 DEBUG="no" \
65 FW="no" \
66 NC="no" \
67 TFO="no"
68
69 ifeq ($(BUILD_VARIANT),nossl)
70 MAKE_FLAGS += SSL="no"
71 endif
72
73 define Package/httping/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
76 endef
77
78 Package/httping-nossl/install = $(Package/httping/install)
79
80 $(eval $(call BuildPackage,httping))
81 $(eval $(call BuildPackage,httping-nossl))