aboutsummaryrefslogtreecommitdiff
path: root/net/bwping/Makefile
blob: 83a2cf60f7c2d4f0f9076a5a2b8940daee3c60aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Copyright (C) 2020 Oleg Derevenetz <oleg.derevenetz@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=bwping
PKG_VERSION:=2.4
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/bwping
PKG_HASH:=2f79c2a61cdc46f639233e0fcce8024c8d9fb4812b3ce77bbbed9baaee1a0166

PKG_MAINTAINER:=Oleg Derevenetz <oleg.derevenetz@gmail.com>
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=COPYING

PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/bwping
  SECTION:=net
  CATEGORY:=Network
  TITLE:=Tool to measure bandwidth and RTT between two hosts using ICMP
  URL:=https://bwping.sourceforge.io/
endef

define Package/bwping/description
  BWPing is a tool to measure bandwidth and response times between two
  hosts using Internet Control Message Protocol (ICMP) echo request/echo
  reply mechanism. It does not require any special software on the remote
  host. The only requirement is the ability to respond on ICMP echo request
  messages. BWPing supports both IPv4 and IPv6 networks.
endef

define Package/bwping/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin/
	$(CP) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME)6 $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,bwping))