libssh: compile against MbedTLS instead of OpenSSL
authorGioacchino Mazzurco <redacted>
Sun, 27 Aug 2023 10:15:06 +0000 (12:15 +0200)
committerGioacchino Mazzurco <redacted>
Mon, 28 Aug 2023 08:04:00 +0000 (10:04 +0200)
Since 2017 libssh supports to be compiled against libmbedtls instead of
libopessl, OpenWrt ships mbedtls by default, while depending on OpenSSL
increase image size by almost 1.5MB unnecessarily.

Signed-off-by: Gioacchino Mazzurco <redacted>
libs/libssh/Makefile

index d2b1e7d94ebc8b439897c541a8e7d95bde0513b6..7cd1bd6b67064a081d2e97d0b1d034fd70c77a47 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libssh
 PKG_VERSION:=0.10.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.libssh.org/files/0.10/
@@ -32,7 +32,7 @@ define Package/libssh
   CATEGORY:=Libraries
   URL:=$(PKG_SOURCE_URL)
   TITLE:=SSH library
-  DEPENDS:=+libpthread +librt +zlib +libopenssl
+  DEPENDS:=+libpthread +librt +zlib +libmbedtls
 endef
 
 define Package/libssh/description
@@ -46,6 +46,7 @@ CMAKE_OPTIONS += \
        -DHAVE_TERMIOS_H=1 \
        -DWITH_EXAMPLES:BOOL=OFF \
        -DWITH_GCRYPT:BOOL=OFF \
+       -DWITH_MBEDTLS:BOOL=ON \
        -DWITH_GSSAPI:BOOL=OFF \
        -DWITH_LIBZ:BOOL=ON \
        -DWITH_NACL:BOOL=OFF \
git clone https://git.99rst.org/PROJECT