dropbear: fix initscript install
authorMarc Gauthier <marc@tensilica.com>
Thu, 28 May 2009 12:31:20 +0000 (14:31 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 28 May 2009 12:31:20 +0000 (14:31 +0200)
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 <marc@tensilica.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/dropbear/dropbear.mk

index e84df8758a923b78fe65b62674f7541c6d2ced76..63d3daaf1644de5c82d517206e5460651642750c 100644 (file)
@@ -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 $@