You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=netperf
  9. PKG_VERSION:=2.7.0
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=Custom
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/
  14. PKG_HASH:=842af17655835c8be7203808c3393e6cb327a8067f3ed1f1053eb78b4e40375a
  15. PKG_CPE_ID:=cpe:/a:netperf:netperf
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/netperf
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Network performance measurement tool
  21. URL:=http://www.netperf.org/
  22. MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
  23. endef
  24. TARGET_CFLAGS+=-std=gnu89
  25. CONFIGURE_ARGS += --enable-demo
  26. define Package/netperf/install
  27. $(INSTALL_DIR) $(1)/etc/init.d
  28. $(INSTALL_BIN) ./files/netserver.init $(1)/etc/init.d/netserver
  29. $(INSTALL_DIR) $(1)/usr/bin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netperf $(1)/usr/bin/
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netserver $(1)/usr/bin/
  32. $(INSTALL_DIR) $(1)/lib/netperf
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/arr_script $(1)/lib/netperf
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/packet_byte_script $(1)/lib/netperf
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/sctp_stream_script $(1)/lib/netperf
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/snapshot_script $(1)/lib/netperf
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_range_script $(1)/lib/netperf
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_rr_script $(1)/lib/netperf
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_stream_script $(1)/lib/netperf
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_rr_script $(1)/lib/netperf
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_stream_script $(1)/lib/netperf
  42. endef
  43. $(eval $(call BuildPackage,netperf))