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 |
||
3 | office | 11 | PKG_VERSION:=3.5 |
1 | office | 12 | PKG_RELEASE:=1 |
13 | |||
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
||
3 | office | 15 | PKG_SOURCE_URL:=http://downloads.es.net/pub/iperf |
16 | PKG_HASH:=539bd9ecdca1b8c1157ff85b70ed09b3c75242e69886fc16b54883b399f72cd5 |
||
1 | office | 17 | |
18 | PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name> |
||
19 | PKG_LICENSE:=BSD-3-Clause |
||
20 | |||
21 | PKG_BUILD_PARALLEL:=1 |
||
22 | PKG_INSTALL:=1 |
||
23 | |||
24 | PKG_FIXUP:=autoreconf |
||
25 | |||
26 | include $(INCLUDE_DIR)/package.mk |
||
27 | |||
28 | DISABLE_NLS:= |
||
29 | |||
30 | define Package/iperf3/default |
||
31 | SECTION:=net |
||
32 | CATEGORY:=Network |
||
33 | TITLE:=Internet Protocol bandwidth measuring tool |
||
34 | URL:=https://github.com/esnet/iperf |
||
35 | endef |
||
36 | |||
37 | define Package/iperf3 |
||
38 | $(call Package/iperf3/default) |
||
39 | VARIANT:=nossl |
||
40 | endef |
||
41 | |||
42 | define Package/iperf3-ssl |
||
43 | $(call Package/iperf3/default) |
||
44 | TITLE+= with iperf_auth support |
||
45 | VARIANT:=ssl |
||
46 | DEPENDS:= +libopenssl |
||
47 | endef |
||
48 | |||
49 | TARGET_CFLAGS += -D_GNU_SOURCE |
||
50 | CONFIGURE_ARGS += --disable-shared |
||
51 | |||
52 | ifeq ($(BUILD_VARIANT),ssl) |
||
53 | CONFIGURE_ARGS += --with-openssl="$(STAGING_DIR)/usr" |
||
54 | else |
||
55 | CONFIGURE_ARGS += --without-openssl |
||
56 | endif |
||
57 | |||
58 | MAKE_FLAGS += noinst_PROGRAMS= |
||
59 | |||
60 | define Package/iperf3/description |
||
61 | Iperf is a modern alternative for measuring TCP and UDP bandwidth |
||
62 | performance, allowing the tuning of various parameters and |
||
63 | characteristics. |
||
64 | endef |
||
65 | |||
66 | # autoreconf fails if the README file isn't present |
||
67 | define Build/Prepare |
||
68 | $(call Build/Prepare/Default) |
||
69 | touch $(PKG_BUILD_DIR)/README |
||
70 | endef |
||
71 | |||
72 | define Package/iperf3/install |
||
73 | $(INSTALL_DIR) $(1)/usr/bin |
||
74 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/ |
||
75 | endef |
||
76 | |||
77 | define Package/iperf3-ssl/install |
||
78 | $(INSTALL_DIR) $(1)/usr/bin |
||
79 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/ |
||
80 | endef |
||
81 | |||
82 | $(eval $(call BuildPackage,iperf3)) |
||
83 | $(eval $(call BuildPackage,iperf3-ssl)) |