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
|
2018-08-02 12:40:03 +00:00
|
|
|
PKG_VERSION:=2.0.12
|
2018-11-03 00:22:59 +00:00
|
|
|
PKG_RELEASE:=3
|
2012-10-10 12:35:43 +00:00
|
|
|
|
2017-09-25 02:59:23 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-08-02 12:40:03 +00:00
|
|
|
PKG_HASH:=367f651fb1264b13f6518e41b8a7e08ce3e41b2a1c80e99ff0347561eed32646
|
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))
|