Merge pull request #4949 from commodo/python-lxml-update
[feed/packages.git] / net / fping / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fping
11 PKG_VERSION:=4.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://fping.org/dist/
16 PKG_HASH:=67eb4152b98ad34f99d2eec4e1098a0bb52caf13c0c89cd147349d08190fe8ce
17
18 PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
19 PKG_LICENSE:=BSD-4-Clause
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/fping
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=sends ICMP ECHO_REQUEST packets to network hosts
30 URL:=http://fping.org/
31 endef
32
33
34 define Package/fping/description
35 fping is a ping like program which uses the Internet Control Message Protocol
36 (ICMP) echo request to determine if a target host is responding. fping
37 differs from ping in that you can specify any number of targets on the command
38 line, or specify a file containing the lists of targets to ping. Instead of
39 sending to one target until it times out or replies, fping will send out a
40 ping packet and move on to the next target in a round-robin fashion.
41 endef
42
43 CONFIGURE_ARGS+= \
44 --enable-ipv4 \
45 --enable-ipv6
46
47 TARGET_CFLAGS += -std=gnu99
48
49 define Package/fping/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fping $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,fping))