diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-08-20 15:13:43 -0700 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2010-08-20 15:24:10 -0700 |
commit | 280a17bc1d8132f97cf6a89b8bc08a32380fa357 (patch) | |
tree | ec4f9235fec551ad7b9e2c092e6769007ad85456 /recipes/debianutils/debianutils.inc | |
parent | dd9969cbacabd8dba6c8c197a67d8409fb78988e (diff) | |
download | openembedded-280a17bc1d8132f97cf6a89b8bc08a32380fa357.tar.gz |
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@mentor.com>
Diffstat (limited to 'recipes/debianutils/debianutils.inc')
-rw-r--r-- | recipes/debianutils/debianutils.inc | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/recipes/debianutils/debianutils.inc b/recipes/debianutils/debianutils.inc index 35ef03d14f..9d326060c2 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 } - - - |