From 4088a5294dfd326b77cde77d12a7f97af89500ad Mon Sep 17 00:00:00 2001 From: Marc Gauthier Date: Thu, 28 May 2009 14:31:20 +0200 Subject: [PATCH] dropbear: fix initscript install The -D option to install only works portably when the destination is a file. Specifying the filename avoids the following build error (at least on some hosts): "/usr/bin/install: cannot overwrite directory `/tmp/buildroot/ project_build_foobar/uclibc/root/etc/init.d' with non-directory" Signed-off-by: Marc Gauthier Signed-off-by: Peter Korsgaard --- package/dropbear/dropbear.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk index e84df8758a..63d3daaf16 100644 --- a/package/dropbear/dropbear.mk +++ b/package/dropbear/dropbear.mk @@ -28,7 +28,7 @@ $(DROPBEAR_TARGET_INSTALL_TARGET): ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/scp ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/ssh if [ ! -f $(TARGET_DIR)/etc/init.d/S50dropbear ]; then \ - $(INSTALL) -m 0755 -D package/dropbear/S50dropbear $(TARGET_DIR)/etc/init.d; \ + $(INSTALL) -m 0755 -D package/dropbear/S50dropbear $(TARGET_DIR)/etc/init.d/S50dropbear; \ fi touch $@