Created
January 12, 2015 01:42
-
-
Save therealromster/fc250082c60e0eac2b67 to your computer and use it in GitHub Desktop.
CRUX distfile download on non-crux server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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