Merge branch 'vuplus-1.6k' of code.vuplus.com:/opt/repository/openembedded into vuplu...
[vuplus_openembedded] / recipes / debianutils / debianutils.inc
1 SECTION = "base"
2 LICENSE = "GPL BSD BSD SMAIL"
3 DESCRIPTION = "Miscellaneous utilities specific to Debian"
4
5 SRC_URI = "${DEBIAN_MIRROR}/main/d/${PN}/${PN}_${PV}.tar.gz"
6
7 inherit autotools 
8
9 do_install_append() {
10     for app in ${D}/${sbindir}/* ${D}/${bindir}/*; do
11         mv $app $app.${PN}
12     done
13 }
14
15 pkg_postinst_${PN} () {
16 #!/bin/sh
17 for app in add-shell  installkernel  mkboot  remove-shell ; do
18     update-alternatives --install ${sbindir}/$app $app $app.${PN} 100
19 done
20
21 for app in run-parts  savelog  sensible-browser  sensible-editor  sensible-pager  tempfile  which ; do
22     update-alternatives --install ${bindir}/$app $app $app.${PN} 100
23 done
24 }
25
26 pkg_prerm_${PN} () {
27  #!/bin/sh
28
29 for app in add-shell  installkernel  mkboot  remove-shell run-parts  savelog  sensible-browser  sensible-editor  sensible-pager  tempfile  which ; do
30    update-alternatives --remove $app $app.${PN}
31 done
32 }
33
34
35