From owner-freebsd-ports@FreeBSD.ORG Wed Dec 1 22:10:55 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 238D216A4CE for ; Wed, 1 Dec 2004 22:10:55 +0000 (GMT) Received: from xyzzy.snsonline.net (office-fw.iexec.net.au [210.18.210.230]) by mx1.FreeBSD.org (Postfix) with SMTP id 2D72643D58 for ; Wed, 1 Dec 2004 22:10:54 +0000 (GMT) (envelope-from msergeant@snsonline.net) Received: from [127.0.0.1] (localhost [127.0.0.1]) by xyzzy.snsonline.net (Postfix) with ESMTP id 449E669B15A; Thu, 2 Dec 2004 08:10:40 +1000 (EST) In-Reply-To: <20041201215808.GH60679@submonkey.net> References: <20041201215808.GH60679@submonkey.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Mark Sergeant Date: Thu, 2 Dec 2004 08:10:37 +1000 To: Ceri Davies X-Mailer: Apple Mail (2.619) cc: freebsd-ports@freebsd.org Subject: Re: change installation directory of postgresql7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 22:10:55 -0000 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.)