From patchwork Tue Nov 15 14:55:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Polidoro X-Patchwork-Id: 44523 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 371C727BBEA; Tue, 15 Nov 2022 15:19:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EFC2727BBE9 for ; Tue, 15 Nov 2022 15:19:26 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouxiO-0007tS-Hj; Tue, 15 Nov 2022 10:19:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouxiI-0007p6-AD for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouxiH-0005Xq-Vi for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ouxiH-0005l9-Jz for guix-patches@gnu.org; Tue, 15 Nov 2022 10:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59018] [PATCH 0/1] OAuth2 for mbsync Resent-From: Peter Polidoro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Nov 2022 15:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 59018@debbugs.gnu.org Received: via spool by 59018-submit@debbugs.gnu.org id=B59018.166852552822118 (code B ref 59018); Tue, 15 Nov 2022 15:19:01 +0000 Received: (at 59018) by debbugs.gnu.org; 15 Nov 2022 15:18:48 +0000 Received: from localhost ([127.0.0.1]:55075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxi2-0005ke-BV for submit@debbugs.gnu.org; Tue, 15 Nov 2022 10:18:47 -0500 Received: from fennec.ash.relay.mailchannels.net ([23.83.222.58]:52367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ouxhx-0005kN-L3 for 59018@debbugs.gnu.org; Tue, 15 Nov 2022 10:18:45 -0500 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C6F1750255B; Tue, 15 Nov 2022 15:18:37 +0000 (UTC) Received: from pdx1-sub0-mail-a243.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 59AD6500928; Tue, 15 Nov 2022 15:18:29 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1668525509; a=rsa-sha256; cv=none; b=nGWiVQUBJWxScjnPDXhkj2bFi2s6uNoiK1ilx/4bQdxcNVX7wBjEEcSJGGHyFlptZ6TcsF SPuUc0PlimWc1Lhia0kmMqS+f9/ZlgxrIBheGNx4lj5x05PDOL91P1hq51ZQ0qh7p1VfRL yfGRqQSx3pqCmWym0nCSOQe29t9lQHDdOz+vXWDlo+sHYpMO3fwe1dEC3wEvMzzlxDhJ+g XZ0wYYRV6z7JBgmU1LPb6F26j/KnOuwQtwJP+8ZT5uognXCjf8HVK0Tr4Lxl2yxcCkRDZy CNbfQal0iu0ZhWeRGoebm3iUwZf/gDhV8iCcYvZJAN4UYEwiMAGj2Mz4FpnVbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1668525509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Yvcg2f5Nm9tqBQH79iSwZy03faDFJC1BKOF9DGLp274=; b=ntlJSwr+Ihoz7rtgBOnLL82mavYi/6h0GOOllYVAiKbT/oGObOrhAuKFZ4zM/JVfNosImZ QWGxlCVMZu9ThgPpqURlbIpXA2QPjGbb18YFzX5IqEWMsliltAZSJ9Qe2t73j2k8hatbhT 9LQbq4p4K1qqF0xidp9HHDptGYU5SgdzMPeZuC/HbrBhV+wo/grGxsjSxwV3GmH1sRTo3X rlB8mfbRhxDrRNzUtF5bRZYK9EU9X6CLTDtRImAuYWLQHZ7OFTi365DJPssQ8qOTw9TbzT iQIFM1er9ys2Scy9excoXMCqrHwBi+CVhYx7ECKbCxyB5h27vEyrXUuP9GQTSQ== ARC-Authentication-Results: i=1; rspamd-7f9bbcf788-xlmnm; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Skirt-Continue: 3b8d6d5603d8b4d5_1668525517539_3901870035 X-MC-Loop-Signature: 1668525517539:3512822705 X-MC-Ingress-Time: 1668525517538 Received: from pdx1-sub0-mail-a243.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.200.111 (trex/6.7.1); Tue, 15 Nov 2022 15:18:37 +0000 Received: from minotaur (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a243.dreamhost.com (Postfix) with ESMTPSA id 4NBVF05xZcz23; Tue, 15 Nov 2022 07:18:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1668525509; bh=cdXMVxw0y7D/aLFRFusMpp6BF+ERH9IjuCtKliIdEvU=; h=From:To:Cc:Subject:Date:Content-Type; b=heeAAUdVtRa59kI9dGEWfs6OCYjcUHEwfV3ePjOg0EXUTd0h/UZuqOU8+7FkyA/9s /a2Nc13eXSU/0bNnGUyzhbik7APfzqPfm4otlttplnrC4GST7ZNDd35A07qppfHyX0 3lDX4rUF53G342/OzGO2uzCPDkDgBRC1N0di6JIaSQ1+Cu0n/mS+R3NCSsOO1n76AX n8hU60NQdBTevwniIj5r2adEtuv5RpHuzDSblskrAMtaFoNvQI09wORUo9DtpKULqy Bhh/2KdEMj+yejt9FPJrJ3kbi/5t0qZ1l5r8u78NBvNiJMweaOoEK4lkrdRKLCNnNr AK6SI9sT9mZMA== References: <87sfikmr0x.fsf@gnu.org> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro Date: Tue, 15 Nov 2022 09:55:35 -0500 In-reply-to: <87sfikmr0x.fsf@gnu.org> Message-ID: <87k03wtfeu.fsf@polidoro.io> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, Ludovic Courtès writes: > Packages usually have a search path environment variable for > plugins. I > don’t see one for cyrus-sasl (I just grepped for “getenv” so I > might > have overlooked it). The “Guix way” would be to have cyrus-sasl > honor, > say, $CYRUS_SASL_PLUGIN_PATH and look for plugins in those > directories, > add a search path to the package¹, and have the plugin installed > in > $prefix/lib/sasl2 like you did. > > Could you check whether cyrus-sasl already has such a mechanism, > or add > one (possibly discussing with upstream), and send updated > patches? Thank you for your help on this package. According to the Cyrus SASL quickstart guide: "Note that the library can use the environment variable SASL_PATH to locate the directory where the mechanisms are; this should be a colon-separated list of directories containing plugins."[1] Unfortunately I still do not know enough about Guix packaging to set this environment variable properly, nor do I know how to properly set the installation path in the package configuration. This plugin's build and installation instructions are: ./autogen.sh ./configure sudo make install Footnotes: [1] https://www.cyrusimap.org/sasl/sasl/quickstart.html#typical-installation From d5e9f604531dbf9cf7a16a107a3745d0203e1dd7 Mon Sep 17 00:00:00 2001 Message-Id: From: Peter Polidoro Date: Tue, 15 Nov 2022 09:50:51 -0500 Subject: [PATCH] gnu: Add cyrus-sasl-xoauth2. * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable. --- gnu/packages/cyrus-sasl.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm index 2cd18f3e5e..abc0bc0c2b 100644 --- a/gnu/packages/cyrus-sasl.scm +++ b/gnu/packages/cyrus-sasl.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2013 Andreas Enge ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2019 Mathieu Othacehe +;;; Copyright © 2022 Peter Polidoro ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +29,7 @@ (define-module (gnu packages cyrus-sasl) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu)) (define-public cyrus-sasl @@ -78,3 +80,28 @@ (define-public cyrus-sasl (license (license:non-copyleft "file://COPYING" "See COPYING in the distribution.")) (home-page "https://cyrusimap.org/sasl/"))) + +(define-public cyrus-sasl-xoauth2 + (package + (name "cyrus-sasl-xoauth2") + (version "0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl")))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake libtool)) + (inputs (list cyrus-sasl)) + (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2") + (synopsis "XOAUTH2 mechanism plugin for cyrus-sasl") + (description "This package adds the Open Authorization standard, OAuth2, +authentication mechanism to cyrus-sasl as a plugin. OAuth is an open standard +for access delegation, commonly used as a way for internet users to grant +websites or applications access to their information on other websites but +without giving them the passwords.") + (license (list license:expat license:expat)))) -- 2.38.1