diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-16 22:43:33 +0000 |
---|---|---|
committer | Oyvind Repvik <nail@nslu2-linux.org> | 2007-03-16 22:43:33 +0000 |
commit | 3cbc2f0fce99f931f900295cdd9f6c94f3e47325 (patch) | |
tree | 186dfb4474d02ae42ab977e42b7dd507971bd35b /packages/lrzsz | |
parent | 9a627b9161ebdbcef11fdfe1a2a3c667b653e777 (diff) |
lrzsz: Use update-alternatives to avoid conflicts with busybox. Closes bug 1970
Diffstat (limited to 'packages/lrzsz')
-rw-r--r-- | packages/lrzsz/lrzsz_0.12.20.bb | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/packages/lrzsz/lrzsz_0.12.20.bb b/packages/lrzsz/lrzsz_0.12.20.bb index 8110661ac1..0a194f9a05 100644 --- a/packages/lrzsz/lrzsz_0.12.20.bb +++ b/packages/lrzsz/lrzsz_0.12.20.bb @@ -3,7 +3,7 @@ SECTION = "console/network" PRIORITY = "standard" DESCRIPTION = "Tools for zmodem/xmodem/ymodem file transfer" DEPENDS = "" -PR = "r2" +PR = "r3" SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \ file://autotools.patch;patch=1 \ @@ -15,10 +15,16 @@ inherit autotools gettext do_install() { install -d ${D}${bindir}/ install -m 0755 src/lrz src/lsz ${D}${bindir}/ - ln -sf ./lrz ${D}${bindir}/rz - ln -sf ./lrz ${D}${bindir}/rx - ln -sf ./lrz ${D}${bindir}/rb - ln -sf ./lsz ${D}${bindir}/sz - ln -sf ./lsz ${D}${bindir}/sx - ln -sf ./lsz ${D}${bindir}/sb } + +pkg_postinst() { + for util in rz rx rb sz sx sb; do + update-alternatives --install ${bindir}/$util $util lrz 100 + done +} + +pkg_postrm() { + for util in rz rx rb sz sx sb; do + update-alternatives --remove $util ${bindir}/lrz + done +}
\ No newline at end of file |