Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@b_wind

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

More than 5 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}/
3
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?