Patchwork [03/10] bash-completion: new recipe

login
register
mail settings
Submitter lumag
Date Sept. 23, 2011, 7:46 p.m.
Message ID <1316807201-22623-3-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/12053/
State New, archived
Headers show

Comments

lumag - Sept. 23, 2011, 7:46 p.m.
Add a bash-completion recipe. Largely based on the one from oe-dev repo.
Changes:
1) Version bump to most recent bash-completion upstream tarball
2) Dropped custom profile.d script in favour of upstream one.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 .../bash-completion/bash-completion_20060301.bb    |   28 ++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/bash-completion/bash-completion_20060301.bb
Richard Purdie - Sept. 25, 2011, 9:46 a.m.
On Fri, 2011-09-23 at 23:46 +0400, Dmitry Eremin-Solenikov wrote:
> Add a bash-completion recipe. Largely based on the one from oe-dev repo.
> Changes:
> 1) Version bump to most recent bash-completion upstream tarball
> 2) Dropped custom profile.d script in favour of upstream one.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
>  .../bash-completion/bash-completion_20060301.bb    |   28 ++++++++++++++++++++
>  1 files changed, 28 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-extended/bash-completion/bash-completion_20060301.bb
> 
> diff --git a/meta/recipes-extended/bash-completion/bash-completion_20060301.bb b/meta/recipes-extended/bash-completion/bash-completion_20060301.bb
> new file mode 100644
> index 0000000..9e8ede2
> --- /dev/null
> +++ b/meta/recipes-extended/bash-completion/bash-completion_20060301.bb
> @@ -0,0 +1,28 @@
> +DESCRIPTION = "Programmable Completion for Bash"
> +SECTION = "console/utils"
> +RDEPENDS_${PN} = "bash"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> +PR = "r0"
> +
> +SRC_URI = "http://www.caliban.org/files/bash/bash-completion-${PV}.tar.gz"
> +S = "${WORKDIR}/bash_completion"
> +
> +do_configure() {
> +	:
> +}
> +
> +do_compile() {
> +	:
> +}
> +
> +do_install() {
> +	install -d ${D}${sysconfdir}/profile.d
> +	install -m 0755 bash_completion.sh ${D}${sysconfdir}/profile.d
> +	install -m 0755 bash_completion ${D}${sysconfdir}
> +	install -d ${D}${sysconfdir}/bash_completion.d/
> +	install -m 0755 contrib/* ${D}${sysconfdir}/bash_completion.d/
> +}
> +
> +SRC_URI[md5sum] = "9bca1cf97e8f8c73e3ef560cc9dead21"
> +SRC_URI[sha256sum] = "29b78834b975b29810f0bf1f15e5d3a6c003a137cfac7fea671bfaf8f58f5c0d"

We might as well put an "inherit allarch" into this recipe...

Cheers,

Richard

Patch

diff --git a/meta/recipes-extended/bash-completion/bash-completion_20060301.bb b/meta/recipes-extended/bash-completion/bash-completion_20060301.bb
new file mode 100644
index 0000000..9e8ede2
--- /dev/null
+++ b/meta/recipes-extended/bash-completion/bash-completion_20060301.bb
@@ -0,0 +1,28 @@ 
+DESCRIPTION = "Programmable Completion for Bash"
+SECTION = "console/utils"
+RDEPENDS_${PN} = "bash"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+PR = "r0"
+
+SRC_URI = "http://www.caliban.org/files/bash/bash-completion-${PV}.tar.gz"
+S = "${WORKDIR}/bash_completion"
+
+do_configure() {
+	:
+}
+
+do_compile() {
+	:
+}
+
+do_install() {
+	install -d ${D}${sysconfdir}/profile.d
+	install -m 0755 bash_completion.sh ${D}${sysconfdir}/profile.d
+	install -m 0755 bash_completion ${D}${sysconfdir}
+	install -d ${D}${sysconfdir}/bash_completion.d/
+	install -m 0755 contrib/* ${D}${sysconfdir}/bash_completion.d/
+}
+
+SRC_URI[md5sum] = "9bca1cf97e8f8c73e3ef560cc9dead21"
+SRC_URI[sha256sum] = "29b78834b975b29810f0bf1f15e5d3a6c003a137cfac7fea671bfaf8f58f5c0d"