OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2007-2010 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_NAME:=iperf |
||
11 | PKG_VERSION:=2.0.12 |
||
3 | office | 12 | PKG_RELEASE:=1 |
1 | office | 13 | |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
||
15 | PKG_HASH:=367f651fb1264b13f6518e41b8a7e08ce3e41b2a1c80e99ff0347561eed32646 |
||
16 | PKG_SOURCE_URL:=@SF/iperf2 |
||
17 | |||
18 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
||
19 | PKG_LICENSE:=BSD-3-Clause |
||
20 | |||
21 | PKG_BUILD_PARALLEL:=1 |
||
22 | |||
23 | include $(INCLUDE_DIR)/uclibc++.mk |
||
24 | include $(INCLUDE_DIR)/package.mk |
||
25 | |||
26 | define Package/iperf |
||
27 | SECTION:=net |
||
28 | CATEGORY:=Network |
||
29 | DEPENDS:= $(CXX_DEPENDS) +libpthread |
||
30 | TITLE:=Internet Protocol bandwidth measuring tool |
||
31 | URL:=http://sourceforge.net/projects/iperf2/ |
||
32 | endef |
||
33 | |||
34 | define Package/iperf/description |
||
35 | Iperf is a modern alternative for measuring TCP and UDP bandwidth |
||
36 | performance, allowing the tuning of various parameters and |
||
37 | characteristics. |
||
38 | endef |
||
39 | |||
40 | TARGET_CFLAGS += -D_GNU_SOURCE |
||
41 | CONFIGURE_ARGS += --disable-multicast |
||
42 | |||
43 | CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti" |
||
44 | CONFIGURE_VARS += LIBS="-lpthread -lm" |
||
45 | |||
46 | define Package/iperf/install |
||
47 | $(INSTALL_DIR) $(1)/usr/bin |
||
48 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf |
||
49 | endef |
||
50 | |||
51 | $(eval $(call BuildPackage,iperf)) |