aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-07 17:31:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-07 17:31:00 +0000
commit17d2c8d44d39b250a1e57637c9c1051a903aec7d (patch)
tree2f9a41d5f72cd0b0c79912639e95f22b2f418417 /packages/tinydns
parent99d494fab1bcf46f6c8594973e914d78fe16f6a5 (diff)
downloadpfsense-packages-17d2c8d44d39b250a1e57637c9c1051a903aec7d.tar.gz
pfsense-packages-17d2c8d44d39b250a1e57637c9c1051a903aec7d.tar.bz2
pfsense-packages-17d2c8d44d39b250a1e57637c9c1051a903aec7d.zip
Start framing the tinydns package
Diffstat (limited to 'packages/tinydns')
-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>