From 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 6 Feb 2009 19:18:00 -0600 Subject: mv packages to config dir to match web layout --- config/bandwidthd/bandwidthd.inc | 201 +++++++++++++++++++++++++++++++++++++++ config/bandwidthd/bandwidthd.xml | 153 +++++++++++++++++++++++++++++ 2 files changed, 354 insertions(+) create mode 100644 config/bandwidthd/bandwidthd.inc create mode 100644 config/bandwidthd/bandwidthd.xml (limited to 'config/bandwidthd') diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc new file mode 100644 index 00000000..262530ce --- /dev/null +++ b/config/bandwidthd/bandwidthd.inc @@ -0,0 +1,201 @@ + "bandwidthd.sh", + "start" => "/usr/local/bandwidthd/bandwidthd /usr/local/bandwidthd/etc/bandwidthd.conf", + "stop" => "/usr/bin/killall bandwidthd" + ) + ); + + exec("rm /usr/local/www/bandwidthd"); + exec("/bin/ln -s /usr/local/bandwidthd/htdocs /usr/local/www/bandwidthd"); + + exec("echo \"Please start bandwidthd to populate this directory.\" > /usr/local/bandwidthd/htdocs/index.html"); + + conf_mount_ro(); + config_unlock(); + + stop_service("bandwidthd"); + start_service("bandwidthd"); + +} + +?> \ No newline at end of file diff --git a/config/bandwidthd/bandwidthd.xml b/config/bandwidthd/bandwidthd.xml new file mode 100644 index 00000000..7d91ce77 --- /dev/null +++ b/config/bandwidthd/bandwidthd.xml @@ -0,0 +1,153 @@ + + + + + + . + 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. + */ +/* ========================================================================== */ + ]]> + + Describe your package here + Describe your package requirements here + Currently there are no FAQ items provided. + bandwidthd + 1.0 + Bandwidthd + /pkg_edit.php?xml=bandwidthd.xml&id=0 + /usr/local/pkg/bandwidthd.inc + + BandwidthD + +
Services
+ /pkg_edit.php?xml=bandwidthd.xml&id=0 +
+ + bandwidthd + bandwidthd.sh + bandwidthd + + + + BandwidthD + /pkg_edit.php?xml=bandwidthd.xml&id=0 + + + + Access BandwidthD + /bandwidthd + + + installedpackages->package->bandwidthd + + /usr/local/pkg/ + 077 + http://www.pfsense.com/packages/config/bandwidthd/bandwidthd.inc + + + + interface + active_interface + The interface that bandwidthd will bind to. + interfaces_selection + + lan + + + Skip intervals + skipintervals + + input + 1024 + + + Graph cutoff + graphcutoff + Graph cutoff is how many k must be transfered by an ip before we bother to graph it + input + 1024 + + + promiscuous + promiscuous + Put interface in promiscuous mode to score to traffic that may not be routing through the host machine. + checkbox + + + output_cdf + outputcdf + Log data to cdf file htdocs/log.cdf + checkbox + + + recover_cdf + recovercdf + Read back the cdf file on startup + checkbox + + + filter + filter + Libpcap format filter string used to control what bandwidthd see's. Please always include "ip" in the string to avoid strange problems. + input + ip + + + Draw Graphs + drawgraphs + This default to true to graph the traffic bandwidthd is recording. Usually set this to false if you only want cdf output or you are using the database output option. Bandwidthd will use very little ram and cpu if this is set to false. + checkbox + checked + + + Meta Refresh + meta_refresh + Set META REFRESH seconds (default 150, use 0 to disable). + input + 150 + + + + bandwidthd_install_config(); + + + bandwidthd_install_config(); + + + bandwidthd_install_deinstall(); + +
-- cgit v1.2.3