Нет описания

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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:=apinger
  9. PKG_VERSION:=0.6.1
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/Jajcus/apinger.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=c7da72f7ec26eedd7fd8d224c0e10787b204f94e
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
  17. PKG_LICENSE:= GPL-2.0
  18. PKG_FIXUP:=autoreconf
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/apinger
  23. SECTION:=net
  24. CATEGORY:=Network
  25. TITLE:=Tool which monitors various IP devices by simple ICMP echo requests
  26. URL:=https://github.com/Jajcus/apinger
  27. PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
  28. endef
  29. define Package/apinger/description
  30. Alarm Pinger (apinger) is a little tool which monitors various IP devices by
  31. simple ICMP echo requests. There are various other tools, that can do this,
  32. but most of them are shell or perl scripts, spawning many processes, thus much
  33. CPU-expensive, especially when one wants continuous monitoring and fast
  34. response on target failure. Alarm Pinger is a single program written in C, so
  35. it doesn't need much CPU power even when monitoring many targets with frequent
  36. probes. Alarm Pinger supports both IPv4 and IPv6. The code have been tested
  37. on Linux and FreeBSD.
  38. endef
  39. define Package/apinger/conffiles
  40. /etc/apinger.conf
  41. endef
  42. define Build/Configure
  43. $(call Build/Configure/Default)
  44. endef
  45. define Package/apinger/install
  46. $(INSTALL_DIR) $(1)/usr/sbin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/apinger $(1)/usr/sbin/
  48. $(INSTALL_DIR) $(1)/etc
  49. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/apinger.conf $(1)/etc/apinger.conf
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/apinger.init $(1)/etc/init.d/apinger
  52. endef
  53. $(eval $(call BuildPackage,apinger))