diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-11-15 00:05:11 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-11-15 00:05:11 -0600 |
commit | 87d80d2230b976f732d94310bf57d984185692c6 (patch) | |
tree | eca559d619e6dd5c52d4ccf5380690e373e229ed /config | |
parent | 23f4ad9db2e919aa368de63951ca76ecddafd07c (diff) | |
parent | 07375a415ab1240dbc0c6421f875841fa31537a2 (diff) | |
download | pfsense-packages-87d80d2230b976f732d94310bf57d984185692c6.tar.gz pfsense-packages-87d80d2230b976f732d94310bf57d984185692c6.tar.bz2 pfsense-packages-87d80d2230b976f732d94310bf57d984185692c6.zip |
Merge pull request #1153 from doktornotor/patch-9
Diffstat (limited to 'config')
-rw-r--r-- | config/iperf/iperf.priv.inc | 43 | ||||
-rw-r--r-- | config/iperf/iperf.xml | 15 | ||||
-rw-r--r-- | config/iperf/iperfserver.xml | 7 |
3 files changed, 57 insertions, 8 deletions
diff --git a/config/iperf/iperf.priv.inc b/config/iperf/iperf.priv.inc new file mode 100644 index 00000000..794810a2 --- /dev/null +++ b/config/iperf/iperf.priv.inc @@ -0,0 +1,43 @@ +<?php +/* + iperf.priv.inc + part of pfSense (http://www.pfSense.org/) + Copyright (C) 2015 ESF, LLC + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ +global $priv_list; + +$priv_list['page-diagnostics-iperf-client'] = array(); +$priv_list['page-diagnostics-iperf-client']['name'] = "WebCfg - Diagnostics: iperf client"; +$priv_list['page-diagnostics-iperf-client']['descr'] = "Allow access to iperf client GUI"; +$priv_list['page-diagnostics-iperf-client']['match'] = array(); +$priv_list['page-diagnostics-iperf-client']['match'][] = "pkg_edit.php?xml=iperf.xml*"; + +$priv_list['page-diagnostics-iperf-server'] = array(); +$priv_list['page-diagnostics-iperf-server']['name'] = "WebCfg - Diagnostics: iperf server"; +$priv_list['page-diagnostics-iperf-server']['descr'] = "Allow access to iperf server GUI"; +$priv_list['page-diagnostics-iperf-server']['match'] = array(); +$priv_list['page-diagnostics-iperf-server']['match'][] = "pkg_edit.php?xml=iperfserver.xml*"; + +?> diff --git a/config/iperf/iperf.xml b/config/iperf/iperf.xml index 182d866b..b7e27871 100644 --- a/config/iperf/iperf.xml +++ b/config/iperf/iperf.xml @@ -42,35 +42,40 @@ ]]> </copyright> <name>iperf</name> - <version>2.0.5.2</version> + <version>2.0.5.3</version> <title>iperf: Client</title> + <savetext>Run iperf client</savetext> <preoutput>yes</preoutput> <donotsave>true</donotsave> <menu> <name>iperf</name> - <tooltiptext>Run iperf in client or server mode.</tooltiptext> <section>Diagnostics</section> <configfile>iperf.xml</configfile> </menu> <service> <name>iperf</name> <executable>iperf</executable> - <description>iperf network performance testing daemon/client</description> + <description>iperf Network Performance Testing Daemon/Client</description> </service> <tabs> <tab> <text>Client</text> - <url>/pkg_edit.php?xml=iperf.xml&id=0</url> + <url>/pkg_edit.php?xml=iperf.xml</url> <active/> </tab> <tab> <text>Server</text> - <url>/pkg_edit.php?xml=iperfserver.xml&id=0</url> + <url>/pkg_edit.php?xml=iperfserver.xml</url> </tab> </tabs> <additional_files_needed> + <prefix>/usr/local/pkg/</prefix> <item>https://packages.pfsense.org/packages/config/iperf/iperfserver.xml</item> </additional_files_needed> + <additional_files_needed> + <prefix>/etc/inc/priv/</prefix> + <item>https://packages.pfsense.org/packages/config/iperf/iperf.priv.inc</item> + </additional_files_needed> <fields> <field> <fielddescr>Server</fielddescr> diff --git a/config/iperf/iperfserver.xml b/config/iperf/iperfserver.xml index 524e8366..6cd0e5ec 100644 --- a/config/iperf/iperfserver.xml +++ b/config/iperf/iperfserver.xml @@ -42,8 +42,9 @@ ]]> </copyright> <name>iperf</name> - <version>2.0.5.2</version> + <version>2.0.5.3</version> <title>iperf: Server</title> + <savetext>Run iperf server</savetext> <preoutput>yes</preoutput> <donotsave>true</donotsave> <menu> @@ -55,11 +56,11 @@ <tabs> <tab> <text>Client</text> - <url>/pkg_edit.php?xml=iperf.xml&id=0</url> + <url>/pkg_edit.php?xml=iperf.xml</url> </tab> <tab> <text>Server</text> - <url>/pkg_edit.php?xml=iperfserver.xml&id=0</url> + <url>/pkg_edit.php?xml=iperfserver.xml</url> <active/> </tab> </tabs> |