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