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.

118 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-autoloader \
  43. +perlbase-config \
  44. +perlbase-errno \
  45. +perlbase-essential \
  46. +perlbase-fcntl \
  47. +perlbase-getopt \
  48. +perlbase-io \
  49. +perlbase-posix \
  50. +perlbase-selectsaver \
  51. +perlbase-socket \
  52. +perlbase-symbol \
  53. +perlbase-text \
  54. +perlbase-tie \
  55. +perlbase-xsloader
  56. endef
  57. define Package/mosh/Default/description
  58. Mosh is a remote terminal application that allows roaming, supports
  59. intermittent connectivity, and provides intelligent local echo and line
  60. editing of user keystrokes.
  61. endef
  62. define Package/mosh-client/description
  63. $(call Package/mosh/Default/description)
  64. This is a mosh client.
  65. endef
  66. define Package/mosh-server/description
  67. $(call Package/mosh/Default/description)
  68. This is a mosh server.
  69. endef
  70. define Package/mosh-full/description
  71. $(call Package/mosh/Default/description)
  72. This is a full package with perl wrapper script
  73. endef
  74. CONFIGURE_ARGS += \
  75. --disable-compile-warnings \
  76. --disable-hardening \
  77. --without-utempter
  78. CONFIGURE_VARS += \
  79. ac_cv_have_decl_ffs=yes
  80. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto -std=c++11
  81. TARGET_LDFLAGS += -Wl,--gc-sections -lncurses
  82. define Package/mosh-client/install
  83. $(INSTALL_DIR) $(1)/usr/bin
  84. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-client $(1)/usr/bin/
  85. endef
  86. define Package/mosh-server/install
  87. $(INSTALL_DIR) $(1)/usr/bin
  88. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-server $(1)/usr/bin/
  89. endef
  90. define Package/mosh-full/install
  91. $(INSTALL_DIR) $(1)/usr/bin
  92. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh $(1)/usr/bin/
  93. endef
  94. $(eval $(call BuildPackage,mosh-client))
  95. $(eval $(call BuildPackage,mosh-server))
  96. $(eval $(call BuildPackage,mosh-full))