From patchwork Fri Mar 25 15:35:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 38105 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 9937C27BBE9; Fri, 25 Mar 2022 15:36:20 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 EECD427BBEA for ; Fri, 25 Mar 2022 15:36:19 +0000 (GMT) Received: from localhost ([::1]:53900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXlz9-0007Q4-29 for patchwork@mira.cbaines.net; Fri, 25 Mar 2022 11:36:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXlyt-0007Pj-0m for guix-patches@gnu.org; Fri, 25 Mar 2022 11:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXlys-000219-Ol for guix-patches@gnu.org; Fri, 25 Mar 2022 11:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXlys-0001Gl-It for guix-patches@gnu.org; Fri, 25 Mar 2022 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#52578] [PATCH v2 1/2] DRAFT gnu: Add openldap-for-services. References: In-Reply-To: Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Mar 2022 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52578@debbugs.gnu.org Cc: jean-francois.guillaume@univ-nantes.fr, zimoun Received: via spool by 52578-submit@debbugs.gnu.org id=B52578.16482225274831 (code B ref 52578); Fri, 25 Mar 2022 15:36:02 +0000 Received: (at 52578) by debbugs.gnu.org; 25 Mar 2022 15:35:27 +0000 Received: from localhost ([127.0.0.1]:52216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXlyI-0001Fp-LW for submit@debbugs.gnu.org; Fri, 25 Mar 2022 11:35:26 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:54969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXlyH-0001FW-4r for 52578@debbugs.gnu.org; Fri, 25 Mar 2022 11:35:25 -0400 Received: by mail-wm1-f45.google.com with SMTP id r64so4657534wmr.4 for <52578@debbugs.gnu.org>; Fri, 25 Mar 2022 08:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/BE5ZHl3S+tEFA/XklRHpWWnozpakZ1UFovO5VJfVe0=; b=CRHlRqqXeq4M4JD5oEGqbOFy1kp4Z7uybCbturHfkAn5z+FqQ4ivrmJTYSUtnERq4F +WYes1QvQZLa4oPJbtZmRsf/hL3OrBMLYegw/Pepos61RXO+w0ZoTg2oMzfXs61kxf8N hfSsKjIaUDBxIKuWNEeCmxTqOBIYiNSA6BZ3VoNd9Bk12V3EoOXuiOKZjC7/TX67iEHI zb26D1IDt52wNT2RR1AhjoZvSlx2VGcF8Ka1+W/pHsKVywLKuqljlF7oY9Jt6OoFljmr gtbcyMSq+s9xgaPz0ypdUUgccd5gFfVeas/UUMc3jpFoU+VUFUB+d326q/uWCDk8WjPB lz1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/BE5ZHl3S+tEFA/XklRHpWWnozpakZ1UFovO5VJfVe0=; b=0i1GC7ItKeJ+emvkzhJusZ4l8H+gvYmPWHeaHxpZbeYrONkJKbNGfBmdW/7/NUD4Za g2v5yobSe3Be9ZT29r9E5maUE3zSTnPy2FMiraB/IqqQt54Hk7YxFbp+6hbSBCQQnCHI LMmTeRnZb6gSKSLHnNJLGbDgCrEsTyFluKRgjICmWrZPw0H8TpU5gX8USxdsWN55kMRc MjyJtcrVeG0kPZDfPgL2/SoM2wb0uxRTSwPQE61QQEjOJ2Q3FiwRIgPTn3KzUu5Ng8Y2 /QIACWof+2KMTsU2Tuo9rvRuOiQxXV8/YMybCdSsRUhjOdgrm9jLIx1MrFP8upYbdn47 wxUg== X-Gm-Message-State: AOAM53029Cgh5PrG0HEudMCBJOKa+UTOK6W4ZftF8nVlS9OLq0l56Rmq z9i6C6OqaHXVPHr5cib9/3e/HUG56Us= X-Google-Smtp-Source: ABdhPJwzlPDRME/iLNHwqvJJroZyjqb77d2dlZaC1h6dr4C914MqCEQCQ1N126QRYEk1JYjlf6rY+w== X-Received: by 2002:a05:600c:49a9:b0:38c:987d:d692 with SMTP id h41-20020a05600c49a900b0038c987dd692mr10711344wmp.166.1648222519265; Fri, 25 Mar 2022 08:35:19 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id w5-20020a5d5445000000b00203f8c96bcesm5189244wrv.49.2022.03.25.08.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 08:35:18 -0700 (PDT) From: zimoun Date: Fri, 25 Mar 2022 16:35:16 +0100 Message-Id: <20220325153517.1478717-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.34.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/openldap.scm (openldap-for-services): New variable. Co-Authored-By: Jean-François Guillaume . --- gnu/packages/openldap.scm | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index c8a47e45d5..8374386807 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -9,6 +9,8 @@ ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2022 Marius Bakke +;;; Copyright © 2022 Jean-François Guillaume +;;; Copyright © 2022 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -30,6 +32,7 @@ (define-module (gnu packages openldap) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cyrus-sasl) + #:use-module (gnu packages databases) #:use-module (gnu packages dbm) #:use-module (gnu packages documentation) #:use-module (gnu packages gettext) @@ -164,6 +167,50 @@ (define-public openldap-2.6 (lambda (port) (format port "INPUT ( libldap.so )~%"))))))))))) +(define-public openldap-for-services + ;; TODO: Update in the next rebuild cycle + (let* ((openldap-minimal openldap-2.6)) + (package + (inherit openldap-minimal) + (name (string-append (package-name openldap-minimal) "-for-services")) + (arguments + (substitute-keyword-arguments (package-arguments openldap-minimal) + ((#:configure-flags flags) + `(append (list + "--enable-aci" + "--enable-argon2" + "--enable-backends=mod" + "--enable-balancer" + "--enable-cleartext" + "--enable-crypt" + "--enable-debug" + "--enable-dynacl" + "--enable-modules" + "--enable-ipv6" + "--enable-local" + "--enable-overlays=mod" + "--enable-rlookups" + "--enable-shared" + "--enable-slapd" + "--enable-slapi" + "--enable-spasswd" + "--enable-syslog" + "--with-tls=openssl") + ,flags)))) + (inputs (modify-inputs (package-inputs openldap-minimal) + (delete "gnutls") + (append argon2 + libevent + libltdl + lz4 + openssl + perl + snappy + unixodbc + wiredtiger))) + (native-inputs (modify-inputs (package-native-inputs openldap-minimal) + (append pkg-config)))))) + (define-public nss-pam-ldapd (package (name "nss-pam-ldapd")