From patchwork Fri Aug 11 16:00:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 800628 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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.b="SEFNrDgO"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xTV9G3r20z9t2h for ; Sat, 12 Aug 2017 02:01:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C576588E4C; Fri, 11 Aug 2017 16:01:02 +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 f09RmcCHTugm; Fri, 11 Aug 2017 16:01:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0E8C188E51; Fri, 11 Aug 2017 16:01:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C4F8A1BFA57 for ; Fri, 11 Aug 2017 16:01:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BF73F2F29D for ; Fri, 11 Aug 2017 16:01:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xr8mjBwDB9X2 for ; Fri, 11 Aug 2017 16:01:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by silver.osuosl.org (Postfix) with ESMTPS id 0CC8A23102 for ; Fri, 11 Aug 2017 16:01:00 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id d40so6940921wma.3 for ; Fri, 11 Aug 2017 09:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RwKt4pslAAoc00SMpZgjVNzw/ZEyXzgojoBnBHeY7CY=; b=SEFNrDgOoyPl+HXexqoi1nqaDjGEvz7IaBHGe6N1HDHQkFsu4aantMFMTmASawKANn gzW8ueWpJCuM6E8R/mY40otfd/tNo2n5FnkuLVs0zv8UhwSSBiQvtn3xTXkBmeRhYohO d8fpWTI87YWSfdgS5szqUtAa+uWPReZWvl+CuHmf2Lp8NPMJVg2U8NBonJs53FwuKdnm owvYJzK+LpKUOlUH8OvoGXZ5EHZlfYLFX8oXADZzTRUggyXSAD8Wuo95gqFsz5lgbV9D 4L3KKZK+wSeDi+cxG0piN2+iQNuZbaJPD0u0Ho1E0mcxF1raWmnKyNwEbKML/XiBm8sY 6Eqg== 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:in-reply-to :references; bh=RwKt4pslAAoc00SMpZgjVNzw/ZEyXzgojoBnBHeY7CY=; b=bq4RN6IdOVdL9nJ9ogyxCVaWf8POhBpnGQUJnNGuEq1oCjryG+yzAbo6jqF2Ri8LZa 8ZjdJFWHUDVLjQTMi30Yuvds1DMZNyrLk/mmcf59wsGqn4K1rIufjAAfu/GDzhYdGKzB hrTYAm0ytqeEEuG5XPwKEW20EfWDvQ5Ly0WDe/w7wmwRxRmOcZnbnKlhU3hesdY59P0x GyivK4IwDVab1wIMMVQDpz9aqwCouX/UMAMrmGqK4nCOeIwocsnLdrwx69rANxy33a97 R8cnkuL59eh/t8F5KrIRAhkGBTQ5b9FY+MOc4CncQH1Goe6aG+mVqU1UvnPPX8rFVzXy Qn6g== X-Gm-Message-State: AHYfb5gHnjWj7xCCZskbtwVrXCXKf01uDmxo6BZL2ml55x/AQhfjskJj EpogBB6y9TwhU4ZmjTc= X-Received: by 10.28.47.79 with SMTP id v76mr8692272wmv.96.1502467256613; Fri, 11 Aug 2017 09:00:56 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id s8sm1100261wmf.1.2017.08.11.09.00.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Aug 2017 09:00:55 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 11 Aug 2017 18:00:47 +0200 Message-Id: <1502467249-2861-2-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502467249-2861-1-git-send-email-angelo.compagnucci@gmail.com> References: <1502467249-2861-1-git-send-email-angelo.compagnucci@gmail.com> Subject: [Buildroot] [PATCH 1/3] package/libb64: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds libb64, a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format. Signed-off-by: Angelo Compagnucci --- package/Config.in | 1 + package/libb64/Config.in | 12 ++++++++++++ package/libb64/libb64.hash | 3 +++ package/libb64/libb64.mk | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 package/libb64/Config.in create mode 100644 package/libb64/libb64.hash create mode 100644 package/libb64/libb64.mk diff --git a/package/Config.in b/package/Config.in index b5170b0..02022b2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -984,6 +984,7 @@ menu "Crypto" source "package/gcr/Config.in" source "package/gnutls/Config.in" source "package/libassuan/Config.in" + source "package/libb64/Config.in" source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" source "package/libgpgme/Config.in" diff --git a/package/libb64/Config.in b/package/libb64/Config.in new file mode 100644 index 0000000..a994731 --- /dev/null +++ b/package/libb64/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_LIBB64 + bool "libb64" + help + libb64 is a library of ANSI C routines for fast encoding/decoding + data into and from a base64-encoded format. C++ wrappers are + included, as well as the source code for standalone encoding + and decoding executables. + Base64 uses a subset of displayable ASCII characters, and is + therefore a useful encoding for storing binary data in a text + file, such as XML, or sending binary data over text-only email. + + http://libb64.sourceforge.net diff --git a/package/libb64/libb64.hash b/package/libb64/libb64.hash new file mode 100644 index 0000000..012a7b0 --- /dev/null +++ b/package/libb64/libb64.hash @@ -0,0 +1,3 @@ +# sha1 from sourceforge, sha256 locally computed +sha1 04b3e21b8c951d27f02fe91249ca3474554af0b9 libb64-1.2.1.zip +sha256 20106f0ba95cfd9c35a13c71206643e3fb3e46512df3e2efb2fdbf87116314b2 libb64-1.2.1.zip diff --git a/package/libb64/libb64.mk b/package/libb64/libb64.mk new file mode 100644 index 0000000..8130aef --- /dev/null +++ b/package/libb64/libb64.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# libb64 +# +################################################################################ + +LIBB64_VERSION = 1.2.1 +LIBB64_SOURCE = libb64-$(LIBB64_VERSION).zip +LIBB64_SITE = https://downloads.sourceforge.net/project/libb64/libb64/libb64 +LIBB64_LICENSE = Public Domain +LIBB64_LICENSE_FILES = LICENSE +LIBB64_INSTALL_STAGING = YES + +define LIBB64_EXTRACT_CMDS + unzip $(DL_DIR)/$(LIBB64_SOURCE) -d $(BUILD_DIR) +endef + +define LIBB64_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS)" -C $(@D) all_src +endef + +define LIBB64_INSTALL_STAGING_CMDS + $(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/b64 + $(INSTALL) -D -m 0755 $(@D)/include/b64/* $(STAGING_DIR)/usr/include/b64 + $(INSTALL) -D -m 0755 $(@D)/src/libb64.a $(STAGING_DIR)/usr/lib +endef + +define LIBB64_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/src/libb64.a $(STAGING_DIR)/usr/lib +endef + +$(eval $(generic-package))