diff options
author | David Karlstrom <daka@thg.se> | 2005-07-23 13:36:38 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-23 13:36:38 +0000 |
commit | 5e01906b8433bc6a8c03be2e31758589641124c9 (patch) | |
tree | c400790ffa5ebb896c464da84752a4937d889400 /packages/wget/wget_1.9.1.bb | |
parent | 57808a977840bce11bdbab373d9eacaba7ef88c1 (diff) |
Updated to use update-alternatives and fix some FHS bugs
Diffstat (limited to 'packages/wget/wget_1.9.1.bb')
-rw-r--r-- | packages/wget/wget_1.9.1.bb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/wget/wget_1.9.1.bb b/packages/wget/wget_1.9.1.bb index 16ccb6f151..ee95220244 100644 --- a/packages/wget/wget_1.9.1.bb +++ b/packages/wget/wget_1.9.1.bb @@ -19,3 +19,16 @@ do_configure () { rm -f libtool.m4 autotools_do_configure } + +do_install () { + autotools_do_install + mv ${D}${bindir}/wget ${D}${bindir}/wget.${PN} +} + +pkg_postinst_${PN} () { + update-alternatives --install ${bindir}/wget wget wget.${PN} 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove wget wget.${PN} +} |