Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 1997 22:47:11 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Joey Garcia <jbgarcia@inreach.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: pkg_add questions
Message-ID:  <Pine.BSF.3.96.971002224427.26112S-100000@gdi.uoregon.edu>
In-Reply-To: <3.0.1.32.19970930085314.0068d624@inreach.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Sep 1997, Joey Garcia wrote:

> 	
> 	hey freebsd gurus!
> 
> 	I have a question about the pkg_add tool.  I have added some packages from
> cdrom that I had copied to dos partition because my cdrom isn't supported.
> Anyways, the problem is that the packages are installed into /usr/local/bin
> or /usr/local/whatever.  I believe that something such as shells should
> extract to /bin and other binaries should go to /usr/bin.  Well, at least
> that's the way I'd like to extract.

Unfortunately, that kinda breaks our carefully crafted hier(7).  Stuff in
/bin needs to be statically linked, which the packages aren't.  In
addition, local updates and changes land in /usr/local/* so you can easily
separate them from provided-with-system binaries and such.

If you want to move them, that's what the mv(1) command is for :-)

> 	How can I change it so that when the packages are installed by using
> pkg_add the packages install into either /usr/bin or /bin, or whatevever
> approprite directory it should be?  It's not only the binary, but other
> files get installed into /usr/local/share or whatever.  I'd like it to go
> to /usr/share.  Bascially, I'd like to keep most things in one place.  If
> you know wha I mean.  How can I go by doing that? Is there something I can
> change in some file that makes it do that?

Not easily.  The package has been pre-wired with a packing list (PLIST)
and the tar archive built with the proper paths.  I suppose you could
extract and re-tar the archive as you wanted, but that is a lot of work
for what is a stylistic change.  

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major





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