summaryrefslogtreecommitdiff
path: root/package/iperf
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/iperf
Initial import
Diffstat (limited to 'package/iperf')
-rw-r--r--package/iperf/Config.in13
-rw-r--r--package/iperf/Makefile33
-rw-r--r--package/iperf/ipkg/iperf.control5
3 files changed, 51 insertions, 0 deletions
diff --git a/package/iperf/Config.in b/package/iperf/Config.in
new file mode 100644
index 000000000..c498a5b16
--- /dev/null
+++ b/package/iperf/Config.in
@@ -0,0 +1,13 @@
+config ADK_PACKAGE_IPERF
+ prompt "iperf............................. Internet Protocol bandwidth measuring tool"
+ tristate
+ depends on ADK_CXX
+ select ADK_PACKAGE_LIBPTHREAD
+ default n
+ help
+ Iperf is a modern alternative for measuring TCP and UDP bandwidth
+ performance, allowing the tuning of various parameters and
+ characteristics.
+
+ http://dast.nlanr.net/Projects/Iperf/
+
diff --git a/package/iperf/Makefile b/package/iperf/Makefile
new file mode 100644
index 000000000..358e54724
--- /dev/null
+++ b/package/iperf/Makefile
@@ -0,0 +1,33 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= iperf
+PKG_VERSION:= 2.0.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 8c5bc14cc2ea55f18f22afe3c23e3dcb
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=iperf/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,IPERF,iperf,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes \
+ LIBS="-lc -lm -lgcc_s -lpthread"
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
+TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
+TLDFLAGS+= -nodefaultlibs
+CONFIGURE_ENV+= LIBS="-luClibc++ -lc -lm -lgcc_s -lpthread"
+endif
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_IPERF}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/iperf ${IDIR_IPERF}/usr/bin
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/iperf/ipkg/iperf.control b/package/iperf/ipkg/iperf.control
new file mode 100644
index 000000000..b58436f6e
--- /dev/null
+++ b/package/iperf/ipkg/iperf.control
@@ -0,0 +1,5 @@
+Package: iperf
+Priority: optional
+Section: net
+Depends: uclibc++, libgcc, libpthread
+Description: Internet Protocol bandwidth measuring tool.