aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-06-15 16:12:35 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-05-08 09:10:45 +0200
commit28226158f18dc0da3f330b43b7b18aadab466ffd (patch)
tree040a0402110d8915b38ce3beb7cee88036b363c5
parent097d1ff1f91f1cb610968dd579bebddbed7f9d1b (diff)
libssh: build static library and activate pcap logging (no libpcap required)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
1 files changed, 21 insertions, 1 deletions
diff --git a/libs/libssh/Makefile b/libs/libssh/Makefile
index 21d03c7fe..871539442 100644
--- a/libs/libssh/Makefile
+++ b/libs/libssh/Makefile
@@ -50,7 +50,7 @@ CMAKE_OPTIONS += \
-DWITH_GSSAPI:BOOL=OFF \
-DWITH_LIBZ:BOOL=ON \
-DWITH_NACL:BOOL=OFF \
- -DWITH_PCAP:BOOL=OFF \
+ -DWITH_PCAP:BOOL=ON \
-DWITH_SERVER:BOOL=ON \
-DWITH_SFTP:BOOL=ON \
-UWITH_STACK_CLASH_PROTECTION \
@@ -60,6 +60,26 @@ CMAKE_OPTIONS += \
-UWITH_STACK_PROTECTOR_STRONG \
-DWITH_STACK_PROTECTOR_STRONG=0 \
-DHAVE_WORDS_BIGENDIAN=$(if $(CONFIG_BIG_ENDIAN),1,0)
+ -DWITH_SSH1:BOOL=OFF \
+ -DWITH_TESTING:BOOL=OFF \
+ -DWITH_STATIC_LIB:BOOL=ON \
+
+ifeq ($(CONFIG_BIG_ENDIAN),y)
+CMAKE_OPTIONS += -DHAVE_WORDS_BIGENDIAN=1
+else
+CMAKE_OPTIONS += -DHAVE_WORDS_BIGENDIAN=0
+endif
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include/libssh/
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libssh/* $(1)/usr/include/libssh/
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh* $(1)/usr/lib/
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
+endef
define Package/libssh/install
$(INSTALL_DIR) $(1)/usr/lib