summaryrefslogtreecommitdiff
path: root/packages/lrzsz/lrzsz_0.12.20.bb
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-08-09 08:41:19 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-08-09 08:41:19 +0000
commit9d829ed05c295df608b4fc108eb1c628fd06fd39 (patch)
treec1b27cfe4498f8abef1a61325922906f3e6a32ff /packages/lrzsz/lrzsz_0.12.20.bb
parent1434b204e16e87b7f59f074f3036d5dcbcf0116f (diff)
parent6ccac10beeaaa02a86081bd6179fd57c208ad6b1 (diff)
merge of '76e1e69496801009ea0aa69c84f76e858978ab99'
and 'db976a98427dd6a195e2cf167e225de2d0206aea'
Diffstat (limited to 'packages/lrzsz/lrzsz_0.12.20.bb')
-rw-r--r--packages/lrzsz/lrzsz_0.12.20.bb20
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