You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.1 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=httping
  9. PKG_VERSION:=2.5
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.vanheusden.com/httping
  13. PKG_HASH:=3e895a0a6d7bd79de25a255a1376d4da88eb09c34efdd0476ab5a907e75bfaf8
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/nls.mk
  18. define Package/httping/Default
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Httping is like 'ping' but for http-requests
  22. URL:=http://www.vanheusden.com/httping/
  23. DEPENDS:=$(INTL_DEPENDS)
  24. MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
  25. endef
  26. define Package/httping/Default/description
  27. Give it an url, and it'll show you how long it takes to connect, send a
  28. request and retrieve the reply (only the headers). Be aware that the
  29. transmission across the network also takes time!
  30. endef
  31. define Package/httping
  32. $(call Package/httping/Default)
  33. DEPENDS+= +libopenssl
  34. TITLE+= (with SSL support)
  35. VARIANT:=ssl
  36. endef
  37. define Package/httping/description
  38. $(call Package/httping/Default/description)
  39. This package is built with SSL support.
  40. endef
  41. define Package/httping-nossl
  42. $(call Package/httping/Default)
  43. TITLE+= (without SSL support)
  44. VARIANT:=nossl
  45. endef
  46. define Package/httping-nossl/description
  47. $(call Package/httping/Default/description)
  48. This package is built without SSL support.
  49. endef
  50. define Build/Configure
  51. endef
  52. TARGET_LDFLAGS += $(INTL_LDFLAGS) $(if $(INTL_FULL),-lintl)
  53. MAKE_FLAGS += \
  54. DEBUG="no" \
  55. FW="no" \
  56. NC="no" \
  57. TFO="no" \
  58. JSON="no" \
  59. NAGIOS="no" \
  60. HELP="yes" \
  61. FULLHELP="no"
  62. ifeq ($(BUILD_VARIANT),nossl)
  63. MAKE_FLAGS += SSL="no"
  64. endif
  65. define Package/httping/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/httping $(1)/usr/bin/
  68. endef
  69. Package/httping-nossl/install = $(Package/httping/install)
  70. $(eval $(call BuildPackage,httping))
  71. $(eval $(call BuildPackage,httping-nossl))