[oe-commits] Tom Rini : debianutils: Move run-parts and tempfile to ${base_bindir}, use INC_PR

git version control git at git.openembedded.org
Fri Aug 20 22:28:25 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 280a17bc1d8132f97cf6a89b8bc08a32380fa357
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=280a17bc1d8132f97cf6a89b8bc08a32380fa357

Author: Tom Rini <tom_rini at mentor.com>
Date:   Fri Aug 20 15:13:43 2010 -0700

debianutils: Move run-parts and tempfile to ${base_bindir}, use INC_PR

We move run-parts to match busybox and usage and tempfile to match
normal usage (and upstream).  Run oe-stylize.py while in here.

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/debianutils/debianutils.inc       |   32 +++++++++++++++-------------
 recipes/debianutils/debianutils_2.17.3.bb |    2 +
 recipes/debianutils/debianutils_2.19.bb   |    3 +-
 recipes/debianutils/debianutils_2.30.bb   |    3 +-
 4 files changed, 23 insertions(+), 17 deletions(-)

diff --git a/recipes/debianutils/debianutils.inc b/recipes/debianutils/debianutils.inc
index 35ef03d..9d32606 100644
--- a/recipes/debianutils/debianutils.inc
+++ b/recipes/debianutils/debianutils.inc
@@ -1,35 +1,37 @@
+DESCRIPTION = "Miscellaneous utilities specific to Debian"
 SECTION = "base"
 LICENSE = "GPL BSD BSD SMAIL"
-DESCRIPTION = "Miscellaneous utilities specific to Debian"
+INC_PR = "r2"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/d/${PN}/${PN}_${PV}.tar.gz"
 
-inherit autotools 
+inherit autotools
 
 do_install_append() {
-    for app in ${D}/${sbindir}/* ${D}/${bindir}/*; do
+    for app in ${D}${sbindir}/* ${D}${bindir}/*; do
         mv $app $app.${PN}
     done
+    # Debian places some utils into ${base_bindir} as does busybox
+    install -d ${D}${base_bindir}
+    for app in run-parts.${PN} tempfile.${PN}; do
+        mv ${D}${bindir}/$app ${D}${base_bindir}/$app
+    done
 }
 
+pkg_prerm_${PN} () {
+for app in add-shell  installkernel  mkboot  remove-shell run-parts  savelog  sensible-browser  sensible-editor  sensible-pager  tempfile  which ; do
+   update-alternatives --remove $app $app.${PN}
+done
+}
 pkg_postinst_${PN} () {
 #!/bin/sh
 for app in add-shell  installkernel  mkboot  remove-shell ; do
     update-alternatives --install ${sbindir}/$app $app $app.${PN} 100
 done
-
-for app in run-parts  savelog  sensible-browser  sensible-editor  sensible-pager  tempfile  which ; do
+for app in savelog  sensible-browser  sensible-editor  sensible-pager  which ; do
     update-alternatives --install ${bindir}/$app $app $app.${PN} 100
 done
-}
-
-pkg_prerm_${PN} () {
- #!/bin/sh
-
-for app in add-shell  installkernel  mkboot  remove-shell run-parts  savelog  sensible-browser  sensible-editor  sensible-pager  tempfile  which ; do
-   update-alternatives --remove $app $app.${PN}
+for app in run-parts  tempfile ; do
+    update-alternatives --install ${base_bindir}/$app $app $app.${PN} 100
 done
 }
-
-
-
diff --git a/recipes/debianutils/debianutils_2.17.3.bb b/recipes/debianutils/debianutils_2.17.3.bb
index 8ea7e49..012c375 100644
--- a/recipes/debianutils/debianutils_2.17.3.bb
+++ b/recipes/debianutils/debianutils_2.17.3.bb
@@ -1,4 +1,6 @@
 require debianutils.inc
 
+PR = "${INC_PR}"
+
 SRC_URI[md5sum] = "cc768faa584f6c31cc1e0a959a3b8c0c"
 SRC_URI[sha256sum] = "46c0991b71d1991aa2f90d6816d9efb737fc9f9b99713174fcdf8d323727a11c"
diff --git a/recipes/debianutils/debianutils_2.19.bb b/recipes/debianutils/debianutils_2.19.bb
index 7569797..d81c4a7 100644
--- a/recipes/debianutils/debianutils_2.19.bb
+++ b/recipes/debianutils/debianutils_2.19.bb
@@ -2,4 +2,5 @@
 # Released under the MIT license (see packages/COPYING)
 
 require debianutils.inc
-PR ="r0"
+
+PR = "${INC_PR}"
diff --git a/recipes/debianutils/debianutils_2.30.bb b/recipes/debianutils/debianutils_2.30.bb
index 65bf10e..8a3a751 100644
--- a/recipes/debianutils/debianutils_2.30.bb
+++ b/recipes/debianutils/debianutils_2.30.bb
@@ -2,7 +2,8 @@
 # Released under the MIT license (see packages/COPYING)
 
 require debianutils.inc
-PR="r1"
+
+PR = "${INC_PR}"
 
 do_configure_prepend() {
 	sed -i -e 's:tempfile.1 which.1:which.1:g' Makefile.am





More information about the Openembedded-commits mailing list