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

Reply via email to