aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/tinydns/tinydns.inc40
-rw-r--r--packages/tinydns/tinydns.xml35
-rw-r--r--packages/tinydns/tinydns_domains.xml15
3 files changed, 90 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns.inc b/packages/tinydns/tinydns.inc
new file mode 100644
index 00000000..99fd6af5
--- /dev/null
+++ b/packages/tinydns/tinydns.inc
@@ -0,0 +1,40 @@
+<?php
+
+/* $Id$ */
+/*
+ tinydns.inc
+ Copyright (C) 2006 Scott Ullrich
+ part of pfSense
+ 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.
+*/
+
+function tinydns_custom_php_install_command() {
+
+}
+
+function tinydns_custom_php_deinstall_command() {
+
+}
+
+?> \ No newline at end of file
diff --git a/packages/tinydns/tinydns.xml b/packages/tinydns/tinydns.xml
new file mode 100644
index 00000000..8faaf778
--- /dev/null
+++ b/packages/tinydns/tinydns.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <name>tinydns</name>
+ <version>1.0</version>
+ <configpath>installedpackages->package->tinydns->configuration->settings</configpath>
+ <menu>
+ <name>tinydns</name>
+ <tooltiptext></tooltiptext>
+ <section>Services</section>
+ <url>/pkg_edit.php?xml=tinydns.xml&amp;id=0</url>
+ </menu>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>077</chmod>
+ <item>http://www.pfsense.com/packages/config/tinydns/tinydns.inc</item>
+ </additional_files_needed>
+ <custom_php_install_command>
+ tinydns_custom_php_install_command();
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ tinydns_custom_php_deinstall_command();
+ </custom_php_deinstall_command>
+ <include_file>/usr/local/pkg/tinydns.inc</include_file>
+ <fields>
+ <field>
+ <fieldname>active_interface</fieldname>
+ <fielddescr>Proxy interface</fielddescr>
+ <description>The interface(s) the proxy server will bind to.</description>
+ <default_value>lan</default_value>
+ <required/>
+ <type>interfaces_selection</type>
+ <multiple/>
+ </field>
+ </fields>
+</packagegui>
diff --git a/packages/tinydns/tinydns_domains.xml b/packages/tinydns/tinydns_domains.xml
new file mode 100644
index 00000000..82b7893b
--- /dev/null
+++ b/packages/tinydns/tinydns_domains.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <name>tinydnsdomains</name>
+ <configpath>installedpackages->package->tinydnsdomains->configuration->settings</configpath>
+ <include_file>/usr/local/pkg/tinydns.inc</include_file>
+ <fields>
+ <field>
+ <fieldname>Domain</fieldname>
+ <fielddescr>Domain name. Example: exampledomain.com</fielddescr>
+ <description>Enter the domain name that you would like to serve dns records for.</description>
+ <required/>
+ <type>input</type>
+ </field>
+ </fields>
+</packagegui>