FreeBSD 9 support

This commit is contained in:
Jamie Cameron
2013-03-19 17:11:02 -07:00
parent f1bce6cc3b
commit 0add4cf4f9
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
basedb=template1
pass=
hba_conf=/usr/local/pgsql/data/pg_hba.conf
pid_file=/usr/local/pgsql/data/postmaster.pid
stop_cmd=/usr/local/etc/rc.d/postgresql forcestop
start_cmd=/usr/local/etc/rc.d/postgresql forcestart
setup_cmd=/usr/local/etc/rc.d/postgresql forceinitdb
perpage=25
psql=/usr/local/bin/psql
login=pgsql
plib=/usr/local/lib
nodbi=0
dump_cmd=/usr/local/bin/pg_dump
rstr_cmd=/usr/local/bin/pg_restore
sameunix=0
access=*: *
blob_mode=0
add_mode=1
date_subs=0
style=0
max_dbs=50
simple_sched=0
access_own=0
max_text=1000
webmin_subs=0

View File

@@ -25,6 +25,11 @@ if (!-x $config{'psql'} || -d $config{'psql'}) {
# Check for alternate config file, and use
if (!$hba_conf_file && -r $config{'alt_hba_conf'} && &is_postgresql_local()) {
($hba_conf_file) = split(/\t+/, $config{'hba_conf'});
my $hba_conf_dir = $hba_conf_file;
$hba_conf_dir =~ s/\/([^\/]+)$//;
if (!-d $hba_conf_dir) {
&make_dir($hba_conf_dir, 0777);
}
&copy_source_dest($config{'alt_hba_conf'}, $hba_conf_file);
}