summaryrefslogtreecommitdiff
path: root/package/netperf/netperf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/netperf/netperf.mk')
-rw-r--r--package/netperf/netperf.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/netperf/netperf.mk b/package/netperf/netperf.mk
new file mode 100644
index 000000000..d198eee52
--- /dev/null
+++ b/package/netperf/netperf.mk
@@ -0,0 +1,25 @@
+#############################################################
+#
+# netperf
+#
+#############################################################
+
+NETPERF_VERSION = 2.4.5
+NETPERF_SITE = ftp://ftp.netperf.org/netperf
+NETPERF_CONF_ENV = ac_cv_func_setpgrp_void=set
+
+$(eval $(call AUTOTARGETS,package,netperf))
+
+$(NETPERF_TARGET_INSTALL_TARGET):
+ $(call MESSAGE,"Installing to target")
+ $(INSTALL) -m 0755 $(NETPERF_DIR)/src/netperf \
+ $(TARGET_DIR)/usr/bin/netperf
+ $(INSTALL) -m 0755 $(NETPERF_DIR)/src/netserver \
+ $(TARGET_DIR)/usr/bin/netserver
+ touch $@
+
+$(NETPERF_TARGET_UNINSTALL):
+ $(call MESSAGE,"Uninstalling")
+ rm -f $(TARGET_DIR)/usr/bin/netperf
+ rm -f $(TARGET_DIR)/usr/bin/netserver
+ rm -f $(NETPERF_TARGET_INSTALL_TARGET) $(NETPERF_HOOK_POST_INSTALL)