diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 21:55:28 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 21:55:28 -0400 |
commit | a27686574094958e8bec10103e1ffd9ebd58bd60 (patch) | |
tree | 1ac17460345dba34ba6795187dd50b93b2c8fb17 /config | |
parent | a30ca566c4eab6be07092bc53377c2f94a4f5b9c (diff) | |
download | pfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.tar.gz pfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.tar.bz2 pfsense-packages-a27686574094958e8bec10103e1ffd9ebd58bd60.zip |
Oops, actually write out rc.d file
Diffstat (limited to 'config')
-rw-r--r-- | config/anyterm/anyterm.xml | 98 | ||||
-rwxr-xr-x | config/anyterm/binaries8/anytermd | bin | 0 -> 3156865 bytes | |||
-rw-r--r-- | config/haproxy/haproxy.inc | 3 |
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&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&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 Binary files differnew file mode 100755 index 00000000..733f7197 --- /dev/null +++ b/config/anyterm/binaries8/anytermd 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"); |