Re: PKG_PATH question !

2008-08-03 Thread Francisco Valladolid Hdez.
Thanks for the appointment.!

Regards.

--- Philip Guenther [EMAIL PROTECTED] wrote:

 On Sat, Aug 2, 2008 at 1:52 PM, Francisco Valladolid
 Hdez.
 [EMAIL PROTECTED] wrote:
  Can have more than IP address appointed to
 PKG_PATH ?
 
 PKG_PATH can't contain IP addresses except as part
 of URLs.  It can
 contain entries that aren't URLs.
 
 
  some times I have packages grabbed in my HD
 sometimes
  I have to install from ftp.
 
  It's possible do it:
 
  export PKG_PATH=ftp://ftp.some;
 /usr/ports/packages/
 
 You obviously didn't actually try typing that,
 because you would have
 gotten an error from the shell: semicolon is a
 special character to
 the shell and needs to be quoted to include in a
 variable value.
 However, semicolon is the wrong character for
 PKG_PATH!  Please inform
 the author of the documentation that you got that
 from that it's wrong
 and needs to be corrected.
 
 Since pkg_add is the command that uses PKG_PATH, did
 you consider
 reading the pkg_add(1) manpage to see what it says
 about it?  (If not,
 please do so in the future: OpenBSD actually
 documents stuff in
 manpages!)
 
  PKG_PATH If a given package name cannot be
 found, the directories
   named by PKG_PATH are searched. 
 It should contain a series
   of entries separated by colons. 
 Each entry consists of a
   directory name, ending in a slash.
  URL schemes such as FTP,
   HTTP, HTTPS, or SCP are also
 appropriate.  The current di-
   rectory may be indicated
 implicitly by an empty directory
   name, or explicitly by a single
 period (`./').
 
 So:
export
 PKG_PATH=ftp://ftp.some/:/usr/ports/packages/
 
 
 Philip Guenther
 
 


--- 
Therefore, if anyone is in Christ, he is a new creation; the old has gone, the 
new has come! - 2 Corinthians 5:17 (NIV)
---
Francisco Valladolid Hdez.
http://blog.bsdguy.net - http://flickr.com/photos/sigueme/



PKG_PATH question !

2008-08-02 Thread Francisco Valladolid Hdez.
Hi.

Can have more than IP address appointed to PKG_PATH ?

some times I have packages grabbed in my HD sometimes
I have to install from ftp.

It's possible do it:

export PKG_PATH=ftp://ftp.some; /usr/ports/packages/

Regards.

--- 
Therefore, if anyone is in Christ, he is a new creation; the old has gone, the 
new has come! - 2 Corinthians 5:17 (NIV)
---
Francisco Valladolid Hdez.
http://blog.bsdguy.net - http://flickr.com/photos/sigueme/



Re: PKG_PATH question !

2008-08-02 Thread Philip Guenther
On Sat, Aug 2, 2008 at 1:52 PM, Francisco Valladolid Hdez.
[EMAIL PROTECTED] wrote:
 Can have more than IP address appointed to PKG_PATH ?

PKG_PATH can't contain IP addresses except as part of URLs.  It can
contain entries that aren't URLs.


 some times I have packages grabbed in my HD sometimes
 I have to install from ftp.

 It's possible do it:

 export PKG_PATH=ftp://ftp.some; /usr/ports/packages/

You obviously didn't actually try typing that, because you would have
gotten an error from the shell: semicolon is a special character to
the shell and needs to be quoted to include in a variable value.
However, semicolon is the wrong character for PKG_PATH!  Please inform
the author of the documentation that you got that from that it's wrong
and needs to be corrected.

Since pkg_add is the command that uses PKG_PATH, did you consider
reading the pkg_add(1) manpage to see what it says about it?  (If not,
please do so in the future: OpenBSD actually documents stuff in
manpages!)

 PKG_PATH If a given package name cannot be found, the directories
  named by PKG_PATH are searched.  It should contain a series
  of entries separated by colons.  Each entry consists of a
  directory name, ending in a slash.  URL schemes such as FTP,
  HTTP, HTTPS, or SCP are also appropriate.  The current di-
  rectory may be indicated implicitly by an empty directory
  name, or explicitly by a single period (`./').

So:
   export PKG_PATH=ftp://ftp.some/:/usr/ports/packages/


Philip Guenther