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.

117 lines
2.7 KiB

  1. #
  2. # Copyright (C) 2011-2013 Entware
  3. # Copyright (C) 2018 Jakub Tymejczyk <jakub.tymejczyk.pl>
  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:=mosh
  9. PKG_VERSION:=1.3.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://mosh.org/
  13. PKG_HASH:=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_BUILD_DEPENDS:=protobuf/host
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/mosh/Default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Mosh mobile shell
  25. DEPENDS:=+libncursesw +libopenssl +protobuf
  26. URL:=https://mosh.org/
  27. endef
  28. define Package/mosh-client
  29. $(call Package/mosh/Default)
  30. TITLE+= (client)
  31. endef
  32. define Package/mosh-server
  33. $(call Package/mosh/Default)
  34. TITLE+= (server)
  35. endef
  36. define Package/mosh-full
  37. $(call Package/mosh/Default)
  38. TITLE+= (full)
  39. DEPENDS:= \
  40. +mosh-client \
  41. +mosh-server \
  42. +perlbase-essential \
  43. +perlbase-socket \
  44. +perlbase-xsloader \
  45. +perlbase-getopt \
  46. +perlbase-errno \
  47. +perlbase-config \
  48. +perlbase-io \
  49. +perlbase-symbol \
  50. +perlbase-selectsaver \
  51. +perlbase-posix \
  52. +perlbase-autoloader \
  53. +perlbase-fcntl \
  54. +perlbase-tie
  55. endef
  56. define Package/mosh/Default/description
  57. Mosh is a remote terminal application that allows roaming, supports
  58. intermittent connectivity, and provides intelligent local echo and line
  59. editing of user keystrokes.
  60. endef
  61. define Package/mosh-client/description
  62. $(call Package/mosh/Default/description)
  63. This is a mosh client.
  64. endef
  65. define Package/mosh-server/description
  66. $(call Package/mosh/Default/description)
  67. This is a mosh server.
  68. endef
  69. define Package/mosh-full/description
  70. $(call Package/mosh/Default/description)
  71. This is a full package with perl wrapper script
  72. endef
  73. CONFIGURE_ARGS += \
  74. --disable-compile-warnings \
  75. --disable-hardening \
  76. --without-utempter
  77. CONFIGURE_VARS += \
  78. ac_cv_have_decl_ffs=yes
  79. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto -std=c++11
  80. TARGET_LDFLAGS += -Wl,--gc-sections -lncurses
  81. define Package/mosh-client/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-client $(1)/usr/bin/
  84. endef
  85. define Package/mosh-server/install
  86. $(INSTALL_DIR) $(1)/usr/bin
  87. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-server $(1)/usr/bin/
  88. endef
  89. define Package/mosh-full/install
  90. $(INSTALL_DIR) $(1)/usr/bin
  91. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh $(1)/usr/bin/
  92. endef
  93. $(eval $(call BuildPackage,mosh-client))
  94. $(eval $(call BuildPackage,mosh-server))
  95. $(eval $(call BuildPackage,mosh-full))