From d2445769ca487aaa8e8bd830a324c76629a7920d Mon Sep 17 00:00:00 2001 From: M Date: Fri, 16 Sep 2022 00:50:44 +0200 Subject: [PATCH] Try with subdir --- matf-private/cyrus-sasl-login.scm | 84 ++++++++++++++++++++++ nmail-login.scm => matf-private/nmail-login.scm | 0 nnn-ctx8-git.scm => matf-private/nnn-ctx8-git.scm | 0 .../no-easy-delete.patch | 0 4 files changed, 84 insertions(+) create mode 100644 matf-private/cyrus-sasl-login.scm rename nmail-login.scm => matf-private/nmail-login.scm (100%) rename nnn-ctx8-git.scm => matf-private/nnn-ctx8-git.scm (100%) rename no-easy-delete.patch => matf-private/no-easy-delete.patch (100%) diff --git a/matf-private/cyrus-sasl-login.scm b/matf-private/cyrus-sasl-login.scm new file mode 100644 index 0000000..ec5fba7 --- /dev/null +++ b/matf-private/cyrus-sasl-login.scm @@ -0,0 +1,84 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès +;;; Copyright © 2013 Andreas Enge +;;; Copyright © 2016 Leo Famulari +;;; Copyright © 2019 Mathieu Othacehe +;;; Copyright © 2019 Mathieu Laparie +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (matf-private cyrus-sasl-login) + #:use-module (gnu packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages dbm) + #:use-module (gnu packages kerberos) + #:use-module (gnu packages tls) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu)) + +(define-public cyrus-sasl-login + (package + (name "cyrus-sasl-login") + (version "2.1.27") + (source (origin + (method url-fetch) + (uri (list (string-append + "https://cyrusimap.org/releases/cyrus-sasl-" + version ".tar.gz") + (string-append + "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-" + version ".tar.gz"))) + (sha256 (base32 + "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6")) + (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch" + "cyrus-sasl-CVE-2019-19906.patch")))) + (build-system gnu-build-system) + (native-inputs + (list autoconf automake libtool)) + (inputs (list gdbm openssl)) + (propagated-inputs + (list ;; cyrus-sasl.pc refers to -lkrb5, so propagate it. + mit-krb5)) + (arguments + '(#:configure-flags (list (string-append "--enable-login" + "--with-plugindir=" + (assoc-ref %outputs "out") + "/lib/sasl2")) + + ;; The 'plugins' directory has shared source files, such as + ;; 'plugin_common.c'. When building the shared libraries there, libtool + ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can + ;; fail with EEXIST when building things in parallel. + #:parallel-build? #f + + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (invoke "autoreconf" "-vif")))))) + (synopsis "Simple Authentication Security Layer implementation") + (description + "SASL (Simple Authentication Security Layer) is an Internet +standards-track method for remote computers to authenticate. The Cyrus SASL +library makes supporting various SASL mechanisms easy for both client and +server writers.") + (license (license:non-copyleft "file://COPYING" + "See COPYING in the distribution.")) + (home-page "https://cyrusimap.org/sasl/"))) + +cyrus-sasl-login diff --git a/nmail-login.scm b/matf-private/nmail-login.scm similarity index 100% rename from nmail-login.scm rename to matf-private/nmail-login.scm diff --git a/nnn-ctx8-git.scm b/matf-private/nnn-ctx8-git.scm similarity index 100% rename from nnn-ctx8-git.scm rename to matf-private/nnn-ctx8-git.scm diff --git a/no-easy-delete.patch b/matf-private/no-easy-delete.patch similarity index 100% rename from no-easy-delete.patch rename to matf-private/no-easy-delete.patch