mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 15:47:11 +02:00
add ttcp utility
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@793 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4bc625906f
commit
0bb49aa2f1
@ -59,6 +59,7 @@ source "package/l2tpd/Config.in"
|
||||
source "package/tinc/Config.in"
|
||||
source "package/fprobe/Config.in"
|
||||
source "package/maradns/Config.in"
|
||||
source "package/ttcp/Config.in"
|
||||
|
||||
comment "Libraries"
|
||||
source "package/libpthread/Config.in"
|
||||
|
@ -65,6 +65,7 @@ package-$(BR2_PACKAGE_SPEEX) += speex
|
||||
package-$(BR2_PACKAGE_STRACE) += strace
|
||||
package-$(BR2_PACKAGE_TCPDUMP) += tcpdump
|
||||
package-$(BR2_PACKAGE_TINC) += tinc
|
||||
package-$(BR2_PACKAGE_TTCP) += ttcp
|
||||
package-$(BR2_PACKAGE_UCLIBCXX) += uclibc++
|
||||
package-$(BR2_PACKAGE_USBUTILS) += usbutils
|
||||
package-$(BR2_PACKAGE_WIRELESS_TOOLS) += wireless-tools
|
||||
|
5
openwrt/package/ttcp/Config.in
Normal file
5
openwrt/package/ttcp/Config.in
Normal file
@ -0,0 +1,5 @@
|
||||
config BR2_PACKAGE_TTCP
|
||||
tristate "ttcp"
|
||||
default m if CONFIG_DEVEL
|
||||
help
|
||||
A small utility to test TCP connection performance
|
31
openwrt/package/ttcp/Makefile
Normal file
31
openwrt/package/ttcp/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $Id$
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ttcp
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
|
||||
PKG_IPK_DIR:=$(PKG_BUILD_DIR)
|
||||
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_RELEASE)_$(ARCH).ipk
|
||||
|
||||
$(PKG_BUILD_DIR)/usr/bin/ttcp:
|
||||
mkdir -p $(PKG_BUILD_DIR)/usr/bin
|
||||
$(TARGET_CC) -o $@ ttcp.c
|
||||
$(STRIP) $@
|
||||
|
||||
$(PKG_IPK): $(PKG_BUILD_DIR)/usr/bin/ttcp
|
||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
|
||||
$(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
|
||||
|
||||
$(IPKG_STATE_DIR)/info/$(PKG_NAME).list:
|
||||
$(IPKG) install $(PKG_IPK)
|
||||
|
||||
source:
|
||||
prepare:
|
||||
compile: $(PKG_IPK)
|
||||
install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
|
||||
|
||||
clean:
|
||||
rm -rf $(PKG_BUILD_DIR)
|
||||
rm -f $(PKG_IPK)
|
2374
openwrt/package/ttcp/ttcp.c
Normal file
2374
openwrt/package/ttcp/ttcp.c
Normal file
File diff suppressed because it is too large
Load Diff
6
openwrt/package/ttcp/ttcp.control
Normal file
6
openwrt/package/ttcp/ttcp.control
Normal file
@ -0,0 +1,6 @@
|
||||
Package: ttcp
|
||||
Priority: optional
|
||||
Section: net
|
||||
Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
|
||||
Source: buildroot internal
|
||||
Description: A small utility to test TCP connection performance
|
Loading…
Reference in New Issue
Block a user