From 1f007e3bd59ec53075f8b35e7934aac5b00d1ecf Mon Sep 17 00:00:00 2001 From: Bas Spaans Date: Sat, 24 Mar 2012 23:19:17 +0100 Subject: [PATCH 1/2] packages/addons/networking/testing/iperf/* : adds iperf network testing tool as addon --- .../addons/networking/testing/iperf/addon | 26 ++++++++++++ .../addons/networking/testing/iperf/build | 34 ++++++++++++++++ .../networking/testing/iperf/changelog.txt | 2 + .../networking/testing/iperf/icon/icon.png | Bin 0 -> 2360 bytes packages/addons/networking/testing/iperf/meta | 38 ++++++++++++++++++ .../testing/iperf/source/default.py | 23 +++++++++++ 6 files changed, 123 insertions(+) create mode 100755 packages/addons/networking/testing/iperf/addon create mode 100755 packages/addons/networking/testing/iperf/build create mode 100644 packages/addons/networking/testing/iperf/changelog.txt create mode 100644 packages/addons/networking/testing/iperf/icon/icon.png create mode 100644 packages/addons/networking/testing/iperf/meta create mode 100644 packages/addons/networking/testing/iperf/source/default.py diff --git a/packages/addons/networking/testing/iperf/addon b/packages/addons/networking/testing/iperf/addon new file mode 100755 index 0000000000..cade4ce551 --- /dev/null +++ b/packages/addons/networking/testing/iperf/addon @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin + cp $PKG_BUILD/src/iperf $ADDON_BUILD/$PKG_ADDON_ID/bin diff --git a/packages/addons/networking/testing/iperf/build b/packages/addons/networking/testing/iperf/build new file mode 100755 index 0000000000..ce0ac90c87 --- /dev/null +++ b/packages/addons/networking/testing/iperf/build @@ -0,0 +1,34 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +ac_cv_func_malloc_0_nonnull=yes ./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-acl-support \ + --disable-xattr-support \ + +make diff --git a/packages/addons/networking/testing/iperf/changelog.txt b/packages/addons/networking/testing/iperf/changelog.txt new file mode 100644 index 0000000000..aed7311137 --- /dev/null +++ b/packages/addons/networking/testing/iperf/changelog.txt @@ -0,0 +1,2 @@ +0.1 +- initial addon based on iperf-2.0.5 \ No newline at end of file diff --git a/packages/addons/networking/testing/iperf/icon/icon.png b/packages/addons/networking/testing/iperf/icon/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9f8063f8858e71cd245625a9067be902588d51cd GIT binary patch literal 2360 zcmeHH{WsHl9RGZ6v#dPatcaslN+S6Vj9*{LW> zrCj78?hp5e-sil|>vdk|ykF;iUO&7K(}KvRC>s<2 zz?2f;w-o@$AR#adW*|;wXt06cdwc?Y0H{7O`&%Re02rWc4)!tS+}z5_%GTD_ z&d$!>-rmvC(Z$6DkH@>ayL)AFTX6EGN6crVTM53~?vhwosii(Pwnwt9h`i6#v z#>U2`rlyvb7O`0T@ZrN}&z`+{^=e>XKq8UIWU|4*LAhM6P$-m2<>=_BN~Ibb8&j** z6B83Uoo;%1TCdj|j{h~k8u*z8#O~=j!@fyk!1g2nX3zZr==qz2-wY;_PYLu#N{wNr z&Q_wKNDqVM!}ky6leqEm>;yg_@z{}k_HImSEI$Sl9K*(tDSB9fDK2+QG`GH=t z0Fjold0U8l5fdSxW}$oC{$UIC+nY~+`TeU#-|9VrRlIkypGQLquW_zrs17>KY5Ooe zG|V9gmr|y)owD-4$+A>yZFL9AT01tvW_SGoE$uo(x;;GqQSROSE0^G4psSe5NP8hM~UB!jDf^>_8~ zEv6+e|LHV@%cXxp$M$EjTmmHkk!cuI%zMk*6-xuKHv$ zl6k>ceIfjH&yl`+`HMeG$2(gsC(((lB^%NhZ%D~vkg&Gri2Un`b_-#*i)DzycXuf; z&iASvB8zha;z6ozaaH`&zqh#Sps1bCbD=4nB1U@VV%cy!QIPHR=G;5e+c&xP6|Ic) zwzIBfS5Nae$HkcQsa<>Vz0e38*N%4omP~-k2AvdL0Wi0NchTQCk;v2h%3#9kA>gRJG0c; zE2^wdLD=3?V#f+L{jC^Xz;v@s|5}y%513R8)pkZuce(91QlvnBihHEpDWfexa1hmo!7me;QB|flP zW^e9Wr-rW}pG`z#VFgU7+rrbAiMB$XedSDf_7(EGl+Y5MLwz3os&J^gxT9bF!MH?R z$LS_ Date: Sun, 25 Mar 2012 13:22:56 +0200 Subject: [PATCH 2/2] Added cross-compile information --- packages/addons/networking/testing/iperf/build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/addons/networking/testing/iperf/build b/packages/addons/networking/testing/iperf/build index ce0ac90c87..7700ae3d19 100755 --- a/packages/addons/networking/testing/iperf/build +++ b/packages/addons/networking/testing/iperf/build @@ -20,6 +20,8 @@ # http://www.gnu.org/copyleft/gpl.html ################################################################################ +# Workaround for crosscompiling iperf found at: http://lecs.cs.ucla.edu/wiki/index.php/Cross_compile_iperf + . config/options $1 cd $PKG_BUILD