netperf: use bz2
[openwrt/svn-archive/archive.git] / net / netperf / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=netperf
12 PKG_VERSION:=2.4.3
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.netperf.org/netperf/
17 PKG_MD5SUM:=8b1f48500443b18b825ae2763a51eced
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/netperf
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Network performance measurement tool
25 URL:=http://www.netperf.org/
26 endef
27
28 define Package/netperf/install
29 $(INSTALL_DIR) $(1)/etc/init.d
30 $(INSTALL_BIN) ./files/netserver.init $(1)/etc/init.d/netserver
31 $(INSTALL_DIR) $(1)/usr/bin
32 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netperf $(1)/usr/bin/
33 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/netserver $(1)/usr/bin/
34 $(INSTALL_DIR) $(1)/lib/netperf
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/arr_script $(1)/lib/netperf
36 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/packet_byte_script $(1)/lib/netperf
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/sctp_stream_script $(1)/lib/netperf
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/snapshot_script $(1)/lib/netperf
39 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_range_script $(1)/lib/netperf
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_rr_script $(1)/lib/netperf
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/tcp_stream_script $(1)/lib/netperf
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_rr_script $(1)/lib/netperf
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/doc/examples/udp_stream_script $(1)/lib/netperf
44 endef
45
46 $(eval $(call BuildPackage,netperf))