View Single Post
  #7   (View Single Post)  
Old 26th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Quote:
Originally Posted by pkg_add(1)
The environment variable PKGDIR specifies an alternative location to save
downloaded packages to when -K option is used.
Which is specifically what I wanted to do and why PKGDIR was set ;-)


When I first planned out the operation, I checked the manual for two reasons:

0/ What environment variable controls where packages can be saved? -- found

1/ What environment variables effect port builds -- found but incomplete



When I have issues with ports, I just go to the Makefiles and trace my fingers along the code until I find my way.


In this case, I was adding packages in sequence via bourne shell script and stopping to install ports in a sub shell when necessary (no package available or out of date).


And found no logical reason to poke around the ports systems internal makefile, since I would naturally look in the end user documentation on orts and pkg_* for how to avoid shooting myself in the foot with environment variables ^_^


My systems almost fully operational and ready to rock & roll. Just a few more things to install via ports (with PKGDIR unset) and a kernel to compile and volia.


While the saved packages get off loaded to be placed in cold storage in, just in case I need a backup of 4 hours worth of fetching at a later date .
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote