You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libssh
  9. PKG_VERSION:=0.9.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.libssh.org/files/0.9/
  13. PKG_HASH:=150897a569852ac05aac831dc417a7ba8e610c86ca2e0154a99c6ade2486226b
  14. PKG_MAINTAINER:=Mislav Novakovic <mislav.novakovic@sartura.hr>
  15. PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:libssh:libssh
  18. CMAKE_INSTALL:=1
  19. CMAKE_BINARY_SUBDIR:=build
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_USE_MIPS16:=0
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/cmake.mk
  24. define Package/libssh
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. URL:=$(PKG_SOURCE_URL)
  28. TITLE:=SSH library
  29. DEPENDS:=+libpthread +librt +zlib +libopenssl
  30. endef
  31. define Package/libssh/description
  32. libssh is a mulitplatform C library implementing the SSHv2 and SSHv1 protocol
  33. for client and server implementations.
  34. endef
  35. CMAKE_OPTIONS = \
  36. -DHAVE_STRTOULL=1 \
  37. -DHAVE_GETADDRINFO=1 \
  38. -DHAVE_TERMIOS_H=1 \
  39. -DWITH_EXAMPLES:BOOL=OFF \
  40. -DWITH_GCRYPT:BOOL=OFF \
  41. -DWITH_GSSAPI:BOOL=OFF \
  42. -DWITH_LIBZ:BOOL=ON \
  43. -DWITH_NACL:BOOL=OFF \
  44. -DWITH_PCAP:BOOL=OFF \
  45. -DWITH_SERVER:BOOL=ON \
  46. -DWITH_SFTP:BOOL=ON \
  47. -UWITH_STACK_CLASH_PROTECTION \
  48. -DWITH_STACK_CLASH_PROTECTION=0 \
  49. -UWITH_STACK_PROTECTOR \
  50. -DWITH_STACK_PROTECTOR=0 \
  51. -UWITH_STACK_PROTECTOR_STRONG \
  52. -DWITH_STACK_PROTECTOR_STRONG=0 \
  53. -DHAVE_WORDS_BIGENDIAN=$(if $(CONFIG_BIG_ENDIAN),1,0)
  54. define Package/libssh/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libssh* $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libssh))