netdiscover: moved to github
[packages.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   DEPENDS:=$(INTL_DEPENDS)
30 endef
31
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!
36 endef
37
38 define Package/httping
39   $(call Package/httping/Default)
40   DEPENDS+= +libopenssl
41   TITLE+= (with SSL support)
42   VARIANT:=ssl
43 endef
44
45 define Package/httping/description
46         $(call Package/httping/Default/description)
47         This package is built with SSL support.
48 endef
49
50 define Package/httping-nossl
51   $(call Package/httping/Default)
52   TITLE+= (without SSL support)
53   VARIANT:=nossl
54 endef
55
56 define Package/httping-nossl/description
57         $(call Package/httping/Default/description)
58         This package is built without SSL support.
59 endef
60
61 define Build/Configure
62 endef
63
64 TARGET_LDFLAGS += $(INTL_LDFLAGS) $(if $(INTL_FULL),-lintl)
65
66 MAKE_FLAGS += \
67         DEBUG="no" \
68         FW="no" \
69         NC="no" \
70         TFO="no"
71
72 ifeq ($(BUILD_VARIANT),nossl)
73         MAKE_FLAGS += SSL="no"
74 endif
75
76 define Package/httping/install
77         $(INSTALL_DIR) $(1)/usr/bin
78         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
79 endef
80
81 Package/httping-nossl/install = $(Package/httping/install)
82
83 $(eval $(call BuildPackage,httping))
84 $(eval $(call BuildPackage,httping-nossl))