summaryrefslogtreecommitdiff
path: root/package/netperf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/netperf/Makefile')
-rw-r--r--package/netperf/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/netperf/Makefile b/package/netperf/Makefile
new file mode 100644
index 000000000..6563c60e1
--- /dev/null
+++ b/package/netperf/Makefile
@@ -0,0 +1,34 @@
+# $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:= netperf
+PKG_VERSION:= 2.3pl1
+PKG_RELEASE:= 8
+PKG_MD5SUM:= b74314d78af31cb13516fb9a372d2e86
+MASTER_SITES:= ftp://ftp.netperf.org/netperf/archive/ \
+ ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,NETPERF,netperf,${PKG_VERSION}${PKG_RELEASE},${ARCH}))
+
+BUILD_STYLE:= auto
+MAKE_FLAGS+= TARGET_NETPERF_HOME="/etc/netperf.conf" \
+ TARGET_CC=${TARGET_CROSS}gcc \
+ TARGET_CFLAGS="${TCFLAGS}" \
+ TARGET_LIBS=""
+MAKE_FILE:= makefile
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_NETPERF}/etc/init.d
+ ${INSTALL_DIR} ${IDIR_NETPERF}/usr/bin
+ ${INSTALL_BIN} ./files/netserver.init \
+ ${IDIR_NETPERF}/etc/init.d/netserver
+ ${INSTALL_BIN} ${WRKBUILD}/netperf ${IDIR_NETPERF}/usr/bin/
+ ${INSTALL_BIN} ${WRKBUILD}/netserver ${IDIR_NETPERF}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk