2006-08-06 11:03:05 +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:=netperf
|
2007-08-11 15:46:14 +00:00
|
|
|
PKG_VERSION:=2.4.3
|
|
|
|
PKG_RELEASE:=2
|
2006-08-06 11:03:05 +00:00
|
|
|
|
2007-08-11 16:06:22 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2007-08-11 15:46:14 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/
|
2007-08-11 16:06:22 +00:00
|
|
|
PKG_MD5SUM:=8b1f48500443b18b825ae2763a51eced
|
2006-08-06 11:03:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/netperf
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-01-08 11:19:08 +00:00
|
|
|
TITLE:=Network performance measurement tool
|
|
|
|
URL:=http://www.netperf.org/
|
2006-08-06 11:03:05 +00:00
|
|
|
endef
|
|
|
|
|
2007-08-11 15:46:14 +00:00
|
|
|
define Package/netperf/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/netserver.init $(1)/etc/init.d/netserver
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-08-11 15:46:14 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netperf $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netserver $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/arr_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/packet_byte_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/sctp_stream_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/snapshot_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_range_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_rr_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_stream_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_rr_script $(1)/lib/netperf
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_stream_script $(1)/lib/netperf
|
2006-08-06 11:03:05 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netperf))
|