aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-28 22:48:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-28 22:48:42 +0000
commit2da621c6960c15181b52e22d4fdc5012942e4463 (patch)
treea8e8278832abf887e6618881aaaabfa3b91d2eae
parented502b66d0b54663a7e05670cdbc741cd5bbb28d (diff)
downloadpfsense-packages-2da621c6960c15181b52e22d4fdc5012942e4463.tar.gz
pfsense-packages-2da621c6960c15181b52e22d4fdc5012942e4463.tar.bz2
pfsense-packages-2da621c6960c15181b52e22d4fdc5012942e4463.zip
Add hula package
-rw-r--r--packages/hula.xml54
-rw-r--r--pkg_config.xml13
2 files changed, 67 insertions, 0 deletions
diff --git a/packages/hula.xml b/packages/hula.xml
new file mode 100644
index 00000000..2beb7921
--- /dev/null
+++ b/packages/hula.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <title>Services: Hula</title>
+ <name>hula</name>
+ <version>3.0</version>
+ <donotsave>true</donotsave>
+ <preoutput>yes</preoutput>
+ <savetext>Change</savetext>
+ <additional_files_needed>
+ <item>http://www.pfsense.com/packages/All/hula.tgz</item>
+ </additional_files_needed>
+ <!-- Menu is where this packages menu will appear -->
+ <menu>
+ <name>Hula Default Settings</name>
+ <tooltiptext>This area will help setup Hula for the first time.</tooltiptext>
+ <section>Services</section>
+ <configfile>hula.xml</configfile>
+ </menu>
+ <!-- Do not save invokes a simple input menu and will not update
+ the configuration database. -->
+ <fields>
+ <field>
+ <fielddescr>Hula Default Domain</fielddescr>
+ <fieldname>domain</fieldname>
+ <description>Enter the default domain that hula will use.</description>
+ <type>input</type>
+ </field>
+ </fields>
+ <custom_add_php_command>
+ conf_mount_rw();
+ config_lock();
+ $fout = fopen("/usr/local/etc/rc.d/hula.sh","w");
+ fwrite($fout, "#!/bin/sh\n\n");
+ fwrite($fout, "/usr/local/hula/sbin/hulamanager &amp;\n");
+ fclose($fout);
+ system("chmod 555 /usr/local/etc/rc.d/hula.sh");
+ system("/usr/local/hula/hulasetup --domain " . $_POST['domain']);
+ system("/usr/local/etc/rc.d/hula.sh");
+ conf_mount_ro();
+ config_unlock();
+ </custom_add_php_command>
+ <custom_php_deinstall_command>
+ system("/usr/bin/killall -9 hulamanager");
+ system("rm -rf /usr/local/hula");
+ </custom_php_deinstall_command>
+ <custom_php_install_command>
+ system("rm /usr/local/etc/rc.d/hula.sh");
+ $fout = fopen("/usr/local/etc/rc.d/hula.sh","w");
+ fwrite($fout, "#!/bin/sh\n\n");
+ fwrite($fout, "/usr/local/hula/sbin/hulamanager &amp;\n");
+ fclose($fout);
+ system("chmod 555 /usr/local/etc/rc.d/hula.sh");
+ </custom_php_install_command>
+</packagegui>
diff --git a/pkg_config.xml b/pkg_config.xml
index 1454e203..063e2211 100644
--- a/pkg_config.xml
+++ b/pkg_config.xml
@@ -201,5 +201,18 @@
<status>ALPHA</status>
<configurationfile>siproxd.xml</configurationfile>
</package>
+ <package>
+ <name>hula</name>
+ <website>http://www.hula-project.org</website>
+ <descr></descr>
+ <category>Services</category>
+ <config_file>http://www.pfsense.com/packages/config/hula.xml</config_file>
+ <depends_on_package_base_url>http://www.pfSense.com/packages/All/</depends_on_package_base_url>
+ <depends_on_package>hula.tgz</depends_on_package>
+ <verifyinstalledpkg>""</verifyinstalledpkg>
+ <version>0.1</version>
+ <status>ALPHA-ALPHA</status>
+ <configurationfile>hula.xml</configurationfile>
+ </package>
</packages>
</pfsensepkgs>