2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
12 PKG_VERSION:=2.4b2_to-ipv6
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.fping.com/download/
17 PKG_MD5SUM:=3ad516765514249a40d3c5b6caab812a
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 include $(INCLUDE_DIR)/package.mk
27 TITLE:=A program to ping multiple hosts in parallel
28 URL:=http://www.fping.com
31 define Package/fping/description
32 fping is a ping(1) like program which uses the Internet Control Message Protocol
33 (ICMP) echo request to determine if a host is up. fping is different from ping in
34 that you can specify any number of hosts on the command line, or specify a file
35 containing the lists of hosts to ping. Instead of trying one host until it timeouts
36 or replies, fping will send out a ping packet and move on to the next host in a
37 round-robin fashion. If a host replies, it is noted and removed from the list of
38 hosts to check. If a host does not respond within a certain time limit and/or retry
39 limit it will be considered unreachable.
42 define Build/Configure
43 (cd $(PKG_BUILD_DIR); touch \
48 $(call Build/Configure/Default,)
52 $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) clean $(PKG_NAME)
53 mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)4
54 $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) -DIPV6=1" -C $(PKG_BUILD_DIR) clean $(PKG_NAME)
55 mv $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME)6
58 define Package/fping/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(CP) $(PKG_BUILD_DIR)/fping4 $(1)/usr/bin/
61 $(CP) $(PKG_BUILD_DIR)/fping6 $(1)/usr/bin/
62 ln -sf fping4 $(1)/usr/bin/fping
65 $(eval $(call BuildPackage,fping))