Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 1999 13:25:30 -0400 (EDT)
From:      Matt Behrens <matt@zigg.com>
To:        Narvi <narvi@haldjas.folklore.ee>
Cc:        freebsd-chat@FreeBSD.ORG, "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>, sthaug@nethelp.no, marquis@roble.com
Subject:   Re: SSH2 (in FreeBSD-Questions)
Message-ID:  <Pine.BSF.4.10.9906041309190.22269-100000@megaweapon.zigg.com>
In-Reply-To: <Pine.BSF.3.96.990604195205.3570O-100000@haldjas.folklore.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 Jun 1999, Narvi wrote:

: > Well, why not do what I do -- I have /opt/packagename/bin,
: > /opt/packagename/sbin, etc. and I simply do this after installing
: > a package:

: > 	cd /opt/bin;ln -s ../*/bin/* .

: > Then we can just add /opt/bin to our paths.  We still keep things
: > nice and separate, and if we want to clean up dead symlinks, we
: > just do rm /usr/bin/* then rerun the symlink generator.

Oops, I meant /opt/bin/*; /usr/bin/* isn't such a bright idea :-)

: You conviniently overlooked the matter of shared libraries. And other
: shared files. And manual pages. And...
: 
: Of course you could have dummy directories full of links for these all.
: But that is getting to *WAY* too many symlinks.

"Conveniently"?  I'll ignore that little shot and take the rest of
what you say at face value.  I'm not trying to start a flame war
here.

First of all, shared library directories are already full of
mostly symlinks; especially the non-system ones such as /usr/local/lib.  
Besides, it's not as if the system needs to look up the library
every time it makes a function call.  Or with every time you hit
the space bar to see the next screenful in the manpage you're
looking at.  I've been using the same symlink scheme with /opt/lib
and /opt/man/man? for some time and it hasn't hurt one bit, except
maybe with a few extra directory entries here and there.

Admittedly, I've only had time to patch ten or so packages to work
with this scheme, since regrettably a lot of stuff comes out of
the box with an inflexible scheme.  (pine absolutely made me cringe.)
But I'm toying with reworking a few of them, since I've saved
patchfiles, to work with a more flexible scheme where the preferred
layout can be specified before compiling in a way similar to
configure options but more flexibly and perhaps with an option to
read an /etc/path.conf file or something similar.

Mind you, I'm not forcing anyone to accept my particular scheme.
I just think it would be nice if packages came out of the tarball
supporting this sort of thing a little more readily.  And some
people may find these ideas, and the knowledge that they can work,
useful.

Matt Behrens <matt@zigg.com>
Owner/Administrator, zigg.com
Chief Engineer, Nameless IRC Network



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




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