Bug 27486

Summary: pkg_add man page incomplete/incorrect
Product: Base System Reporter: tom <tom>
Component: binAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description tom 2001-05-21 04:20:01 UTC
the man page for pkg_add does not mention the environment variable
PACKAGEMIRROR, and based on my reading of the manual and code it
should either be combined with PACKAGEROOT and the example setting 
corrected to read "ftp://ftp3.FreeBSD.org/pub" or the alternate 
wording below substituted. 

The environment variable PACKAGEMIRROR specifies an alternate host for
pkg_add to fetch from.  The fetch URL is built using this environment
variable and the automatic directory logic that pkg_add uses when the -r
option is invoked. An example setting would be "ftp://ftp3.FreeBSD.org".

The environment variable PACKAGEROOT specifies an alternate directory
root for pkg_add to fetch from.  An example setting would be "/mirrors".

see also bin/27485

How-To-Repeat: man pkg_add
Comment 1 ru freebsd_committer freebsd_triage 2001-05-21 10:34:59 UTC
State Changed
From-To: open->closed

You are reading the obsolete code; PACKAGEMIRROR was replaced 
with PACKAGEROOT in pkg_install/add/main.c,v 1.36. 


Comment 2 ru freebsd_committer freebsd_triage 2001-05-21 10:34:59 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

PACKAGEMIRROR was David's baby.