Op Fri, 20 Jan 2012 11:12:31 +0100 schreef Remco <re...@d-compu.dyndns.org>:
Martin Pelikan wrote:

On Thu, Jan 19, 2012 at 06:16:59PM +0100, Francois Pussault wrote:
I use this :
# echo $PKG_PATH
ftp://ftp.openbsd.org/pub/OpenBSD/5.0/packages/sparc64/


In case someone googles that and would think it's a good idea to set the
variable like so, here's a better alternative:

echo 'export PKG_PATH=ftp://ftp.XX.openbsd.org/pub/OpenBSD/`uname
-r`/packages/`uname -m`/' >> ~/.profile

for -release and -stable, or

echo 'export
PKG_PATH=ftp://ftp.XX.openbsd.org/pub/OpenBSD/snapshots/packages/`uname
-m`/' >> ~/.profile

for guess what? -current of course! Even that your -current might not be
exactly the same one these packages were built on.

I was advised some time ago that using `uname -m` is wrong:
(`arch -s` should be a better choice)

http://marc.info/?l=openbsd-misc&m=131694698627338&w=2

That's why I've using this in the past (`arch -s` == `machine -a`):

# selected FTP mirrors in order of distance
OPENBSD_FTP_TIER2='ftp.eu.openbsd.org anga.funkfeuer.at ftp.usa.openbsd.org'
OPENBSD_FTP_TIER3='mirror.hostfuss.com ftp.nluug.nl'

PKG_DIR=pub/`uname -s`/`uname -r`/packages/`machine -a`/
PKG_CACHE=/home/ftp/$PKG_DIR
PKG_PATH=$PKG_CACHE
for s in $OPENBSD_FTP_TIER3 $OPENBSD_FTP_TIER2; do
        PKG_PATH=$PKG_PATH:ftp://$s/$PKG_DIR
done; s=


And yes, it's time to update my list.

--
Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/
(Remove the obvious prefix to reply.)

Reply via email to