aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/anyterm/anyterm.xml98
-rwxr-xr-xconfig/anyterm/binaries8/anytermdbin0 -> 3156865 bytes
-rw-r--r--config/haproxy/haproxy.inc3
3 files changed, 101 insertions, 0 deletions
diff --git a/config/anyterm/anyterm.xml b/config/anyterm/anyterm.xml
new file mode 100644
index 00000000..4bd1b445
--- /dev/null
+++ b/config/anyterm/anyterm.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd">
+<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?>
+<packagegui>
+ <copyright>
+ <![CDATA[
+/* $Id$ */
+/* ========================================================================== */
+/*
+ anyterm.xml
+ part of pfSense (http://www.pfSense.com)
+ Copyright (C) 2009 Scott Ullrich
+ 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.
+ */
+/* ========================================================================== */
+ ]]>
+ </copyright>
+ <name>anyterm</name>
+ <version>1.0</version>
+ <title>anyterm</title>
+ <aftersaveredirect>/pkg_edit.php?xml=anyterm.xml&amp;id=0</aftersaveredirect>
+ <include_file>/usr/local/pkg/anyterm.inc</include_file>
+ <menu>
+ <name>Anyterm</name>
+ <tooltiptext></tooltiptext>
+ <section>Diagnostics</section>
+ <url>/pkg_edit.php?xml=anyterm.xml&amp;id=0</url>
+ </menu>
+ <service>
+ <name>anyterm</name>
+ <rcfile>anyterm.sh</rcfile>
+ <executable>anytermd</executable>
+ <description>The Reliable, High Performance TCP/HTTP Load Balancer</description>
+ </service>
+ <configpath>installedpackages->anyterm->config</configpath>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>077</chmod>
+ <item>http://www.pfsense.com/packages/config/anyterm/anyterm.inc</item>
+ </additional_files_needed>
+ <fields>
+ <field>
+ <fielddescr>Username</fielddescr>
+ <fieldname>username</fieldname>
+ <description>Enter the username for Anyterm</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Password</fielddescr>
+ <fieldname>password</fieldname>
+ <description>Enter the password for Anyterm</description>
+ <type>password</type>
+ </field>
+ <field>
+ <fielddescr>Port</fielddescr>
+ <fieldname>port</fieldname>
+ <description>Enter the port that Anyterm will listen on.</description>
+ <type>input</type>
+ </field>
+ </fields>
+ <custom_delete_php_command>
+ </custom_delete_php_command>
+ <custom_add_php_command>
+ </custom_add_php_command>
+ <custom_php_resync_config_command>
+ anyterm_install();
+ </custom_php_resync_config_command>
+ <custom_php_install_command>
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ anyterm_deinstall();
+ </custom_php_deinstall_command>
+ <custom_php_command_before_form>
+ </custom_php_command_before_form>
+</packagegui> \ No newline at end of file
diff --git a/config/anyterm/binaries8/anytermd b/config/anyterm/binaries8/anytermd
new file mode 100755
index 00000000..733f7197
--- /dev/null
+++ b/config/anyterm/binaries8/anytermd
Binary files differ
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 2ba3edc1..7968371e 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -86,8 +86,11 @@ run_rc_command "\$1"
EOD;
+ $fd = fopen("/usr/local/etc/rc.d/haproxy.sh");
fwrite($fd, $haproxy);
fclose($fd);
+ exec("chmod a+rx /usr/local/etc/rc.d/haproxy.sh")
+
conf_mount_ro();
exec("/usr/local/etc/rc.d/haproxy.sh start");