From 385fadeffb9290f7ce6fa2c101b5985a02260f32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sun, 9 Jun 2024 20:07:14 +0900 Subject: [PATCH] =?utf8?q?macOS=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ README.md | 16 ++++++++++++++++ src/otppass.c | 5 +++++ 3 files changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18d86f4..68f4cb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 1.4.0 +* macOS対応 + # 1.3.0 * 英訳の追加 (レミリア・スカーレットさん) * GNU Make → BSD Make diff --git a/README.md b/README.md index 30756d7..e5a5458 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,14 @@ doas make install doas make install-zsh ``` +### NetBSD +```sh +doas pkgin install gpgme gnupg pinentry +make +doas make install +doas make install-zsh +``` + ### FreeBSD ```sh doas pkg install gpgme gnupg pinentry @@ -35,6 +43,14 @@ doas make install doas make install-zsh ``` +### macOS +```sh +brew install bmake libassuan gpgme gnupg pinentry pinentry-mac +bmake +doas bmake install +doas bmake install-zsh +``` + ## 初期設定 | Initial setup 「gpg -k」でGPG鍵IDを確認して、「sp -i [GPG ID]」を実行して下さい。 Confirm your GPG key ID with "gpg -k", and run "sp -i [GPG ID]". diff --git a/src/otppass.c b/src/otppass.c index c74f130..b4de196 100644 --- a/src/otppass.c +++ b/src/otppass.c @@ -1,6 +1,11 @@ #include #include +#ifndef __APPLE +#include +#define htobe64(x) OSSwapHostToBigInt64(x) +#endif + #include "base32.h" #include "common.h" #include "otppass.h" -- 2.43.0