summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-11-20 14:37:01 +0100
committerKoen Kooi <koen@openembedded.org>2008-11-20 14:37:01 +0100
commit349ba907d5d5f0991f4f5ec10ae79f6a66e65090 (patch)
tree242d07d544d8d96a91e69675b7913fd813aac828
parent1c62767e42940f17ab4d6769314b9f710e99075d (diff)
debianutils: make it use u-a
-rw-r--r--packages/debianutils/debianutils.inc30
-rw-r--r--packages/debianutils/debianutils_2.30.bb2
2 files changed, 30 insertions, 2 deletions
diff --git a/packages/debianutils/debianutils.inc b/packages/debianutils/debianutils.inc
index c9daed920e..35ef03d14f 100644
--- a/packages/debianutils/debianutils.inc
+++ b/packages/debianutils/debianutils.inc
@@ -4,4 +4,32 @@ DESCRIPTION = "Miscellaneous utilities specific to Debian"
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
+ mv $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
+ 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}
+done
+}
+
+
+
diff --git a/packages/debianutils/debianutils_2.30.bb b/packages/debianutils/debianutils_2.30.bb
index 30beb5d4ed..a15c8079b5 100644
--- a/packages/debianutils/debianutils_2.30.bb
+++ b/packages/debianutils/debianutils_2.30.bb
@@ -2,4 +2,4 @@
# Released under the MIT license (see packages/COPYING)
require debianutils.inc
-PR="r0"
+PR="r1"