diff options
author | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-09-01 06:30:15 +0000 |
---|---|---|
committer | Daniel Stefan Haischt <dsh@pfsense.org> | 2007-09-01 06:30:15 +0000 |
commit | f113ef9068aea8af863e3bfda1454388558bc798 (patch) | |
tree | 02f74bccb4aadd3cb7c2d391929bb54650b78d5f /packages/powerdns.xml | |
parent | 9f2521ca8351e454e03193ddccbf5eb2166ec1fd (diff) | |
download | pfsense-packages-f113ef9068aea8af863e3bfda1454388558bc798.tar.gz pfsense-packages-f113ef9068aea8af863e3bfda1454388558bc798.tar.bz2 pfsense-packages-f113ef9068aea8af863e3bfda1454388558bc798.zip |
* added remaining DTDs
Diffstat (limited to 'packages/powerdns.xml')
-rw-r--r-- | packages/powerdns.xml | 125 |
1 files changed, 63 insertions, 62 deletions
diff --git a/packages/powerdns.xml b/packages/powerdns.xml index 6cd8734b..214da5f4 100644 --- a/packages/powerdns.xml +++ b/packages/powerdns.xml @@ -1,4 +1,5 @@ <?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd"> <?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?> <packagegui> <copyright> @@ -47,8 +48,8 @@ <name>powerdns</name> <version>2.9.16_4</version> <title>Services: PowerDNS</title> - <donotsave>true</donotsave> <preoutput>yes</preoutput> + <donotsave>true</donotsave> <!-- Menu is where this packages menu will appear --> <menu> <name>PowerDNS</name> @@ -73,16 +74,16 @@ <field> <fielddescr>IP Address</fielddescr> <fieldname>ipaddress</fieldname> + <description>(0.0.0.0 to bind to all)</description> <type>input</type> <value>0.0.0.0</value> - <description>(0.0.0.0 to bind to all)</description> </field> <field> <fielddescr>Cache Time to Live</fielddescr> <fieldname>cachettl</fieldname> + <description>Recommended value: 20</description> <type>input</type> <value>20</value> - <description>Recommended value: 20</description> </field> <field> <fielddescr>Master</fielddescr> @@ -103,65 +104,6 @@ </options> </field> </fields> - <custom_php_deinstall_command> - system("/usr/local/bin/pg_ctl -m immediate"); - rmdir_recursive("/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"); - 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\" "); - $fout = fopen("/usr/local/pkg/powerdns.schema","w"); - /* DATABASE SCHEMA */ - fwrite($fout, "create table domains (\n"); - fwrite($fout, "id SERIAL PRIMARY KEY,\n"); - fwrite($fout, "name VARCHAR(255) NOT NULL,\n"); - fwrite($fout, "master VARCHAR(20) DEFAULT NULL,\n"); - fwrite($fout, "last_check INT DEFAULT NULL,\n"); - fwrite($fout, "type VARCHAR(6) NOT NULL,\n"); - fwrite($fout, "notified_serial INT DEFAULT NULL,\n"); - fwrite($fout, "account VARCHAR(40) DEFAULT NULL\n"); - fwrite($fout, ");\n"); - fwrite($fout, "CREATE UNIQUE INDEX name_index ON domains(name);\n"); - fwrite($fout, "CREATE TABLE records (\n"); - fwrite($fout, " id SERIAL PRIMARY KEY,\n"); - fwrite($fout, " domain_id INT DEFAULT NULL,\n"); - fwrite($fout, " name VARCHAR(255) DEFAULT NULL,\n"); - fwrite($fout, " type VARCHAR(6) DEFAULT NULL,\n"); - fwrite($fout, " content VARCHAR(255) DEFAULT NULL,\n"); - fwrite($fout, " ttl INT DEFAULT NULL,\n"); - fwrite($fout, " prio INT DEFAULT NULL,\n"); - fwrite($fout, " change_date INT DEFAULT NULL,\n"); - fwrite($fout, " CONSTRAINT domain_exists\n"); - fwrite($fout, " FOREIGN KEY(domain_id) REFERENCES domains(id)\n"); - fwrite($fout, " ON DELETE CASCADE\n"); - fwrite($fout, ");\n"); - fwrite($fout, "CREATE INDEX rec_name_index ON records(name);\n"); - fwrite($fout, "CREATE INDEX nametype_index ON records(name,type);\n"); - fwrite($fout, "CREATE INDEX domain_id ON records(domain_id);\n"); - fwrite($fout, "create table supermasters (\n"); - fwrite($fout, " ip VARCHAR(25) NOT NULL,\n"); - fwrite($fout, " nameserver VARCHAR(255) NOT NULL,\n"); - fwrite($fout, " account VARCHAR(40) DEFAULT NULL\n"); - fwrite($fout, ");\n"); - fwrite($fout, "GRANT SELECT ON supermasters TO pgsql;\n"); - fwrite($fout, "GRANT ALL ON domains TO pgsql;\n"); - fwrite($fout, "GRANT ALL ON domains_id_seq TO pgsql;\n"); - fwrite($fout, "GRANT ALL ON records TO pgsql;\n"); - fwrite($fout, "GRANT ALL ON records_id_seq TO pgsql;\n"); - fclose($fout); - system("cat /usr/local/pkg/powerdns.schema | /usr/bin/su -l pgsql -c \"psql powerdns\" "); - echo "Installation completed!"; - </custom_php_install_command> <custom_add_php_command> if($password == $passwordagain) { conf_mount_rw(); @@ -244,4 +186,63 @@ exit; } </custom_add_php_command> + <custom_php_install_command> + echo "<pre>"; + echo "Creating DB..."; + system("/usr/bin/su -l pgsql -c initdb"); + 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\" "); + $fout = fopen("/usr/local/pkg/powerdns.schema","w"); + /* DATABASE SCHEMA */ + fwrite($fout, "create table domains (\n"); + fwrite($fout, "id SERIAL PRIMARY KEY,\n"); + fwrite($fout, "name VARCHAR(255) NOT NULL,\n"); + fwrite($fout, "master VARCHAR(20) DEFAULT NULL,\n"); + fwrite($fout, "last_check INT DEFAULT NULL,\n"); + fwrite($fout, "type VARCHAR(6) NOT NULL,\n"); + fwrite($fout, "notified_serial INT DEFAULT NULL,\n"); + fwrite($fout, "account VARCHAR(40) DEFAULT NULL\n"); + fwrite($fout, ");\n"); + fwrite($fout, "CREATE UNIQUE INDEX name_index ON domains(name);\n"); + fwrite($fout, "CREATE TABLE records (\n"); + fwrite($fout, " id SERIAL PRIMARY KEY,\n"); + fwrite($fout, " domain_id INT DEFAULT NULL,\n"); + fwrite($fout, " name VARCHAR(255) DEFAULT NULL,\n"); + fwrite($fout, " type VARCHAR(6) DEFAULT NULL,\n"); + fwrite($fout, " content VARCHAR(255) DEFAULT NULL,\n"); + fwrite($fout, " ttl INT DEFAULT NULL,\n"); + fwrite($fout, " prio INT DEFAULT NULL,\n"); + fwrite($fout, " change_date INT DEFAULT NULL,\n"); + fwrite($fout, " CONSTRAINT domain_exists\n"); + fwrite($fout, " FOREIGN KEY(domain_id) REFERENCES domains(id)\n"); + fwrite($fout, " ON DELETE CASCADE\n"); + fwrite($fout, ");\n"); + fwrite($fout, "CREATE INDEX rec_name_index ON records(name);\n"); + fwrite($fout, "CREATE INDEX nametype_index ON records(name,type);\n"); + fwrite($fout, "CREATE INDEX domain_id ON records(domain_id);\n"); + fwrite($fout, "create table supermasters (\n"); + fwrite($fout, " ip VARCHAR(25) NOT NULL,\n"); + fwrite($fout, " nameserver VARCHAR(255) NOT NULL,\n"); + fwrite($fout, " account VARCHAR(40) DEFAULT NULL\n"); + fwrite($fout, ");\n"); + fwrite($fout, "GRANT SELECT ON supermasters TO pgsql;\n"); + fwrite($fout, "GRANT ALL ON domains TO pgsql;\n"); + fwrite($fout, "GRANT ALL ON domains_id_seq TO pgsql;\n"); + fwrite($fout, "GRANT ALL ON records TO pgsql;\n"); + fwrite($fout, "GRANT ALL ON records_id_seq TO pgsql;\n"); + fclose($fout); + system("cat /usr/local/pkg/powerdns.schema | /usr/bin/su -l pgsql -c \"psql powerdns\" "); + echo "Installation completed!"; + </custom_php_install_command> + <custom_php_deinstall_command> + system("/usr/local/bin/pg_ctl -m immediate"); + rmdir_recursive("/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> </packagegui> |