*BSD News Article 61444


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!EU.net!Austria.EU.net!news.aut.alcatel.at!atusc73!ladavac
From: ladavac@aut.alcatel.at (Marino Ladavac)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: What is meant by `port' (Was Re: Modem program for FreeBSD
Date: 14 Feb 1996 10:22:53 GMT
Organization: Alcatel Austria AG
Lines: 41
Message-ID: <4fsd5t$nmd@atusks02.aut.alcatel.at>
References: <4elddo$ee8@cdc2.cdc.net> <xcdivhmwfvi.fsf_-_@woodlawn.uchicago.edu> <4f4h2p$oub@mark.ucdavis.edu> <kientzleDMKvFC.C2x@netcom.com> <4fm3v7$788@helena.MT.net>
NNTP-Posting-Host: atusc73.aut.alcatel.at
X-Newsreader: TIN [version 1.2 PL2]

Nate Williams (nate@trout.sri.MT.net) wrote:
: In article <kientzleDMKvFC.C2x@netcom.com>,  <kientzle@netcom.com> wrote:
: >In article <4f4h2p$oub@mark.ucdavis.edu>,
: >David E. O'Brien <obrien@nob.ucdavis.edu> wrote:
: [ Packages install in /usr/local using the scheme in heir(7) ]
: >
: >Unfortunately, although restricting new installs to /usr/local is
: >a vast improvement over what you describe, I still find it lacking.
: >I've been tinkering with the following scheme:
: >
: >For each program/system/application/whatever, create
: >
: >   /usr/local/app/<program>/
: >
: >with subdirectories--bin, lib, libexec, man/man1, etc.--for that
: >program.

: I disagree.  I've used both versions, and maintaining my dot files when
: you use the above configuration is a nightmare.  Given the choices
: between making it harder for the sys. admin. vs making it harder for the
: users, I'll choose to make the sys. admin's life more difficult. :)

Hmm, you can get the best of both worlds if you do something like the
following.

1) You keep the packages confined in /usr/local/name/...

2) In /usr/local/{bin,lib,man/...,include,...} you put symbolic links
   to the /usr/local/name/... pieces.

3) Use a script to snarf and remove all links to the (now defunct)
   /usr/local/name/... once you remove the package.  If manpages were
   in source form and were eventually formatted 9and ended up in man/cat*),
   your script needs to remember the link version and look if there is
   something similar in cat* directory.

I'm too lazy to write a script for something I do once a year (if that
often :)  If I should happen to need such a beast, I'd be glad to pass
it on.

/Alby