Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 08:10:37 +1000
From:      Mark Sergeant <msergeant@snsonline.net>
To:        Ceri Davies <ceri@submonkey.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: change installation directory of postgresql7
Message-ID:  <D4381706-43E5-11D9-BCEE-000A95AB7DDE@snsonline.net>
In-Reply-To: <20041201215808.GH60679@submonkey.net>
References:  <NCEAIDGINCIDIPEKFPHDIENBDGAA.a.nooit@12move.nl> <20041201215808.GH60679@submonkey.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I find a default install works fine and then change the pgsql users 
.profile and .cshrc and change the PGDATA directive to the correct 
location, eg. PGDATA=/data/db . Then run an initdb which will propogate 
the directory you choose.

Cheers,

Mark

On 02/12/2004, at 07:58, Ceri Davies wrote:

> On Wed, Dec 01, 2004 at 10:55:36PM +0100, A. Nooitgedagt wrote:
>> What does it take to make port databases/postgresql7
>> install in subdirectory /usr/local/pgsql ? The port's
>> default is /usr/local but postgresql's default is /usr/local/pgsql.
>>
>> Is there another way than changing PREFIX in the port?
>>
>> It doesn't seem to matter if I define
>> CONFIGURE_ARGS+= --prefix=${PREFIX}/pgsql
>>
>> I think I have tried most other possibilities,
>> but I'm probably missing something
>
> Just define PREFIX.  By default though, the binaries will go in
> /usr/local/{s,}bin whilst the data directory will be /usr/local/pgsql -
> I've found that this is "right" for me.
>
> Ceri
> -- 
> Only two things are infinite, the universe and human stupidity, and I'm
> not sure about the former.			  -- Einstein (attrib.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D4381706-43E5-11D9-BCEE-000A95AB7DDE>