autossh: fix compilation without ssh installed
authorRosen Penev <rosenp@gmail.com>
Sun, 13 Jun 2021 01:26:19 +0000 (18:26 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 6 Oct 2021 19:33:39 +0000 (12:33 -0700)
configure script looks for host ssh. Just pass the configure variable
directly. --with-ssh doesn't work.

Also get rid of custom Compile section. It's not needed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 63b7febf5f62a120539611b1f7c252db5dc244cb)

net/autossh/Makefile

index 78dc90ecabeee1c53af9a4fa4fb20b95c6a5d26e..87fd91347e2396064313d296def992265398d71b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=autossh
 PKG_VERSION:=1.4g
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=https://www.harding.motd.ca/autossh/
@@ -27,12 +27,8 @@ define Package/autossh
   SUBMENU:=SSH
 endef
 
-define Build/Compile
-       $(call Build/Compile/Default, -f Makefile \
-               CFLAGS="$(TARGET_CFLAGS) -Wall -D\"SSH_PATH=\\\"\$$$$(SSH)\\\"\" -D\"VER=\\\"\$$$$(VER)\\\"\"" \
-               all \
-       )
-endef
+CONFIGURE_VARS += \
+       ac_cv_path_ssh=/usr/bin/ssh
 
 define Package/autossh/install
        $(INSTALL_DIR) $(1)/usr/sbin