Help us understand the problem. What is going on with this article?

FreeBSD の ports でより早い mirror を選択する

More than 3 years have passed since last update.

fastest_sites コマンドを使用する

fastest_sites コマンドは ${PORTS_DIR}/Mk/bsd.sites.mk に定義されているミラーサイトを
速い(と思われる)順に並べて出力する python スクリプトです。

fastest_sites コマンドの出力はそのまま make.conf(5) で使用できる形式なので、
出力結果のファイルを include する事でミラーサイトの選択を変更出来ます。

Install

# cd /usr/ports/ports-mgmt/fastest_sites
# make install clean

configure

# fastest_sites > /usr/local/etc/ports_sites.conf
# echo '.include "/usr/local/etc/ports_sites.conf"' >> /etc/make.conf

MASTER_SITE_BACKUP を設定する

fastest_sites との兼ね合い、どのような挙動を示すか等把握できていませんが、
設定例の一つとして記述しておきます。

/etc/make.conf
MASTER_SITE_BACKUP?=   \
        http://distcache.FreeBSD.org/ports-distfiles/${DIST_SUBDIR}/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした