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.

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