From 04962735f78a684913b492a694544284dea87c5e Mon Sep 17 00:00:00 2001 From: Nikil Mehta Date: Fri, 25 Nov 2016 00:00:59 -0800 Subject: [PATCH] fping: Add package Signed-off-by: Nikil Mehta nikil.mehta@gmail.com --- net/fping/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 net/fping/Makefile diff --git a/net/fping/Makefile b/net/fping/Makefile new file mode 100644 index 0000000000..c8be1f3d71 --- /dev/null +++ b/net/fping/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2016 Nikil Mehta +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=fping +PKG_VERSION:=3.13 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://fping.org/dist/ +PKG_MD5SUM:=4bb28efd1cb3d1240ae551dadc20daa852b1ba71bafe32e49ca629c1848e5720 + +PKG_MAINTAINER:=Nikil Mehta +PKG_LICENSE:=BSD-4-Clause +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/fping + SECTION:=net + CATEGORY:=Network + TITLE:=sends ICMP ECHO_REQUEST packets to network hosts + URL:=http://fping.org/ +endef + + +define Package/fping/description + fping is a ping like program which uses the Internet Control Message Protocol + (ICMP) echo request to determine if a target host is responding. fping + differs from ping in that you can specify any number of targets on the command + line, or specify a file containing the lists of targets to ping. Instead of + sending to one target until it times out or replies, fping will send out a + ping packet and move on to the next target in a round-robin fashion. +endef + +CONFIGURE_ARGS+= \ + --enable-ipv4 \ + --enable-ipv6 + +define Package/fping/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{fping,fping6} $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,fping)) -- 2.30.2