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 /packages | |
parent | 2bd2f079e8bd26c7d539d6874f595c8ad94968fc (diff) | |
download | pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.tar.gz pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.tar.bz2 pfsense-packages-222f86ac49b468d157c69ecd82a5bf2851f8f730.zip |
Initial port of powerdns
Diffstat (limited to 'packages')
-rw-r--r-- | packages/powerdns.xml | 43 |
1 files changed, 43 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 |