2012-10-10 12:35:43 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iperf
|
2019-05-11 15:34:20 +00:00
|
|
|
PKG_VERSION:=2.0.13
|
2019-12-14 05:25:03 +00:00
|
|
|
PKG_RELEASE:=2
|
2012-10-10 12:35:43 +00:00
|
|
|
|
2017-09-25 02:59:23 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2019-05-11 15:34:20 +00:00
|
|
|
PKG_HASH:=c88adec966096a81136dda91b4bd19c27aae06df4d45a7f547a8e50d723778ad
|
2017-09-25 02:59:23 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/iperf2
|
2012-10-10 12:35:43 +00:00
|
|
|
|
2016-06-07 06:58:31 +00:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2012-10-10 12:35:43 +00:00
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2016-05-10 21:09:05 +00:00
|
|
|
define Package/iperf
|
2012-10-10 12:35:43 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2016-05-10 21:09:05 +00:00
|
|
|
DEPENDS:= $(CXX_DEPENDS) +libpthread
|
2012-10-10 12:35:43 +00:00
|
|
|
TITLE:=Internet Protocol bandwidth measuring tool
|
2016-05-10 21:09:04 +00:00
|
|
|
URL:=http://sourceforge.net/projects/iperf2/
|
2012-10-10 12:35:43 +00:00
|
|
|
endef
|
|
|
|
|
2016-05-10 21:09:05 +00:00
|
|
|
define Package/iperf/description
|
2012-10-10 12:35:43 +00:00
|
|
|
Iperf is a modern alternative for measuring TCP and UDP bandwidth
|
|
|
|
performance, allowing the tuning of various parameters and
|
|
|
|
characteristics.
|
|
|
|
endef
|
|
|
|
|
2016-05-10 21:09:04 +00:00
|
|
|
TARGET_CFLAGS += -D_GNU_SOURCE
|
2012-10-10 12:35:43 +00:00
|
|
|
CONFIGURE_ARGS += --disable-multicast
|
|
|
|
|
2018-11-03 00:22:59 +00:00
|
|
|
ifeq ($(CONFIG_IPV6),)
|
|
|
|
CONFIGURE_ARGS += --disable-ipv6
|
|
|
|
endif
|
|
|
|
|
2012-10-10 12:35:43 +00:00
|
|
|
CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
|
2016-08-29 13:09:50 +00:00
|
|
|
CONFIGURE_VARS += LIBS="-lpthread -lm"
|
2012-10-10 12:35:43 +00:00
|
|
|
|
|
|
|
define Package/iperf/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,iperf))
|