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
|
2016-10-17 09:16:30 +00:00
|
|
|
PKG_VERSION_SUFFIX:=a
|
2012-10-10 12:35:43 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2016-10-17 09:16:30 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VERSION_SUFFIX).tar.gz
|
|
|
|
# Temporary URL change - iperf upstream altered the already released target
|
|
|
|
# without bumping the version number. The new tarball is renamed to avoid
|
|
|
|
# conflicts with existing mirrored files.
|
|
|
|
# PKG_SOURCE_URL:=@SF/iperf2
|
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
|
|
|
PKG_MD5SUM:=db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf
|
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-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))
|