Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2000 22:30:01 -0500 (CDT)
From:      Mike Meyer <mwm@mired.org>
To:        Jan Pfeifer <janpf@iname.com>
Cc:        questions@freebsd.org
Subject:   moving from Debian Linux
Message-ID:  <14742.5689.161185.434235@guru.mired.org>
In-Reply-To: <73752630@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
> 1. I tried configuring my ethernet card by hand, using ifconfig, and
> it worked out. But where (or using which program) should I configure
> it permanently ? -- I didn't find this info in the Handbook, is there
> some other docs I'm missing ? BTW, where should I configure the
> default DNS address -- it didn't install any /etc/resolv.conf, should I
> create it ?

Read through /etc/defaults/rc.conf for information on that. For that
matter, read through everything in /etc/defaults.

> 4. I noticed the ports and packaging system uses
> /usr/local/... directories to store the installed
> programs/packages. Where does local programs that I wish to
> install goes ? I mean, debian/linux uses /usr/bin/ for the package
> programs and I use the /usr/local for "unofficial" programs.
> Is there something like /usr/local/local/... in FreeBSD ?
> (where "unofficial" means not managed by the packaging/port system)

Nope, there isn't an "offical", or even "customary" alternative to
/usr/local for things that are locally created. You can create another
of your own (/usr/really-local, for instance); you can ignore it and
install everything in /usr/local; you can make your locally installed
applications into ports, and install those (and hopefully submit them
via send-pr). Finally, you can change the destination directory for
ports from /usr/local by adding a line like:

	LOCALBASE=/usr/opt

to /etc/make.conf. The latter means you can't use packages, but have
to use ports. Also, not all ports are LOCALBASE "clean". In
particular, things that install perl modules install them in
/usr/local/lib/perl... instead of $(LOCALBASE)/lib/perl..., but that's
being looked at.

I finally settled on the last one. Partly, it's that ports are
*supposed* to work that way, whereas other packages may have no such
mechanism, so I feel that's the path of least resistance. Also, I'm
contributing to the project whenever I find and fix such a broken
port.

If you're going to do this, you need to go through /etc/defaults/* and
look for things that look in /usr/local for stuff, and change them to
use your LOCALBASE. If you're going to be installing things in
/usr/local as well, you may need to *add* those things.

	<mike


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?14742.5689.161185.434235>