From patchwork Thu Feb 11 21:12:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1439671 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cAhIm3uz; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dc8VZ1fK3z9sBJ for ; Fri, 12 Feb 2021 08:13:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CF48E87498; Thu, 11 Feb 2021 21:13:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e8caPXW7gvEu; Thu, 11 Feb 2021 21:13:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8DB2387519; Thu, 11 Feb 2021 21:13:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 829881BF390 for ; Thu, 11 Feb 2021 21:13:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 79AC687519 for ; Thu, 11 Feb 2021 21:13:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kGVewCemuEvb for ; Thu, 11 Feb 2021 21:13:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6754887498 for ; Thu, 11 Feb 2021 21:13:04 +0000 (UTC) Received: by mail-wr1-f43.google.com with SMTP id r21so5535064wrr.9 for ; Thu, 11 Feb 2021 13:13:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wBEjAqFf3wxU/l2Jp1zBadlC8Tgqs7yo3sjib6zzJ3g=; b=cAhIm3uzAscbiItK4TkXPrZeNlofODU9JUW+62STDAfwNPIeDwJ3lJvhT0j9jhH4wE VrBvT46eZBJg5P9LBO3YKPuQuBLt3UFmcYg9pQ9euXvybbBGv2BNYvXfld7w/kd4lGAi q26y4/Dxyf0lAg8O5PjRoFIvrYXDpJtMz8wnhGftvSf9fIvRss/HYBTxBEkT9mBt40jB Z6ojItywm7iwjMM0tK1jv7CvQqDzNK7Ce/BNphWIpJE3TGGvdZ8SXn3VpN0cCINEYdJR xTSv3dIV0Q+0A5C0n9PGlgRScy7oQ7M52nX7L17ziWqOFb9hBLohBRxXqpcI3eWv4yEN 8gsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wBEjAqFf3wxU/l2Jp1zBadlC8Tgqs7yo3sjib6zzJ3g=; b=hadkGB3aXhT8fZ5IAZM5yipOEXXkf7TgcJeTijra/RyQxNBSu6MJx5JNP+kYWR4GpF jd86BiAuozbdt8UhzUv4EY5xS81uWWLz5m55KUV3PHTvXQcd5hwibWFwCXD0AzYF8KIV OsIzWfZYb4PJoYKZsX/JoAIiW7sWAal+B/hqOlVTkmI8uUYNR1c6Jy7ZKogw1zSSy+C2 05SdI3bWx5wEMiqLkh56lLz0rsWX+Q0LJUfdXotvN1esJS2xpXlzf/nCY6YuXLDdML4q uFwA8BMTm9kfR4lqq3ks6po+sqmvmGkk9xftG2v4WgMumsZKnLO6tfk/RO6+cX2X18Bj VGyg== X-Gm-Message-State: AOAM530rlOBjJ8StoWrkW4y3g8jGTdvjzhIgGt6ZFxE7zbrQOJKgFjs1 MzH3QvKhoEMv3PBz1X4blKjKarVPqng= X-Google-Smtp-Source: ABdhPJxiR/tO3QxvIx6WX9Zl1NgzyoZGR5tyKMMZASnerytvRSV/GTc6F+T8NIbvelTwZHqEdhKQoA== X-Received: by 2002:a05:6000:1252:: with SMTP id j18mr7324546wrx.232.1613077982761; Thu, 11 Feb 2021 13:13:02 -0800 (PST) Received: from pc-140.home ([2a01:cb15:81d3:300:7285:c2ff:fea6:cc85]) by smtp.gmail.com with ESMTPSA id v17sm2570603wru.85.2021.02.11.13.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 13:13:02 -0800 (PST) From: guillaume.bressaix@gmail.com X-Google-Original-From: guillaume.bresaix@gmail.com To: buildroot@busybox.net Date: Thu, 11 Feb 2021 22:12:51 +0100 Message-Id: <20210211211251.17129-1-guillaume.bresaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] libxcrypt: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Guillaume W. Bres" Signed-off-by: Guillaume W. Bres --- 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. Signed-off-by: Guillaume W. Bres --- DEVELOPERS | 1 + package/Config.in | 1 + package/libxcrypt/Config.in | 11 +++++++++++ package/libxcrypt/libxcrypt.hash | 4 ++++ package/libxcrypt/libxcrypt.mk | 13 +++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 package/libxcrypt/Config.in create mode 100644 package/libxcrypt/libxcrypt.hash create mode 100644 package/libxcrypt/libxcrypt.mk diff --git a/DEVELOPERS b/DEVELOPERS index 361ee2f35a..5937b5040f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1059,6 +1059,7 @@ F: package/sdl2/ N: Guillaume William Brs F: package/libnids/ +F: package/libxcrypt/ F: package/liquid-dsp/ F: package/pixiewps/ F: package/python-pybind/ diff --git a/package/Config.in b/package/Config.in index 5304ab141c..1b9d7a4846 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1371,6 +1371,7 @@ menu "Crypto" source "package/libssh2/Config.in" source "package/libtomcrypt/Config.in" source "package/libuecc/Config.in" + source "package/libxcrypt/Config.in" source "package/mbedtls/Config.in" source "package/nettle/Config.in" source "package/openssl/Config.in" diff --git a/package/libxcrypt/Config.in b/package/libxcrypt/Config.in new file mode 100644 index 0000000000..0c9e5c5869 --- /dev/null +++ b/package/libxcrypt/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBXCRYPT + bool "libxcrypt" + help + 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. + + https://github.com/besser82/libxcrypt diff --git a/package/libxcrypt/libxcrypt.hash b/package/libxcrypt/libxcrypt.hash new file mode 100644 index 0000000000..b56ab6beaf --- /dev/null +++ b/package/libxcrypt/libxcrypt.hash @@ -0,0 +1,4 @@ +# Locally calculated +sha256 7665168d0409574a03f7b484682e68334764c29c21ca5df438955a381384ca07 libxcrypt-4.4.17.tar.gz +sha256 f8198fcc4f002bf54512bac2e68e1e3f04af7d105f4f4f98d7d22cb110e04715 LICENSING +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB diff --git a/package/libxcrypt/libxcrypt.mk b/package/libxcrypt/libxcrypt.mk new file mode 100644 index 0000000000..f9799ac006 --- /dev/null +++ b/package/libxcrypt/libxcrypt.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# libxcrypt +# +################################################################################ + +LIBXCRYPT_VERSION = 4.4.17 +LIBXCRYPT_SITE = $(call github,besser82,libxcrypt,v$(LIBXCRYPT_VERSION)) +LIBXCRYPT_LICENSE = LGPL-2.1+ +LIBXCRYPT_LICENSE_FILES = LICENSING COPYING.LIB +LIBXCRYPT_AUTORECONF = YES + +$(eval $(autotools-package))