Skip to content

Instantly share code, notes, and snippets.

@kaimingguo
Created September 26, 2019 09:09
Show Gist options
  • Save kaimingguo/629cd1f5700e4904a8c82ca880072468 to your computer and use it in GitHub Desktop.
Save kaimingguo/629cd1f5700e4904a8c82ca880072468 to your computer and use it in GitHub Desktop.

Update portnsap and port distfiles server name:

cp /etc/portsnap.conf /etc/portsnap.conf.orig
sed -i "" 's|portsnap.FreeBSD.org|portsnap3.hshh.org|' /etc/portsnap.conf

Add next line into /etc/make.conf file:

MASTER_SITE_OVERRIDE?=http://mirrors.ustc.edu.cn/freebsd-ports/distfiles/${DIST_SUBDIR}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment