add ttcp utility
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@793 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
1799294713
commit
e35b796ec0
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
config BR2_PACKAGE_TTCP
|
||||
tristate "ttcp"
|
||||
default m if CONFIG_DEVEL
|
||||
help
|
||||
A small utility to test TCP connection performance
|
|
@ -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)
|
File diff suppressed because it is too large
Load Diff
|
@ -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