aboutsummaryrefslogtreecommitdiffstats
path: root/config/avahi/avahi.xml
diff options
context:
space:
mode:
Diffstat (limited to 'config/avahi/avahi.xml')
-rw-r--r--config/avahi/avahi.xml90
1 files changed, 90 insertions, 0 deletions
diff --git a/config/avahi/avahi.xml b/config/avahi/avahi.xml
new file mode 100644
index 00000000..6baef60b
--- /dev/null
+++ b/config/avahi/avahi.xml
@@ -0,0 +1,90 @@
+<packagegui>
+ <copyright>
+ <![CDATA[
+ /*
+ $Id$
+ avahi.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>avahi</name>
+ <version>1.0</version>
+ <title>Services: Avahi</title>
+ <menu>
+ <name>Avahi</name>
+ <tooltiptext>Modify avahi settings.</tooltiptext>
+ <section>Services</section>
+ <url>pkg_edit.php?xml=avahi.xml&amp;id=0</url>
+ </menu>
+ <service>
+ <name>avahi</name>
+ <rcfile>avahi.sh</rcfile>
+ <executable>avahi</executable>
+ </service>
+ <additional_files_needed>
+ <prefix>/tmp/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.org/packages/config/avahi/binaries/avahi.tgz</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.org/packages/config/avahi/avahi.inc</item>
+ </additional_files_needed>
+ <fields>
+ <field>
+ <fielddescr>Enable</fielddescr>
+ <fieldname>enable</fieldname>
+ <description>Enable Avahi Bonjour/Zeroconf proxy.</description>
+ <type>checkbox</type>
+ </field>
+ <field>
+ <fielddescr>Browse domains (comma separated)</fielddescr>
+ <fieldname>browsedomains</fieldname>
+ <description>Enter the domains that you would like proxied. (example: local, pfsense.org, mydomain.com)</description>
+ <type>input</type>
+ </field>
+ <field>
+ <fielddescr>Deny interfaces</fielddescr>
+ <fieldname>denyinterfaces</fieldname>
+ <description>Interfaces that you do NOT want Avahi to listen on. NOTE: WAN is disabled by default.</description>
+ <type>interfaces_selection</type>
+ <multiple>true</multiple>
+ </field>
+ </fields>
+ <custom_add_php_command>
+ setup_avahi();
+ </custom_add_php_command>
+ <custom_php_install_command>
+ setup_avahi();
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ unlink_if_exists("/usr/local/etc/rc.d/avahi-daemon.sh");
+ exec("killall avahi-daemon");
+ </custom_php_deinstall_command>
+ <include_file>/usr/local/pkg/avahi.inc</include_file>
+</packagegui>