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/