Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of netperf-latest, bleeding edge netperf (r431)
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# Copyright (C) 2006-2009 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:=netperf-latest | ||
PKG_VERSION:=2.4.5-r431 | ||
PKG_RELEASE:=3 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | ||
PKG_SOURCE_URL:=http://people.csail.mit.edu/woodrow/netperf-latest/ | ||
PKG_MD5SUM:=0516bdbf3b161c991c650b613e25082c | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/netperf-latest | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=Network performance measurement tool | ||
URL:=http://www.netperf.org/ | ||
endef | ||
|
||
define Package/netperf-latest/install | ||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) ./files/netserver.init $(1)/etc/init.d/netserver | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(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 | ||
endef | ||
|
||
$(eval $(call BuildPackage,netperf-latest)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh /etc/rc.common | ||
# Copyright (C) 2006 OpenWrt.org | ||
START=50 | ||
|
||
start() { | ||
/usr/bin/netserver | ||
} | ||
|
||
stop() { | ||
killall netserver | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index 69cbdcd..c4a5d07 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -64,7 +64,7 @@ AC_DECL_H_ERRNO | ||
AC_STRUCT_SOCKADDR_STORAGE | ||
AC_HEADER_TIME | ||
AC_HEADER_STDBOOL | ||
-AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len) | ||
+#AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len) | ||
|
||
# Checks for library functions. | ||
# AC_FUNC_ERROR_AT_LINE |