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.

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