Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2001 15:13:08 -0600
From:      Mike Meyer <mwm@mired.org>
To:        "Bara Zani" <bara_zani@yahoo.com>
Cc:        questions@freebsd.org
Subject:   Re: /usr/ports question
Message-ID:  <15356.6372.508616.392204@guru.mired.org>
In-Reply-To: <66548662@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Bara Zani <bara_zani@yahoo.com> types:
> Hi ,
> I want to change the default install options of a certain port , how can i
> do that ?

If you're talking about location, use PREFIX. That's the top of the
tree for installs, so binariexz go in $PREFIX/bin, man pages in
$PREFIX/man, and so on.  However, changing the PREFIX for just one
port isn't very safe - you really should make them *all* install with
the same PREFIX, which you do by setting LOCALBASE in
/etc/make.conf. Even then, some ports will break for one reason or
another because they don't handle the change properly.

> for example i want bash2 port to install to /bin and not /usr/local/bin
> thanks .

# cd /usr/ports/shells/bash2
# PREFIX=/ make clean install

In the case of bash2, it's best just to copy - or link, if the two are
on the same file system - the binary to /bin.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15356.6372.508616.392204>