何しよるん?
マシンに関する匿名統計を報告するための月次スクリプト
っま、インスコして統計に参加する単なる自己満足なヤツ
インスコはぶち簡単
# cd /usr/ports/sysutils/bsdstats/ && make install
===> License BSD4CLAUSE accepted by the user
===> bsdstats-7.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by bsdstats-7.0 for building
===> Extracting for bsdstats-7.0
===> Patching for bsdstats-7.0
===> Configuring for bsdstats-7.0
===> Staging for bsdstats-7.0
===> Generating temporary packing list
/bin/mkdir -p /usr/ports/sysutils/bsdstats/work/stage/usr/local/etc/periodic/monthly
install -m 555 /usr/ports/sysutils/bsdstats/work/300.statistics /usr/ports/sysutils/bsdstats/work/stage/usr/local/etc/periodic/monthly
install -m 555 /usr/ports/sysutils/bsdstats/work/bsdstats-send /usr/ports/sysutils/bsdstats/work/stage/usr/local/bin/bsdstats-send
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
====> Running Q/A tests (stage-qa)
===> Installing for bsdstats-7.0
===> Checking if bsdstats is already installed
===> Registering installation for bsdstats-7.0
Installing bsdstats-7.0...
You installed BSDstats: script reporting statistics about your machine.
To disable monthly reporting, add this line to /etc/periodic.conf:
monthly_statistics_enable="NO"
To disable parts of reporting, add these lines to /etc/periodic.conf:
monthly_statistics_report_devices="NO"
monthly_statistics_report_ports="NO"
To limit which ports are being submitted:
create /usr/local/etc/bsdstats.conf and list ports to report in
the form ${category}/${portname}, one entry per line. It is also
possible to use the special self explanatory keyword "all-ports".
Example:
sysutils/bsdstats
ports-mgmt/pkg
To enable reporting on bootup, add this line to /etc/rc.conf:
bsdstats_enable="YES"
To run it manually any time:
bsdstats-send
To view current statistics, go to:
http://www.bsdstats.org/
You can build bsdstats with TOR port option to submit anonymously
これだけ(^_^)v
野良 ports は統計に入れたくないよのぉ
インスコの最後にメッセージが出ちゃってるけ、その指示に沿ってファイルを作成するダケのお手軽さ👏
その際に、野良 ports のカテゴリと名前を書き入れるのじゃが現在インスコしよるのを表示させるワンライナーを実行して、そこから統計に参加させたくない野良 ports を探して書き入れちゃる。
/usr/local/etc/bsdstats.confに記述しよるports一覧するワンライナー
pkg info -ao | awk '{print$2}' | sort
初回のおまじない
bsdstats-send
コレで、毎週勝手にhttps://bsdstats.org/へ送信されて、統計に参加出来ちゃる。