[Buildroot] [PATCH] lrzsz: add lrz/lsz symlinks

Mike Frysinger vapier at gentoo.org
Sat Nov 20 05:27:34 UTC 2010


Many systems support automatic zmodem transfers without needing to first
manually run the zmodem utils.  But the expectation is to run `lrz` and
not `rz`.  So install symlinks for lrz->rz and lsz->sz to support this.

This also includes a small fix to also remove sz when cleaning.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 package/lrzsz/lrzsz.mk |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/package/lrzsz/lrzsz.mk b/package/lrzsz/lrzsz.mk
index 0b7f4e6..5897916 100644
--- a/package/lrzsz/lrzsz.mk
+++ b/package/lrzsz/lrzsz.mk
@@ -39,10 +39,12 @@ endef
 define LRZSZ_INSTALL_TARGET_CMDS
 	cp $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
 	cp $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
+	ln -s rz $(TARGET_DIR)/usr/bin/lrz
+	ln -s sz $(TARGET_DIR)/usr/bin/lsz
 endef
 
 define LRZSZ_CLEAN_CMDS
-	rm -f $(TARGET_DIR)/usr/bin/rz
+	rm -f $(patsubst %,$(TARGET_DIR)/usr/bin/%,rz sz lrz lsz)
 	-$(MAKE) -C $(@D) clean
 endef
 
-- 
1.7.3.2



More information about the buildroot mailing list