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.

116 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:=1
  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_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_BUILD_DEPENDS:=protobuf/host
  21. PKG_USE_MIPS16:=0
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/mosh/Default
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=Mosh mobile shell
  27. DEPENDS:=+libncursesw +libopenssl +protobuf
  28. URL:=https://mosh.org/
  29. endef
  30. define Package/mosh-client
  31. $(call Package/mosh/Default)
  32. TITLE+= (client)
  33. endef
  34. define Package/mosh-server
  35. $(call Package/mosh/Default)
  36. TITLE+= (server)
  37. endef
  38. define Package/mosh-full
  39. $(call Package/mosh/Default)
  40. TITLE+= (full)
  41. DEPENDS:= \
  42. +mosh-client \
  43. +mosh-server \
  44. +perlbase-essential \
  45. +perlbase-socket \
  46. +perlbase-xsloader \
  47. +perlbase-getopt \
  48. +perlbase-errno \
  49. +perlbase-config \
  50. +perlbase-io \
  51. +perlbase-symbol \
  52. +perlbase-selectsaver \
  53. +perlbase-posix \
  54. +perlbase-autoloader \
  55. +perlbase-fcntl \
  56. +perlbase-tie
  57. endef
  58. define Package/mosh/Default/description
  59. Mosh is a remote terminal application that allows roaming, supports
  60. intermittent connectivity, and provides intelligent local echo and line
  61. editing of user keystrokes.
  62. endef
  63. define Package/mosh-client/description
  64. $(call Package/mosh/Default/description)
  65. This is a mosh client.
  66. endef
  67. define Package/mosh-server/description
  68. $(call Package/mosh/Default/description)
  69. This is a mosh server.
  70. endef
  71. define Package/mosh-full/description
  72. $(call Package/mosh/Default/description)
  73. This is a full package with perl wrapper script
  74. endef
  75. CONFIGURE_ARGS += \
  76. --disable-compile-warnings \
  77. --disable-hardening \
  78. --without-utempter
  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))