From 222f86ac49b468d157c69ecd82a5bf2851f8f730 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 10 Jan 2005 03:30:50 +0000 Subject: Initial port of powerdns --- packages/powerdns.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 packages/powerdns.xml (limited to 'packages/powerdns.xml') 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 @@ + + + nmap + true + yes + + http://www.pfsense.com/packages/config/powerdns.schema + + + + PowerDNS + +
Services
+ powerdns.xml +
+ + + + + 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"); + + + 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\" "); + + + +
\ No newline at end of file -- cgit v1.2.3