Package Details: cyrus-sasl-xoauth2-git r17.6379368-2

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
Submitter: tohojo
Maintainer: tohojo
Last Packager: tohojo
Votes: 0
Popularity: 0.000000
First Submitted: 2019-01-23 08:16
Last Updated: 2020-04-08 15:28

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

VannTen commented on 2020-04-08 11:23

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

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

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

VannTen commented on 2020-04-06 15:54

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.