2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-03 07:51:57 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=iperf
|
|
|
|
PKG_VERSION:=2.0.2
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://dast.nlanr.net/Projects/Iperf2.0
|
|
|
|
PKG_MD5SUM:=bb658aba58a5af0356f5b1342dfe8f53
|
2006-08-03 07:51:57 +00:00
|
|
|
PKG_CAT:=zcat
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2006-08-03 07:51:57 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/iperf
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+uclibcxx
|
|
|
|
TITLE:=Internet Protocol bandwidth measuring tool
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
Iperf is a modern alternative for measuring TCP and UDP bandwidth \\\
|
|
|
|
performance, allowing the tuning of various parameters and \\\
|
|
|
|
characteristics.
|
2006-08-03 07:51:57 +00:00
|
|
|
URL:=http://dast.nlanr.net/Projects/Iperf/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-19 15:26:14 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-multicast \
|
2006-10-30 13:51:50 +00:00
|
|
|
--disable-threads \
|
|
|
|
, \
|
|
|
|
CXXFLAGS="$$$$CXX_CFLAGS -fno-builtin -fno-rtti -nostdinc++" \
|
|
|
|
LIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc_s" \
|
2006-10-19 15:26:14 +00:00
|
|
|
)
|
2006-08-03 07:51:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-10-30 13:51:50 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-08-03 07:51:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iperf/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2006-08-03 07:51:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/iperf $(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,iperf))
|