New package: nuttcp
authorYegor Yefremov <yegor_sub1@visionsystems.de>
Fri, 8 Oct 2010 10:26:20 +0000 (12:26 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 5 Nov 2010 15:53:09 +0000 (16:53 +0100)
Add a new TCP/UDP network testing tool, that provides some advanced
features compared to ttcp.

[Peter: cleanup, fix FLAGS, move to network]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/Config.in
package/nuttcp/Config.in [new file with mode: 0644]
package/nuttcp/nuttcp.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 70895612778b555efe81a8126c33f5efac69a901..393244a00a97272e1ce0b308b599edafa45baa07 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -25,7 +25,7 @@
        Alpha, Cris, IA64 and Sparc64 architecture support removed.
 
        New packages: argp-standalone, gdk-pixbuf, gpsd, gst-ffmpeg,
-       libmpeg2, librsvg, rng-tools, rrdtool, xz
+       libmpeg2, librsvg, nuttcp, rng-tools, rrdtool, xz
 
        Updated/fixed packages: acpid, alsa-lib, argus, at, autoconf,
        automake, avahi, axel, beecrypt, berkeleydb, bind, bmon, boa,
index 4e61ea98aa6267f2cb06bc20d944164849d63288..7b35554dfb8f025805c85c533ed8a3b49a140367 100644 (file)
@@ -402,6 +402,7 @@ source "package/netsnmp/Config.in"
 source "package/netstat-nat/Config.in"
 source "package/nfs-utils/Config.in"
 source "package/ntp/Config.in"
+source "package/nuttcp/Config.in"
 source "package/olsr/Config.in"
 source "package/openntpd/Config.in"
 source "package/openssh/Config.in"
diff --git a/package/nuttcp/Config.in b/package/nuttcp/Config.in
new file mode 100644 (file)
index 0000000..fb6d3b1
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_NUTTCP
+       bool "nuttcp"
+       help
+         nuttcp is a TCP/UDP network testing tool, much like iperf
+
+         http://www.lcp.nrl.navy.mil/nuttcp/nuttcp.html
diff --git a/package/nuttcp/nuttcp.mk b/package/nuttcp/nuttcp.mk
new file mode 100644 (file)
index 0000000..e3867ea
--- /dev/null
@@ -0,0 +1,25 @@
+#############################################################
+#
+# nuttcp
+#
+#############################################################
+
+NUTTCP_VERSION = 6.1.2
+NUTTCP_SITE = http://www.lcp.nrl.navy.mil/nuttcp/
+NUTTCP_SOURCE = nuttcp-$(NUTTCP_VERSION).tar.bz2
+
+define NUTTCP_BUILD_CMDS
+       $(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
+               -C $(@D) all
+endef
+
+define NUTTCP_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 $(@D)/nuttcp-$(NUTTCP_VERSION) \
+               $(TARGET_DIR)/usr/bin/nuttcp
+endef
+
+define NUTTCP_UNINSTALL_TARGET_CMDS
+       rm -f $(TARGET_DIR)/usr/bin/nuttcp
+endef
+
+$(eval $(call GENTARGETS,package,nuttcp))