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.

52 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
  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:=fping
  9. PKG_VERSION:=5.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://fping.org/dist
  13. PKG_HASH:=ed38c0b9b64686a05d1b3bc1d66066114a492e04e44eef1821d43b1263cd57b8
  14. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  15. PKG_LICENSE:=BSD-4-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fping
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=sends ICMP ECHO_REQUEST packets to network hosts
  24. URL:=https://fping.org/
  25. endef
  26. define Package/fping/description
  27. fping is a ping like program which uses the Internet Control Message Protocol
  28. (ICMP) echo request to determine if a target host is responding. fping
  29. differs from ping in that you can specify any number of targets on the command
  30. line, or specify a file containing the lists of targets to ping. Instead of
  31. sending to one target until it times out or replies, fping will send out a
  32. ping packet and move on to the next target in a round-robin fashion.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --enable-ipv4 \
  36. $(if $(CONFIG_IPV6),en,dis)able-ipv6
  37. define Package/fping/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_SUID) $(PKG_INSTALL_DIR)/usr/sbin/fping $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,fping))