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.

62 lines
1.8 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_SOURCE_DATE:=2015-04-09
  10. PKG_SOURCE_VERSION:=78eb328721ba1a10571c19df95acd
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/Jajcus/apinger
  14. PKG_MIRROR_HASH:=4ada1330fc5d0adc0216d141f5e3b494df7a4c6500bbffce1efeab3d58684f7e
  15. PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
  16. PKG_LICENSE:=GPL-2.0-only
  17. PKG_REMOVE_FILES:=autogen.sh
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=0
  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. endef
  28. define Package/apinger/description
  29. Alarm Pinger (apinger) is a little tool which monitors various IP devices by
  30. simple ICMP echo requests. There are various other tools, that can do this,
  31. but most of them are shell or perl scripts, spawning many processes, thus much
  32. CPU-expensive, especially when one wants continuous monitoring and fast
  33. response on target failure. Alarm Pinger is a single program written in C, so
  34. it doesn't need much CPU power even when monitoring many targets with frequent
  35. probes. Alarm Pinger supports both IPv4 and IPv6. The code have been tested
  36. on Linux and FreeBSD.
  37. endef
  38. define Package/apinger/conffiles
  39. /etc/apinger.conf
  40. endef
  41. define Package/apinger/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/apinger $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/etc
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/apinger.conf $(1)/etc/apinger.conf
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/apinger.init $(1)/etc/init.d/apinger
  48. endef
  49. $(eval $(call BuildPackage,apinger))