Skip to content

Commit

Permalink
security/cyrus-sasl2-xoauth2: New port
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jehops committed Oct 15, 2023
1 parent 292f3a8 commit 3c7361b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/Makefile
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions security/cyrus-sasl2-xoauth2/Makefile
@@ -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>
3 changes: 3 additions & 0 deletions security/cyrus-sasl2-xoauth2/distinfo
@@ -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
6 changes: 6 additions & 0 deletions security/cyrus-sasl2-xoauth2/pkg-descr
@@ -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.

0 comments on commit 3c7361b

Please sign in to comment.