「FreeBSD 12.3-RELEASE r371126」でPortsを使えるようにする。

1.Ports Collection のスナップショットを /var/db/portsnap にダウンロード

# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Wed May  4 09:03:54 JST 2022:
a447b491a2b0fec0b35e7a53d94dabccd412f29d71d263          95 MB 7581 kBps    13s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ipv4.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Wed May  4 09:03:54 JST 2022 to Wed May  4 09:54:24 JST 2022.
Fetching 5 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 5 patches.
(5/5) 100.00%  done.
done.
Applying patches...
done.
Fetching 0 new ports or files... done.

 

2.ダウンロードしたスナップショットを /usr/ports に展開

# portsnap extract
     .
     .
     .
ひたすら、展開

/usr/ports/x11/xwud/
/usr/ports/x11/xxkb/
/usr/ports/x11/xzoom/
/usr/ports/x11/yad/
/usr/ports/x11/yakuake/
/usr/ports/x11/yalias/
/usr/ports/x11/yeahconsole/
/usr/ports/x11/yelp/
/usr/ports/x11/zenity/
Building new INDEX files... done.

 

3.アップデートを確認する

# portsnap update
Ports tree is already up to date.

これで、portからコンパイルできるようになる( ̄ー ̄)ニヤリ

例えば、こんな感じ・・・

# cd /usr/ports/www/awstats
#  make install
===> Building/installing dialog4ports as it is required for the config dialog
===>  Cleaning for dialog4ports-0.1.6_1
===> Skipping 'config' as NO_DIALOG is defined
===>  License BSD2CLAUSE accepted by the user
===>   dialog4ports-0.1.6_1 depends on file: /usr/local/sbin/pkg - found
=> dialog4ports-0.1.6.tar.gz doesn't seem to exist in /usr/ports/distfiles/.

以上