From patchwork Fri Mar 4 11:15:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Allan Adair X-Patchwork-Id: 37613 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 68BB827BBEB; Fri, 4 Mar 2022 11:16:12 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS 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 C6E3127BBEA for ; Fri, 4 Mar 2022 11:16:11 +0000 (GMT) Received: from localhost ([::1]:53198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ5us-000279-Tv for patchwork@mira.cbaines.net; Fri, 04 Mar 2022 06:16:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ5ul-000271-6z for guix-patches@gnu.org; Fri, 04 Mar 2022 06:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQ5uk-0007Qq-Ui for guix-patches@gnu.org; Fri, 04 Mar 2022 06:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQ5uk-0002Ga-Jx for guix-patches@gnu.org; Fri, 04 Mar 2022 06:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54244] [PATCH] Add libxcrypt Resent-From: Allan Adair Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Mar 2022 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54244 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54244@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16463925398673 (code B ref -1); Fri, 04 Mar 2022 11:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Mar 2022 11:15:39 +0000 Received: from localhost ([127.0.0.1]:44632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQ5uN-0002Fo-4x for submit@debbugs.gnu.org; Fri, 04 Mar 2022 06:15:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:43652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQ5uL-0002Fh-K1 for submit@debbugs.gnu.org; Fri, 04 Mar 2022 06:15:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ5uL-00020H-Fj for guix-patches@gnu.org; Fri, 04 Mar 2022 06:15:37 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:56857) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ5uJ-0007NI-3D for guix-patches@gnu.org; Fri, 04 Mar 2022 06:15:37 -0500 Received: (Authenticated sender: allan@adair.no) by mail.gandi.net (Postfix) with ESMTPSA id 260B91BF203 for ; Fri, 4 Mar 2022 11:15:29 +0000 (UTC) Message-ID: <48c4e16e5ab96c04736d07135bebe790ce6c1125.camel@adair.no> From: Allan Adair Date: Fri, 04 Mar 2022 12:15:04 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.42.1 Received-SPF: pass client-ip=217.70.183.201; envelope-from=allan@adair.no; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches I would like to add a libxcrypt package for guix. In several major linux distributions it has become the default crypt library. I think it is that case for Debian, Fedora, Gentoo, and perhaps others. In any case, it's particularly useful for those who want access to numerous hashing algorithms through crypt calls. From 2879564bdb9c87f89dcefa07b5e3bdfcd07d9914 Mon Sep 17 00:00:00 2001 From: Allan Adair Date: Fri, 4 Mar 2022 12:01:42 +0100 Subject: [PATCH] Add libxcrypt libxcrypt is an extended crypt library for descrypt, md5crypt, bcrypt, and others. --- gnu/packages/crypto.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index f07be01c97..4568196abb 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Ellis Kenyő ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Brendan Tildesley +;;; Copyright © 2022 Allan Adair ;;; ;;; This file is part of GNU Guix. ;;; @@ -73,6 +74,7 @@ (define-module (gnu packages crypto) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-check) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages readline) #:use-module (gnu packages search) #:use-module (gnu packages serialization) @@ -1607,3 +1609,37 @@ (define-public b3sum ;; Users may choose between these two licenses when redistributing the ;; program provided by this package. (license (list license:cc0 license:asl2.0)))) + +(define-public libxcrypt + (package + (name "libxcrypt") + (version "4.4.28") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/besser82/libxcrypt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pacj0s1hlv22iz0k2bkysjslc6rbrgmvmsr02qq17lp4d2gw5rs")))) + (build-system gnu-build-system) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("python3" ,python-3) + ("python-passlib" ,python-passlib))) + (synopsis + "Extended crypt library for descrypt, md5crypt, bcrypt, and others") + (description + "libxcrypt is a modern library for one-way hashing of +passwords. It supports a wide variety of both modern and historical +hashing methods: yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt, +sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and +descrypt.") + (home-page "https://github.com/besser82/libxcrypt") + (license license:lgpl2.1))) -- 2.34.0