summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2014-11-03 11:13:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-09 10:21:22 +0000
commit9e3c886ad5e10919977cd5b6901e124ce27e1084 (patch)
treea0610c3d94b8f42cdbd1dc5504925afc84ce7c02
parent1d1979182844e748cf87a99e28e442fe76677043 (diff)
downloadpoky-9e3c886ad5e10919977cd5b6901e124ce27e1084.tar.gz
debianutils: Add recipe from meta-oe
This recipe is a running dependency of recipe apt (From OE-Core rev: de8278300eca1e29747be0a0f94787ff90926598) Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/debianutils/debianutils_4.4.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-support/debianutils/debianutils_4.4.bb b/meta/recipes-support/debianutils/debianutils_4.4.bb
new file mode 100644
index 0000000000..346eaf16eb
--- /dev/null
+++ b/meta/recipes-support/debianutils/debianutils_4.4.bb
@@ -0,0 +1,35 @@
1SUMMARY = "Miscellaneous utilities specific to Debian"
2SECTION = "base"
3LICENSE = "GPLv2 & SMAIL_GPL"
4LIC_FILES_CHKSUM = "file://debian/copyright;md5=f01a5203d50512fc4830b4332b696a9f"
5
6SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.gz"
7SRC_URI[md5sum] = "c0cb076754d7f4eb1e3397d00916647f"
8SRC_URI[sha256sum] = "190850cdd6b5302e0a1ba1aaed1bc7074d67d3bd8d04c613f242f7145afa53a6"
9
10inherit autotools update-alternatives
11
12do_configure_prepend() {
13 sed -i -e 's:tempfile.1 which.1:which.1:g' ${S}/Makefile.am
14}
15
16do_install_append() {
17 if [ "${base_bindir}" != "${bindir}" ]; then
18 # Debian places some utils into ${base_bindir} as does busybox
19 install -d ${D}${base_bindir}
20 for app in run-parts tempfile; do
21 mv ${D}${bindir}/$app ${D}${base_bindir}/$app
22 done
23 fi
24}
25
26ALTERNATIVE_PRIORITY="100"
27ALTERNATIVE_${PN} = "add-shell installkernel remove-shell run-parts savelog tempfile which"
28
29ALTERNATIVE_LINK_NAME[add-shell]="${sbindir}/add-shell"
30ALTERNATIVE_LINK_NAME[installkernel]="${sbindir}/installkernel"
31ALTERNATIVE_LINK_NAME[remove-shell]="${sbindir}/remove-shell"
32ALTERNATIVE_LINK_NAME[run-parts]="${base_bindir}/run-parts"
33ALTERNATIVE_LINK_NAME[savelog]="${bindir}/savelog"
34ALTERNATIVE_LINK_NAME[tempfile]="${base_bindir}/tempfile"
35ALTERNATIVE_LINK_NAME[which]="${bindir}/which"