dropbear: fix ssh alternative when dbclient isn't built
authorRui Salvaterra <rsalvaterra@gmail.com>
Mon, 20 Jul 2020 22:26:42 +0000 (23:26 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 12 Aug 2020 19:57:37 +0000 (21:57 +0200)
The ssh symlink was still being created even when dbclient was disabled in the
build configuration. Fix this annoyance.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
package/network/services/dropbear/Makefile

index 0a9b5c0a992de83e9c18546cf21713df6db11719..bedb000fda9240af4591f9f08031c6eeb389ce7d 100644 (file)
@@ -53,9 +53,9 @@ define Package/dropbear
   CATEGORY:=Base system
   TITLE:=Small SSH2 client/server
   DEPENDS:= +DROPBEAR_ZLIB:zlib
-  ALTERNATIVES:=\
-         100:/usr/bin/ssh:/usr/sbin/dropbear \
-         100:/usr/bin/scp:/usr/sbin/dropbear \
+  ALTERNATIVES:=100:/usr/bin/scp:/usr/sbin/dropbear
+  $(if $(CONFIG_DROPBEAR_DBCLIENT),ALTERNATIVES+= \
+         100:/usr/bin/ssh:/usr/sbin/dropbear,)
 
 endef