security/cyrus-sasl2-xoauth2: New port

This is a plugin implementation of XOAUTH2 for cyrus-sasl2.

WWW:		https://github.com/moriyoshi/cyrus-sasl-xoauth2/
PR:		252676
Sponsored by:	The FreeBSD Foundation

Co-authored-by:	Thierry Dussuet <thierry.dussuet@protonmail.com>
This commit is contained in:
Joseph Mingrone 2023-10-15 17:05:05 -03:00
parent 292f3a8d54
commit 3c7361b99f
No known key found for this signature in database
GPG Key ID: 36A40C83B0D6EF9E
4 changed files with 46 additions and 0 deletions

View File

@ -120,6 +120,7 @@
SUBDIR += cyrus-sasl2
SUBDIR += cyrus-sasl2-gssapi
SUBDIR += cyrus-sasl2-ldapdb
SUBDIR += cyrus-sasl2-xoauth2
SUBDIR += cyrus-sasl2-saslauthd
SUBDIR += cyrus-sasl2-sql
SUBDIR += cyrus-sasl2-srp

View File

@ -0,0 +1,36 @@
PORTNAME= cyrus-sasl2-xoauth2
DISTVERSIONPREFIX= v
DISTVERSION= 0.2
CATEGORIES= security
MAINTAINER= thierry.dussuet@protonmail.com
COMMENT= XOAUTH2 plugin for cyrus-sasl2
WWW= https://github.com/moriyoshi/cyrus-sasl-xoauth2/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
USES= autoreconf libtool
USE_GITHUB= yes
GH_ACCOUNT= moriyoshi
GH_PROJECT= cyrus-sasl-xoauth2
USE_LDCONFIG= ${PREFIX}/lib/sasl2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-cyrus-sasl=${PREFIX}
post-extract:
${MKDIR} ${WRKSRC}/m4
post-install:
${INSTALL_LIB} ${WRKSRC}/.libs/libxoauth2.so.0.0.0 ${STAGEDIR}${PREFIX}/lib/sasl2
${INSTALL_PROGRAM} ${WRKSRC}/.libs/libxoauth2.a ${STAGEDIR}${PREFIX}/lib/sasl2
PLIST_FILES= lib/sasl2/libxoauth2.a \
lib/sasl2/libxoauth2.so \
lib/sasl2/libxoauth2.so.0 \
lib/sasl2/libxoauth2.so.0.0.0
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1610623425
SHA256 (moriyoshi-cyrus-sasl-xoauth2-v0.2_GH0.tar.gz) = a62c26566098100d30aa254e4c1aa4309876b470f139e1019bb9032b6e2ee943
SIZE (moriyoshi-cyrus-sasl-xoauth2-v0.2_GH0.tar.gz) = 14120

View File

@ -0,0 +1,6 @@
This is a plugin implementation of XOAUTH2 for cyrus-sasl2.
OAuth 2.0 is a protocol for authorization. The specification and
extensions are being developed within the IETF OAuth Working Group.
XOAUTH2 is standard OAuth 2.0 plus a nonstandard SASL binding for OAuth
that allows clients to send OAuth 2.0 access tokens.