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
|
2016-07-24 11:42:30 +00:00
|
|
|
PKG_VERSION:=2.0.9
|
2012-10-10 12:35:43 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2016-05-10 21:09:04 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/iperf2
|
2016-07-24 11:42:30 +00:00
|
|
|
PKG_MD5SUM:=1bb3a1d98b1973aee6e8f171933c0f61
|
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
|
|
|
|
|
|
|
|
CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
|
2016-05-10 21:09:05 +00:00
|
|
|
CONFIGURE_VARS += LIBS="-lpthread"
|
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))
|