Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / net / bwping / Makefile
1 #
2 # Copyright (C) 2020 Oleg Derevenetz <oleg.derevenetz@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:=bwping
11 PKG_VERSION:=2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/bwping
16 PKG_HASH:=09bf0f369f19e2ea85aab4812ad89b7a20edb9cc242ec98931f5fd0646bb1d74
17
18 PKG_MAINTAINER:=Oleg Derevenetz <oleg.derevenetz@gmail.com>
19 PKG_LICENSE:=BSD-2-Clause
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/bwping
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=Tool to measure bandwidth and RTT between two hosts using ICMP
31 URL:=https://bwping.sourceforge.io/
32 endef
33
34 define Package/bwping/description
35 BWPing is a tool to measure bandwidth and response times between two
36 hosts using Internet Control Message Protocol (ICMP) echo request/echo
37 reply mechanism. It does not require any special software on the remote
38 host. The only requirement is the ability to respond on ICMP echo request
39 messages. BWPing supports both IPv4 and IPv6 networks.
40 endef
41
42 define Package/bwping/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin/
45 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME)6 $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,bwping))