![]() |
|
Guides All Guides and HOWTO's. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
A Makefile to check which mirrors have the latest OpenBSD snapshot packages. You can use it together with the script from Checking OpenBSD snapshot mirror status
It is simple to adapt and configure for the mirrors in your country or region: Code:
# Mirror sites definitions # You do not have to use all of them # List the ones (or others) you want to use in the line: # ". for site in Alberta ..... PlanetUnixCDN" # Keep in mind that the Alberta site is the main one # To alleviate the Alberta site please use a synchronized mirror Alberta = https://ftp.openbsd.org/pub/OpenBSD Nluug = https://ftp.nluug.nl/OpenBSD Ede = https://ftp.bit.nl/pub/OpenBSD Aachen = https://ftp.halifax.rwth-aachen.de/pub/OpenBSD Stockholm = https://ftp.eu.openbsd.org/pub/OpenBSD Copenhagen = https://mirror.one.com/pub/OpenBSD CloudfareCDN = https://cloudflare.cdn.openbsd.org/pub/OpenBSD LeaseWebCDN = https://mirror.leaseweb.com/pub/OpenBSD PlanetUnixCDN = https://mirror.planetunix.net/pub/OpenBSD status: init . for site in Alberta Stockholm Nluug Ede Copenhagen Aachen CloudfareCDN LeaseWebCDN PlanetUnixCDN . for X in ${FILE} @eval SITE=\${${site}} ; printf "\n%s: -- %s --\n" ${site} $${SITE} ;\ ftp -4 -o ${STORAGE}/${X}-${site} $${SITE}/${DIR}/${X} . endfor . endfor This is done with the following command: Code:
Use $ make show to see the result.Code:
A more recent example where we temporarily use the UTC time zone: Code:
Code:
Code:
# ---------------------------------------------- # Retrieve snapshot package mirror sites indices # ---------------------------------------------- # (c) 2021 j65nko daemonforums.org # OpenBSD License: https://cvsweb.openbsd.org/src/share/misc/license.template?rev=HEAD STORAGE = ./pkg ARCH = amd64 DIR = snapshots/${ARCH} DIR = snapshots/packages/${ARCH} FILE = SHA256 SHA256.sig index.txt # Mirror sites definitions # You do not have to use all of them # List the ones (or others) you want to use in the line: # ". for site in Alberta ..... PlanetUnixCDN" # Keep in mind that the Alberta site is the main one # To alleviate the Alberta site please use a synchronized mirror Alberta = https://ftp.openbsd.org/pub/OpenBSD Nluug = https://ftp.nluug.nl/OpenBSD Ede = https://ftp.bit.nl/pub/OpenBSD Aachen = https://ftp.halifax.rwth-aachen.de/pub/OpenBSD Stockholm = https://ftp.eu.openbsd.org/pub/OpenBSD Copenhagen = https://mirror.one.com/pub/OpenBSD CloudfareCDN = https://cloudflare.cdn.openbsd.org/pub/OpenBSD LeaseWebCDN = https://mirror.leaseweb.com/pub/OpenBSD PlanetUnixCDN = https://mirror.planetunix.net/pub/OpenBSD status: init . for site in Alberta Stockholm Nluug Ede Copenhagen Aachen CloudfareCDN LeaseWebCDN PlanetUnixCDN . for X in ${FILE} @eval SITE=\${${site}} ; printf "\n%s: -- %s --\n" ${site} $${SITE} ;\ ftp -4 -o ${STORAGE}/${X}-${site} $${SITE}/${DIR}/${X} . endfor . endfor show: @ls -ltr ${STORAGE} | awk '{print $$5, $$6, $$7, $$8, $$9}' init: .if !exists(${STORAGE}) mkdir -p ${STORAGE} .endif start: @date "+%Y_%m%d_%H%M_%Z" >RUNDATE # --- end of Makefile
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 13th April 2021 at 03:02 AM. |
|
|||
![]()
The Makefile for downloading. Please rename it from Makefile.txt to Makefile
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 13th April 2021 at 03:11 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Checking OpenBSD snapshot mirror status | J65nko | Guides | 3 | 4th April 2021 11:57 PM |
Package mirror for NetBSD 9 Beta? | notooth | NetBSD Package System (pkgsrc) | 2 | 8th November 2019 09:19 PM |
OpenBSD 5.5 snapshot/Gnome 3.10.2 config issues | JWJones | OpenBSD Packages and Ports | 8 | 18th March 2014 11:50 AM |
OpenBSD i386 snapshot & PAE on VirtualBox | aleunix | OpenBSD Installation and Upgrading | 2 | 1st March 2012 06:44 PM |
Apached checking its own status? | Mantazz | FreeBSD Ports and Packages | 5 | 4th August 2010 04:11 AM |