ports/mail/oama/Makefile
Nicola Vitale a884c73c1e
mail/oama: Add new port
Many IMAP/SMTP clients, like msmtp, fdm, isync, neomutt or mutt can use OAuth2
access tokens but lack the ability to renew and/or authorize OAuth2
credentials. The purpose of oama is to provide these missing capabilities by
acting as a kind of smart password manager. In particular, access token renewal
happens automatically in the background transparent to the user.

The OAuth2 credentials are kept in a keyring provided by any password manager
with a FreeDesktop.org Secret Service compatible API. Some examples of such
password managers are:

    Gnome keyring
    KDE Wallet Manager
    KeePaasXC

Alternatively GNU PG encrypted files can also be used as a backend for storing
credentials.

https://github.com/pdobsan/oama
2024-09-15 18:10:55 +02:00

166 lines
3.9 KiB
Makefile

PORTNAME= oama
DISTVERSION= 0.14
CATEGORIES= mail
PKGNAMEPREFIX=
MAINTAINER= nivit@FreeBSD.org
COMMENT= OAuth credential Manager
WWW= https://github.com/pdobsan/oama
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cabal
USE_GITHUB= yes
GH_ACCOUNT= pdobsan
USE_CABAL= HUnit-1.6.2.0 \
OneTuple-0.4.2 \
QuickCheck-2.15.0.1 \
StateVar-1.2.2 \
aeson-2.2.3.0_2 \
ansi-terminal-1.1.1 \
ansi-terminal-types-1.1 \
appar-0.1.8 \
asn1-encoding-0.9.6_2 \
asn1-parse-0.9.5 \
asn1-types-0.3.4 \
assoc-1.1.1 \
async-2.2.5_2 \
attoparsec-0.14.4_5 \
attoparsec-aeson-2.2.2.0 \
auto-update-0.1.6 \
base-orphans-0.9.2 \
base16-bytestring-1.0.2.0_1 \
base64-bytestring-1.2.1.0_1 \
basement-0.0.16 \
bifunctors-5.6.2 \
bitvec-1.1.5.0_1 \
blaze-builder-0.4.2.3 \
bsb-http-chunked-0.0.0.4_4 \
byteorder-1.0.4 \
cabal-doctest-1.0.10 \
call-stack-0.4.0 \
case-insensitive-1.2.1.0 \
cborg-0.2.10.0_1 \
cereal-0.5.8.3 \
character-ps-0.1 \
colour-2.3.6 \
comonad-5.0.8_2 \
conduit-1.3.6 \
conduit-extra-1.3.6 \
contravariant-1.5.5 \
cookie-0.5.0 \
crypton-1.0.0 \
crypton-connection-0.4.1 \
crypton-x509-1.7.7 \
crypton-x509-store-1.6.9 \
crypton-x509-system-1.6.7 \
crypton-x509-validation-1.6.12 \
data-default-class-0.1.2.0 \
data-fix-0.3.4 \
distributive-0.6.2.1_1 \
dlist-1.0_2 \
easy-file-0.2.5 \
either-5.0.2_2 \
fast-logger-3.2.3 \
generically-0.1.1_3 \
half-0.3.1_2 \
hashable-1.5.0.0 \
hourglass-0.2.12_1 \
hsc2hs-0.68.10_2 \
hsyslog-5.0.2_1 \
http-client-0.7.17 \
http-client-tls-0.3.6.3 \
http-conduit-2.3.9 \
http-date-0.0.11 \
http-types-0.12.4 \
http2-3.0.3 \
indexed-traversable-0.1.4 \
indexed-traversable-instances-0.1.2 \
integer-conversion-0.1.1 \
integer-logarithms-1.0.3.1_6 \
iproute-1.7.14 \
libyaml-0.1.4 \
libyaml-clib-0.2.5 \
memory-0.18.0 \
mime-types-0.1.2.0 \
mono-traversable-1.0.20.0 \
network-3.2.3.0 \
network-byte-order-0.1.7 \
network-uri-2.6.4.2_1 \
old-locale-1.0.0.7_2 \
old-time-1.1.0.4 \
optparse-applicative-0.18.1.0 \
os-string-2.0.6 \
pem-0.2.4 \
pretty-simple-4.1.2.0 \
prettyprinter-1.7.1 \
prettyprinter-ansi-terminal-1.1.3 \
primitive-0.9.0.0_1 \
profunctors-5.6.2_3 \
psqueues-0.2.8.0_1 \
random-1.2.1.2 \
recv-0.1.0 \
resourcet-1.3.0 \
safe-exceptions-0.1.7.4_1 \
scientific-0.3.8.0_1 \
semialign-1.3.1_1 \
semigroupoids-6.0.1_1 \
serialise-0.2.6.1_3 \
simple-sendfile-0.2.32 \
socks-0.6.1 \
split-0.2.5 \
splitmix-0.1.0.5_1 \
streaming-commons-0.2.2.6_1 \
strict-0.5.1_1 \
string-qq-0.0.6 \
strings-1.1_1 \
tagged-0.8.8_1 \
text-iso8601-0.1.1_1 \
text-short-0.1.6_2 \
th-abstraction-0.7.0.0 \
th-compat-0.1.5_2 \
these-1.2.1_1 \
time-compat-1.9.7_2 \
time-manager-0.0.1 \
tls-2.1.0 \
transformers-compat-0.7.2 \
twain-2.1.2.0 \
typed-process-0.2.12.0 \
unix-compat-0.7.2 \
unix-time-0.4.15 \
unliftio-0.2.25.0 \
unliftio-core-0.2.1.0_4 \
unordered-containers-0.2.20_3 \
utf8-string-1.0.2 \
uuid-types-1.0.6_1 \
vault-0.3.1.5_8 \
vector-0.13.1.0_1 \
vector-algorithms-0.9.0.2_1 \
vector-stream-0.1.0.1_1 \
wai-3.2.4 \
wai-extra-3.1.15 \
wai-logger-2.4.1 \
warp-3.3.30 \
witherable-0.5_1 \
word8-0.1.3 \
yaml-0.11.11.2_2 \
zlib-0.7.1.0_1
CABAL_PROJECT= append
PLIST_FILES= share/bash-completion/completions/oama \
share/fish/vendor_completions.d/oama.fish \
share/zsh/site-functions/_oama
post-extract:
(cd ${WRKSRC}/completions && \
${REINPLACE_CMD} \
-e 's,/usr/bin,${PREFIX}/bin,g' \
oama.bash oama.fish oama.zsh)
post-install:
(cd ${WRKSRC}/completions && \
${INSTALL_DATA} oama.bash ${STAGEDIR}${PREFIX}/share/bash-completion/completions/oama && \
${INSTALL_DATA} oama.fish ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/oama.fish && \
${INSTALL_DATA} oama.zsh ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_oama)
.include <bsd.port.mk>