Package Details: cyrus-sasl-xoauth2-git r24.36aabca54fd6-1

Git Clone URL: https://aur.archlinux.org/cyrus-sasl-xoauth2-git.git (read-only, click to copy)
Package Base: cyrus-sasl-xoauth2-git
Description: XOAUTH2 mechanism plugin for cyrus-sasl
Upstream URL: https://github.com/moriyoshi/cyrus-sasl-xoauth2
Licenses: MIT
Conflicts: cyrus-sasl-xoauth2
Provides: cyrus-sasl-xoauth2
Submitter: tohojo
Maintainer: tohojo
Last Packager: tohojo
Votes: 3
Popularity: 0.63
First Submitted: 2019-01-23 08:16 (UTC)
Last Updated: 2022-08-30 21:03 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

wunit-adf commented on 2022-08-30 15:03 (UTC) (edited on 2022-09-05 09:18 (UTC) by wunit-adf)

Could you please add provides=(cyrus-sasl-xoauth2)? This allows pulling this in as a dependency without having to explicitly state the -git package variant.

--update: Thanks!

tohojo commented on 2021-03-16 10:14 (UTC)

Ah, that's because of a difference in the git short revision length... Should be fixed in the -2 update I just pushed...

japhir commented on 2021-03-16 09:53 (UTC)

Since a few days every paru command asks me to update this package. I think something in pkgver is going wrong?

paru -Qs cyrus-sasl
local/cyrus-sasl-xoauth2-git r22.43d0352-1
    XOAUTH2 mechanism plugin for cyrus-sasl

when I paru it says the update is for:

Aur (1) cyrus-sasl-xoauth2-git-r22.43d03523fecf-1

VannTen commented on 2020-04-08 11:23 (UTC) (edited on 2020-04-08 11:23 (UTC) by VannTen)

By the way, when building I add some warning by my package manager and did some editing on the PKGBUILD. Feel free to use it if you want (git patch below)

From ee65008b0fd6d5ce2984f24fd9766dd345b8a531 Mon Sep 17 00:00:00 2001
From: VannTen <>
Date: Wed, 8 Apr 2020 10:03:03 +0200
Subject: [PATCH] Using makepkg to git clone instead of manual

---
 PKGBUILD | 38 ++++++++++++++------------------------
 1 file changed, 14 insertions(+), 24 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 242848b..9ade5fb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,24 @@
 # Maintainer: Toke Høiland-Jørgensen <toke@toke.dk>
-pkgname=cyrus-sasl-xoauth2-git
+_pkgname=cyrus-sasl-xoauth2
+pkgname=${_pkgname}-git
 pkgrel=1
 pkgver=r17.6379368
 pkgdesc="XOAUTH2 mechanism plugin for cyrus-sasl"
 arch=(x86_64)
-url="https://github.com/moriyoshi/cyrus-sasl-xoauth2"
+url="https://github.com/moriyoshi/$_pkgname"
 license=('MIT')
+makedepends=('git')
 depends=('libsasl')
-source=(git+https://github.com/moriyoshi/cyrus-sasl-xoauth2.git)
+source=(git+$url.git)
 md5sums=('SKIP')

-_gitroot=https://github.com/moriyoshi/cyrus-sasl-xoauth2.git
-_gitname=master
-
 pkgver() {
-  cd "cyrus-sasl-xoauth2"
+  cd "$_pkgname"
   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 }

 build() {
-  cd "$srcdir"
-  msg "Connecting to GIT server...."
-
-  if [[ -d "$_gitname" ]]; then
-    cd "$_gitname" && git pull origin
-    msg "The local files are updated."
-  else
-    git clone "$_gitroot" "$_gitname"
-  fi
-
-  msg "GIT checkout done or server timeout"
-  msg "Starting build..."
-
-  rm -rf "$srcdir/$_gitname-build"
-  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
-  cd "$srcdir/$_gitname-build"
+  cd "$_pkgname"

   #
   # BUILD HERE
@@ -44,9 +28,15 @@ build() {
   make
 }

+check() {
+  cd "$_pkgname"
+  make check
+}
+
 package() {
-  cd "$srcdir/$_gitname-build"
+  cd "$_pkgname"
   make DESTDIR="$pkgdir/" install
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }

 # vim:set ts=2 sw=2 et:
-- 
2.26.0

VannTen commented on 2020-04-07 15:46 (UTC) (edited on 2020-04-07 15:49 (UTC) by VannTen)

Weird. I suppose that's depend on the usage that the application makes of libsasl, but I don't really know the internals of that.

I'll try to make an issue on the github when I'll have a bit of time

tohojo commented on 2020-04-07 10:38 (UTC)

Works fine for me with postfix for authenticating against gmail...

VannTen commented on 2020-04-06 15:54 (UTC)

The plugin does not seem to works. For example when used with mbsync connecting by imap and using sasl, it hangs at login. Another implementation (https://github.com/robn/sasl2-oauth) does work though.