diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-10 03:30:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-10 03:30:50 +0000 |
commit | 222f86ac49b468d157c69ecd82a5bf2851f8f730 (patch) | |
tree | 562687c8121bb06bebd7c2b74888e42c09f0bc42 | |
parent | 2bd2f079e8bd26c7d539d6874f595c8ad94968fc (diff) | |
download | pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.tar.gz pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.tar.bz2 pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.zip |
Initial port of powerdns
-rw-r--r-- | packages/powerdns.xml | 43 | ||||
-rw-r--r-- | pkg_config.xml | 12 |
2 files changed, 55 insertions, 0 deletions
diff --git a/packages/powerdns.xml b/packages/powerdns.xml new file mode 100644 index 00000000..e236e35d --- /dev/null +++ b/packages/powerdns.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8" ?> +<packagegui> + <name>nmap</name> + <donotsave>true</donotsave> + <preoutput>yes</preoutput> + <additional_files_needed> + <item>http://www.pfsense.com/packages/config/powerdns.schema</item> + </additional_files_needed> + <!-- Menu is where this packages menu will appear --> + <menu> + <name>PowerDNS</name> + <tooltiptext></tooltiptext> + <section>Services</section> + <configfile>powerdns.xml</configfile> + </menu> + <!-- Do not save invokes a simple input menu and will not update + the configuration database. --> + <fields> + </fields> + <custom_php_deinstall_command> + system("rm -rf /usr/local/pgsql"); + system("/usr/sbin/pw userdel pgsql"); + system("/usr/bin/killall -9 postgres"); + echo "<p>"; + echo "Reboot required... One moment..."; + echo "<p>"; + system("/sbin/shutdown -r now"); + </custom_php_deinstall_command> + <custom_php_install_command> + echo "<pre>"; + echo "Creating DB..."; + system("/usr/bin/su -l pgsql -c initdb"); + echo "Starting DB..."; + system("/usr/local/etc/rc.d/010.pgsql.sh start"); + system("/usr/bin/su -l pgsql -c \"dropdb powerdns\" "); + system("/usr/bin/su -l pgsql -c \"createdb powerdns\" "); + echo "Creating DB Schema..."; + system("cat /usr/local/pkg/powerdns.schema | /usr/bin/su -l pgsql -c \"psql powerdns\" "); + system("cat /usr/local/www/powerdnsadmin-0.3/docs/postgresql.sql | /usr/bin/su -l pgsql -c \"psql powerdns\" "); + </custom_php_install_command> + <custom_add_php_command> + </custom_add_php_command> +</packagegui>
\ No newline at end of file diff --git a/pkg_config.xml b/pkg_config.xml index f366fab1..da868c33 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -56,5 +56,17 @@ <config_file>http://www.pfsense.com/packages/config/stunnel.xml</config_file> <configurationfile>stunnel.xml</configurationfile> </package> + + <package> + <name>powerdns</name> + <descr>(BETA PACKAGE!) PDNS is an advanced high performance authoritative nameserver</descr> + <category>Network Management</category> + <depends_on_package_base_url>http://ftp2.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/All</depends_on_package_base_url> + <depends_on_package>powerdns-2.9.16_4.tbz</depends_on_package> + <version>2.9.16_4</version> + <config_file>http://www.pfsense.com/packages/config/powerdns.xml</config_file> + <configurationfile>powerdns.xml</configurationfile> + </package> + </packages> </pfsensepkgs> |