Skip to content

Commit

Permalink
hope they know what they are doing
Browse files Browse the repository at this point in the history
  • Loading branch information
georgalis committed May 23, 2022
1 parent 82f2a6b commit 058428c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions boot/nbsd/pkgin
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ PKG_EX="/usr/pkg/share/examples/pkgin/repositories.conf.example"
# ftp also works
URL_ROOT="http://ftp.netbsd.org/pub"
URL_ROOT="http://nyftp.netbsd.org/pub"
URL_ROOT="https://cdn.netbsd.org/pub"
URL_BASE="pkgsrc/packages/$(uname -s)/$(uname -m)"
# rc "${URL_ROOT}/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r|cut -f 1 -d _)/All"
PKG_LIST="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _)/SHA512.bz2"
PKG_PATH="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _)/All"
PKG_LIST="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _ | sed 's/\..*/.0/')/SHA512.bz2"
PKG_PATH="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _ | sed 's/\..*/.0/')/All"
PKG_LIST="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _ )/SHA512.bz2"
PKG_PATH="${URL_ROOT}/${URL_BASE}/$(uname -r|cut -f 1 -d _ )/All"
PKGIN="$(ftp -Vo - "$PKG_LIST" | bzip2 -d | sed -e '/All\/pkgin-/!d' -e 's/All\/pkgin/pkgin/' \
-e 's/.*(//' -e 's/).*//')"

Expand Down

0 comments on commit 058428c

Please sign in to comment.