From 1d168a6b77c57e97a2512825b41875621f4ad397 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 26 Oct 2007 11:39:18 +0000 Subject: lrzsz: use update-alternatives (from OE) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3000 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/lrzsz/lrzsz_0.12.20.bb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'meta/packages/lrzsz') diff --git a/meta/packages/lrzsz/lrzsz_0.12.20.bb b/meta/packages/lrzsz/lrzsz_0.12.20.bb index 8110661ac1..0a194f9a05 100644 --- a/meta/packages/lrzsz/lrzsz_0.12.20.bb +++ b/meta/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 -- cgit v1.2.3