Skip to content

Instantly share code, notes, and snippets.

@therealromster
Created January 12, 2015 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealromster/fc250082c60e0eac2b67 to your computer and use it in GitHub Desktop.
Save therealromster/fc250082c60e0eac2b67 to your computer and use it in GitHub Desktop.
CRUX distfile download on non-crux server
sudo ports -u
cd /usr/ports
for p in core opt xorg contrib compat-32 romster; do
cd /usr/ports/$p
pkg-url > /tmp/$p.list
cd -
done
scp /tmp/{core,opt,xorg,contrib,compat-32,romster}.list host:~/public_html/...
# Server
cd ~/public_html/...
for r in core opt xorg contrib compat-32 romster; do
LC_ALL=C wget --tries=3 --waitretry=3 --no-check-certificate -nc -i "$p.list" -o "$p.log"
done
md5sum * > MD5SUMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment