From patchwork Thu Jan 11 12:50:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 859098 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zHQhW6tSqz9ryr for ; Thu, 11 Jan 2018 23:50:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D929330818; Thu, 11 Jan 2018 12:50:17 +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 tLs7kx29rY6Y; Thu, 11 Jan 2018 12:50:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 09ABA2C234; Thu, 11 Jan 2018 12:50:16 +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 0E7261C3F8B for ; Thu, 11 Jan 2018 12:50:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 091B389A47 for ; Thu, 11 Jan 2018 12:50:15 +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 mM8tH5qAMYv9 for ; Thu, 11 Jan 2018 12:50:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from idris.smile.fr (idris.smile.fr [91.216.209.19]) by whitealder.osuosl.org (Postfix) with ESMTPS id 035E689930 for ; Thu, 11 Jan 2018 12:50:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by idris.smile.fr (Postfix) with ESMTP id 7DBD11EE2C5F; Thu, 11 Jan 2018 13:50:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smile.fr Received: from idris.smile.fr ([127.0.0.1]) by localhost (bluemind-mta.prod.vitry.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kcQrz3H+UCmV; Thu, 11 Jan 2018 13:50:09 +0100 (CET) Received: from P-ASN-Evian-romnao.dhcp.idf.intranet (static-css-ccs-204145.business.bouyguestelecom.com [176.157.204.145]) by idris.smile.fr (Postfix) with ESMTPSA id 4ED031EE24B5; Thu, 11 Jan 2018 13:50:09 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Thu, 11 Jan 2018 13:50:00 +0100 Message-Id: <1515675000-13355-1-git-send-email-romain.naour@smile.fr> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH v2] package/bash-completion: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Jeremy Rosen MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Jeremy Rosen Signed-off-by: Jeremy Rosen Signed-off-by: Romain Naour --- v2: use a install target hook (Baruch) install to staging --- package/Config.in | 1 + package/bash-completion/Config.in | 7 +++++++ package/bash-completion/bash-completion.hash | 3 +++ package/bash-completion/bash-completion.mk | 22 ++++++++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 package/bash-completion/Config.in create mode 100644 package/bash-completion/bash-completion.hash create mode 100644 package/bash-completion/bash-completion.mk diff --git a/package/Config.in b/package/Config.in index 01f4095..d41d855 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1892,6 +1892,7 @@ comment "Shells" source "package/zsh/Config.in" comment "Utilities" source "package/at/Config.in" + source "package/bash-completion/Config.in" source "package/ccrypt/Config.in" source "package/crudini/Config.in" source "package/dialog/Config.in" diff --git a/package/bash-completion/Config.in b/package/bash-completion/Config.in new file mode 100644 index 0000000..597c928 --- /dev/null +++ b/package/bash-completion/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_BASH_COMPLETION + bool "bash completion" + depends on BR2_PACKAGE_BASH + help + Add bash completion infrastructure. + + https://github.com/scop/bash-completion diff --git a/package/bash-completion/bash-completion.hash b/package/bash-completion/bash-completion.hash new file mode 100644 index 0000000..facbeb0 --- /dev/null +++ b/package/bash-completion/bash-completion.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 41ba892d3f427d4a686de32673f35401bc947a7801f684127120cdb13641441e bash-completion-2.7.tar.xz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING diff --git a/package/bash-completion/bash-completion.mk b/package/bash-completion/bash-completion.mk new file mode 100644 index 0000000..b6606ad --- /dev/null +++ b/package/bash-completion/bash-completion.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# bash-completion +# +################################################################################ + +BASH_COMPLETION_VERSION = 2.7 +BASH_COMPLETION_SITE = https://github.com/scop/bash-completion/releases/download/$(BASH_COMPLETION_VERSION) +BASH_COMPLETION_SOURCE = bash-completion-$(BASH_COMPLETION_VERSION).tar.xz +BASH_COMPLETION_LICENSE = GPL-2.0+ +BASH_COMPLETION_LICENSE_FILES = COPYING + +# Install bash-completion.pc file +BASH_COMPLETION_INSTALL_STAGING = YES + +define BASH_COMPLETION_INSTALL_FILE + echo ". /usr/share/bash-completion/bash_completion" > $(TARGET_DIR)/etc/bash_completion +endef + +BASH_COMPLETION_POST_INSTALL_TARGET_HOOKS += BASH_COMPLETION_INSTALL_FILE + +$(eval $(autotools-package))