summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-10-10 00:14:27 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-10-10 00:14:27 +0200
commit54bcf87b452c7a7738009fb808d19610fdb31df8 (patch)
tree640505bfdf0f9204c820fb7664940c605186f7b9 /package
parent95af4fbfa56977d7c93ef6339c37829a47275f77 (diff)
downloadbuildroot-novena-54bcf87b452c7a7738009fb808d19610fdb31df8.tar.gz
buildroot-novena-54bcf87b452c7a7738009fb808d19610fdb31df8.zip
lrzsz: fix repeated target install
Closes #4165 Use ln -sf in case destination already exists from an earlier install, and use install -D rather than cp while we're at it. Based on patch by Hector Oron <hector.oron@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/lrzsz/lrzsz.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/lrzsz/lrzsz.mk b/package/lrzsz/lrzsz.mk
index 0d3347f8d..314f46a4a 100644
--- a/package/lrzsz/lrzsz.mk
+++ b/package/lrzsz/lrzsz.mk
@@ -36,10 +36,10 @@ define LRZSZ_BUILD_HOOKS
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
+ $(INSTALL) -m 0755 -D $(@D)/src/lrz $(TARGET_DIR)/usr/bin/rz
+ $(INSTALL) -m 0755 -D $(@D)/src/lsz $(TARGET_DIR)/usr/bin/sz
+ ln -sf rz $(TARGET_DIR)/usr/bin/lrz
+ ln -sf sz $(TARGET_DIR)/usr/bin/lsz
endef
define LRZSZ_CLEAN_CMDS