Certificates generally cost money because of the labor involved in validating the requests, so it pays to shop around. A few CAs offer basic-level certificates free of charge. The most notable of these CAs is the Let's Encrypt project, which also supports the automation of the certificate creation and renewal process. For more information about using a Let's Encrypt certificate, see Get Certbot.
❯ brew edit webalizer
Warning: edit is a developer command, so Homebrew'sdeveloper mode has been automatically turned on.To turn developer mode off, run: brew developer offUsage: brew edit [options] [formula|cask|tap ...]Open a formula, cask or tap in the editor set by EDITOR orHOMEBREW_EDITOR, or open the Homebrew repository for editing if no argument isprovided. --formula, --formulae Treat all named arguments as formulae. --cask, --casks Treat all named arguments as casks. --print-path Print the file path to be edited, without opening an editor. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -v, --verbose Make some output more verbose. -h, --help Show this message.Error: Invalid usage: webalizer doesn't exist on disk.
Run brew create --set-name webalizer $URL to create a new formula!
とりあえず create をしろ、と指示されたしやってみましょう! formula の定義あるし homebrew-core の URL を指定したらなんとかならんか?
❯ EDITOR=vi brew create --set-name webalizer https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/w/webalizer.rb
Error: No available tap homebrew/core.
Run brew tap --force homebrew/core to tap homebrew/core!
ちなみに webalizer はホスト名を uname -a とかで実行した環境から取ってくるはずなので、ログ生成元と出力先が異なる場合は、 -n でホスト名を指定しておかないとなんか、なんか……!となります。
お気をつけください。
備考 (正直よくわからん
You don’t have to submit modifications back to homebrew/core, just edit the formula to what you personally need and brew install . As a bonus, brew update will merge your changes with upstream so you can still keep the formula up-to-date with your personal modifications!
変更を homebrew/core に送信する必要はありません。式を個人的に必要なものに編集して、brew install を実行するだけです。おまけに、brew update は変更をアップストリームにマージするので、個人的な変更を加えても式を最新の状態に保つことができます。
Note that if you are editing a core formula or cask you must set HOMEBREW_NO_INSTALL_FROM_API=1 before using brew install or brew update otherwise they will ignore your local changes and default to the API.
コアフォーミュラまたはカスクを編集している場合は、brew install または brew update を使用する前に HOMEBREW_NO_INSTALL_FROM_API=1 に設定する必要があることに注意してください。そうしないと、ローカルの変更が無視され、デフォルトの API が使用されます。
To undo all changes you have made to any of Homebrew’s repositories, run brew update-reset. It will revert to the upstream state on all Homebrew’s repositories.
Homebrew のリポジトリに加えたすべての変更を元に戻すには、brew update-reset を実行します。すべての Homebrew リポジトリで上流の状態に戻ります。
上記で書いてあるとおりなんだけど、 you must set HOMEBREW_NO_INSTALL_FROM_API=1 before using brew install or brew update とのことで、 edit した formula が存在する環境はそれ以降、何をするにしても HOMEBREW_NO_INSTALL_FROM_API=1 が有効じゃないと、編集した formula になにか影響出るのかな、と思っていたのだけど、その後試した感じ一度インストールしたら他の formula や brew update しても影響はないようだった。