summaryrefslogtreecommitdiff
path: root/packages/debianutils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/debianutils')
-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"