debianutils: make it use u-a
authorKoen Kooi <koen@openembedded.org>
Thu, 20 Nov 2008 13:37:01 +0000 (14:37 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 20 Nov 2008 13:37:01 +0000 (14:37 +0100)
packages/debianutils/debianutils.inc
packages/debianutils/debianutils_2.30.bb

index c9daed9..35ef03d 100644 (file)
@@ -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
+}
+
+
+
index 30beb5d..a15c807 100644 (file)
@@ -2,4 +2,4 @@
 # Released under the MIT license (see packages/COPYING)
 
 require debianutils.inc
-PR="r0"
+PR="r1"