This committed version is based on the PR and reworked by the maintainer. PR: ports/120977 (based on) Submitted by: TAOKA Fumiyoshi <fmysh at iijmio-mail.jp> Approved by: maintainer