diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-10-26 11:39:18 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-10-26 11:39:18 +0000 |
commit | 1d168a6b77c57e97a2512825b41875621f4ad397 (patch) | |
tree | bfd4dba06dedfb9efde2c3f968c31c8c36a03203 /meta/packages | |
parent | 03b1d82252df454211c05d3ab8c233803b8dd00c (diff) | |
download | poky-1d168a6b77c57e97a2512825b41875621f4ad397.tar.gz |
lrzsz: use update-alternatives (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3000 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/lrzsz/lrzsz_0.12.20.bb | 20 |
1 files changed, 13 insertions, 7 deletions
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" | |||
3 | PRIORITY = "standard" | 3 | PRIORITY = "standard" |
4 | DESCRIPTION = "Tools for zmodem/xmodem/ymodem file transfer" | 4 | DESCRIPTION = "Tools for zmodem/xmodem/ymodem file transfer" |
5 | DEPENDS = "" | 5 | DEPENDS = "" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | 7 | ||
8 | SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \ | 8 | SRC_URI = "http://www.ohse.de/uwe/releases/lrzsz-${PV}.tar.gz \ |
9 | file://autotools.patch;patch=1 \ | 9 | file://autotools.patch;patch=1 \ |
@@ -15,10 +15,16 @@ inherit autotools gettext | |||
15 | do_install() { | 15 | do_install() { |
16 | install -d ${D}${bindir}/ | 16 | install -d ${D}${bindir}/ |
17 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ | 17 | install -m 0755 src/lrz src/lsz ${D}${bindir}/ |
18 | ln -sf ./lrz ${D}${bindir}/rz | ||
19 | ln -sf ./lrz ${D}${bindir}/rx | ||
20 | ln -sf ./lrz ${D}${bindir}/rb | ||
21 | ln -sf ./lsz ${D}${bindir}/sz | ||
22 | ln -sf ./lsz ${D}${bindir}/sx | ||
23 | ln -sf ./lsz ${D}${bindir}/sb | ||
24 | } | 18 | } |
19 | |||
20 | pkg_postinst() { | ||
21 | for util in rz rx rb sz sx sb; do | ||
22 | update-alternatives --install ${bindir}/$util $util lrz 100 | ||
23 | done | ||
24 | } | ||
25 | |||
26 | pkg_postrm() { | ||
27 | for util in rz rx rb sz sx sb; do | ||
28 | update-alternatives --remove $util ${bindir}/lrz | ||
29 | done | ||
30 | } \ No newline at end of file | ||