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.

115 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_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/mosh/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Mosh mobile shell
  26. DEPENDS:=+libncursesw +libopenssl +protobuf
  27. URL:=https://mosh.org/
  28. endef
  29. define Package/mosh-client
  30. $(call Package/mosh/Default)
  31. TITLE+= (client)
  32. endef
  33. define Package/mosh-server
  34. $(call Package/mosh/Default)
  35. TITLE+= (server)
  36. endef
  37. define Package/mosh-full
  38. $(call Package/mosh/Default)
  39. TITLE+= (full)
  40. DEPENDS:= \
  41. +mosh-client \
  42. +mosh-server \
  43. +perlbase-essential \
  44. +perlbase-socket \
  45. +perlbase-xsloader \
  46. +perlbase-getopt \
  47. +perlbase-errno \
  48. +perlbase-config \
  49. +perlbase-io \
  50. +perlbase-symbol \
  51. +perlbase-selectsaver \
  52. +perlbase-posix \
  53. +perlbase-autoloader \
  54. +perlbase-fcntl \
  55. +perlbase-tie
  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. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto -std=c++11
  79. TARGET_LDFLAGS += -Wl,--gc-sections -lncurses
  80. define Package/mosh-client/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-client $(1)/usr/bin/
  83. endef
  84. define Package/mosh-server/install
  85. $(INSTALL_DIR) $(1)/usr/bin
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh-server $(1)/usr/bin/
  87. endef
  88. define Package/mosh-full/install
  89. $(INSTALL_DIR) $(1)/usr/bin
  90. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mosh $(1)/usr/bin/
  91. endef
  92. $(eval $(call BuildPackage,mosh-client))
  93. $(eval $(call BuildPackage,mosh-server))
  94. $(eval $(call BuildPackage,mosh-full))