From owner-freebsd-ports Sun Jul 23 16:24:12 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ducky.nz.freebsd.org (chilled.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 4CCE837BB23; Sun, 23 Jul 2000 16:24:07 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ducky.nz.freebsd.org (8.9.3/8.9.3) with ESMTP id LAA72690; Mon, 24 Jul 2000 11:24:01 +1200 (NZST) From: "Dan Langille" Organization: langille.org To: Palle Girgensohn Date: Mon, 24 Jul 2000 11:23:59 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: postgresql7 user message contains $PREFIX not /usr/local Reply-To: dan@langille.org Cc: ports@freebsd.org, andreas@freebsd.org Message-ID: <397C274F.16659.118B7499@localhost> In-reply-to: <397B7A40.6DC0C203@partitur.se> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 24 Jul 2000, at 1:05, Palle Girgensohn wrote: > Dan Langille wrote: > > > > On 24 Jul 2000, at 0:56, Palle Girgensohn wrote: > > > > > Dan Langille wrote: > > > > > > > > I just installed databases/postgresql7 and spotted the following > > > > message: > > > > > > > > To start PostgreSQL, run the startup script: > > > > $PREFIX/etc/rc.d/pgsql.sh start ===> Compressing manual pages for > > > > postgresql-7.0.2 > > > > > > > > To be nice to the user, who we all know doesn't know much, should we > > > > say "/usr/local" instead of "$PREFIX"? > > > > > > I guess, if the user is using a different prefix than > > > /usr/local, the user knows more than the average, and will > > > exchange /usr/local for their favourite prefix automatically in > > > his/her mind while reading the message ;-) > > > > > > You're probably right, putting /usr/local instead would > > > probably confuse a smaller amount of users :) > > > > Actually, I think it should say /usr/local/ only if that's what PREFIX > > evaluates to. My initial thoughts were that the code was not correctly > > evaluating the $PREFIX variable. Rather, the string "$PREFIX" was being > > printed instead of the value contained within $PREFIX. > > This could be done, but the text is in a file that is not > parsed by the makefile. This could easily be done, though. I suggest that either it be done (i.e. parsed by the makefile) or removed altogether and replaced with a hardcoded "/usr/local". Most users will be using the default location (/usr/local). Those users, and many of them will be novices, will only be confused by seeing "$PREFX//etc/rc.d/pgsql.sh". And those advanced users who are not using /usr/local will know what $PREFIX means and will know where their "etc/rc.d" directory is. I appreciate the intent behind "$PREFIX/etc/rc.d/pgsql.sh", but we must remember the people who don't know as much as we do. They're the ones we can't alienate. It would also avoid needless posts to -questions such as "I can't find my $PREFIX/etc/rc.d/pgsql.sh directory...". ;) -- Dan Langille [I'm looking for more work] The FreeBSD Diary - http://www.freebsddiary.org/ FreshPorts - http://freshports.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message