From patchwork Fri Nov 4 17:56:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Polidoro X-Patchwork-Id: 44293 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 457E427BBE9; Fri, 4 Nov 2022 17:57:13 +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=ham 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 AC2F527BBE9 for ; Fri, 4 Nov 2022 17:57:11 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1or0wC-0005gH-UU; Fri, 04 Nov 2022 13:57:05 -0400 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 1or0wA-0005cO-Tr for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:02 -0400 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 1or0wA-0006hd-L3 for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1or0wA-0005wv-DY for guix-patches@gnu.org; Fri, 04 Nov 2022 13:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#59019] [PATCH 1/1] gnu: Add cyrus-sasl-xoauth2. Resent-From: peter@polidoro.io Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Nov 2022 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59019@debbugs.gnu.org Cc: Peter Polidoro X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166758459122812 (code B ref -1); Fri, 04 Nov 2022 17:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Nov 2022 17:56:31 +0000 Received: from localhost ([127.0.0.1]:54753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or0vf-0005vs-Ew for submit@debbugs.gnu.org; Fri, 04 Nov 2022 13:56:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:34500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1or0va-0005vU-QR for submit@debbugs.gnu.org; Fri, 04 Nov 2022 13:56:30 -0400 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 1or0va-0005Da-J5 for guix-patches@gnu.org; Fri, 04 Nov 2022 13:56:26 -0400 Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1or0vY-0006f9-3x for guix-patches@gnu.org; Fri, 04 Nov 2022 13:56:26 -0400 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 671E55C2224; Fri, 4 Nov 2022 17:56:18 +0000 (UTC) Received: from pdx1-sub0-mail-a262 (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E48435C1F7B; Fri, 4 Nov 2022 17:56:17 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1667584577; a=rsa-sha256; cv=none; b=i1G4ay4nbw1N9xpThuc5G35VdiXJnik7CksAYDxpjockrqBig7gjkuOqrNA7T85X8YbdVI aUSopahnk2+8FLqd5pIIlrdUU5WIXhfzPGnfoK5JGemcrqmEKdzRs/IrRqH5XHN5l8urKZ q6hkPDX1hilNGIzpcUziOw6GFt/ldvzygDhZ/sPMl6AdiGwgz6GRGinJArtkuD/1SAZ1uS ftP/59TOyQVdROQZbdMQaYe9/U6jzq7qGU4loFqerNEUCU953cbDqtQ3zVvh6kI3I270R/ 9Yk4W6GjLPuFoY8ZdeZayoBQQ0ULeUZQ+Ea0FNEQ2gXn+5sl/K1zNXMKbaArxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1667584577; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ck/v6+1VXI0mvpSwWeE597noKdsUURatkdAqjGOyV1o=; b=kpD5mPdG+SrsJkFZGxe1N/CyOLnZR15JXghOyRg+xJOry7u6kaHV6UiBoBd7yBBQsXI081 AvTraMOwubNyzs4b0kaaKHt840X8BWeKTK0Cbterhi7G6L1wlsOt743bBwnUzv8B3yZmAm bToFQYLLOP1wgPyovq3ztIwrL0eT5B4DFsI20n/6pf8DUgaX/Qj32vzU9gOKR46Pawy+AX wxWG+gYTsLn4QkKOSpufAfhGCIlnySJrMTL7i/q6nsgQevA2H2FMRa2Eu2O9Tk0xsY9/s1 hLbElltra27UIYiL4Wcn/azNATJpLJjxUj21WTIsr8S8N8AS0whV7IcG9hdmAw== ARC-Authentication-Results: i=1; rspamd-5cb65d95c4-zksxf; 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-Arch-Cellar: 142470eb6620203c_1667584578177_3684726973 X-MC-Loop-Signature: 1667584578177:307832290 X-MC-Ingress-Time: 1667584578176 Received: from pdx1-sub0-mail-a262 (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.126.30.9 (trex/6.7.1); Fri, 04 Nov 2022 17:56:18 +0000 Received: from minotaur.hhmi.org (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a262 (Postfix) with ESMTPSA id 4N3pG92pMrzDX; Fri, 4 Nov 2022 10:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1667584577; bh=ck/v6+1VXI0mvpSwWeE597noKdsUURatkdAqjGOyV1o=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=3aGE069yr1fyDhBndXNglC3TVlgGHqsy9PE5Y2q7B5L7ov87nLUiQ9tN+UpnlsIeW dbISevKfHPnYERjP7dmlx6+5o1a7byd7b9A+Lb9vT65aFHz+11gNPefdrZ/g1A7Rtn Czc4T2eZW1fLUnu7GRY6a/6K6u1oKYg0YWmTWRwpIavmwdD19o3SihDyjcCYcC0rqT 9y65CQ8pdiABoQplJaUt2kgaTzwwrHSgTxd8hUvMy2CDxPFbkAh0IF6nM7lxwDQIUf +4K/mi//YXzTmtKDRbt9T4pA0PF2Pa9WKjDmOTFeBXvWLIFnJ5B4BZ+7ctB6bajMGh fcKcKPiy1wU3A== From: peter@polidoro.io Date: Fri, 4 Nov 2022 13:56:05 -0400 Message-Id: <95c44daa0deb5d5104a40c97c15b38299ec34c01.1667583886.git.peter@polidoro.io> X-Mailer: git-send-email 2.38.0 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=23.83.212.6; envelope-from=peter@polidoro.io; helo=aye.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Peter Polidoro * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable. --- gnu/packages/cyrus-sasl.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm index 2cd18f3e5e..ddb8c476ac 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,33 @@ (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) + (arguments + ;; Not sure what is required here in order to get this installed into the + ;; correct location. Maybe it needs to be installed in the plugindir for + ;; the cyrus-sasl package above? Not sure how to reference that directory + ;; in this package though. + '(#:configure-flags (list (string-append "--prefix=" + (assoc-ref %outputs "out") + "/lib/sasl2")))) + (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 "XOAUTH2 mechanism plugin for cyrus-sasl.") + (license (list license:expat license:expat)))) +