From 5e01906b8433bc6a8c03be2e31758589641124c9 Mon Sep 17 00:00:00 2001 From: David Karlstrom Date: Sat, 23 Jul 2005 13:36:38 +0000 Subject: Updated to use update-alternatives and fix some FHS bugs --- packages/wget/wget_1.9.1.bb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages/wget') 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} +} -- cgit v1.2.3