View Single Post
  #7   (View Single Post)  
Old 11th January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

Jggimi, I wrote this script for snapshot packages testing. For snapshots I always had to replace <my.nearest.mirror> with
<my.nearest.mirror.which.has.completely.rsynced.wi th.ftp.openbsd.org>


By storing the ftp sites in variables named 'plig' or 'stacken', I can easily do things like this
Code:
# export PKG_PATH=${stacken}
# echo $PKG_PATH
ftp://ftp.stacken.kth.se/pub/OpenBSD/snapshots/packages/amd64/
To reuse the already downloaded packages on host plato
Code:
# export PKG_PATH=$plato:$PKG_PATH

# echo $PKG_PATH
scp://plato.utp.xnet/home/packages/:ftp://ftp.stacken.kth.se/pub/OpenBSD/snapshots/packages/amd64/
@Nk2Network

You also can place two ftp sites in your PKG_PATH. If one happens to be temporarily out of service, or the name cannot be resolved in DNS, then the other one will be used:
Code:
# export PKG_PATH=$plig:$stacken

# echo $PKG_PATH
ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/:ftp://ftp.stacken.kth.se/pub/OpenBSD/4.4/packages/amd64/
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote