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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://mosh.org
/
16 PKG_HASH
:=872e4b134e5df29c8933dff12350785054d2fd2839b5ae6b5587b14db1465ddd
18 PKG_MAINTAINER
:=Rosen Penev
<rosenp@gmail.com
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
24 PKG_BUILD_DEPENDS
:=protobuf
/host
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/mosh
/Default
31 TITLE
:=Mosh mobile
shell
32 DEPENDS
:=+libncursesw
+libopenssl
+protobuf
33 URL
:=https
://mosh.org
/
36 define Package
/mosh-client
37 $(call Package
/mosh
/Default
)
41 define Package
/mosh-server
42 $(call Package
/mosh
/Default
)
46 define Package
/mosh-full
47 $(call Package
/mosh
/Default
)
52 +perlbase-autoloader \
60 +perlbase-selectsaver \
69 define Package
/mosh
/Default
/description
70 Mosh is a remote terminal application that allows roaming
, supports
71 intermittent connectivity
, and provides intelligent local echo and line
72 editing of user keystrokes.
75 define Package
/mosh-client
/description
76 $(call Package
/mosh
/Default
/description
)
77 This is a mosh client.
80 define Package
/mosh-server
/description
81 $(call Package
/mosh
/Default
/description
)
82 This is a mosh server.
85 define Package
/mosh-full
/description
86 $(call Package
/mosh
/Default
/description
)
87 This is a full package with perl wrapper script
91 --disable-compile-warnings \
96 ac_cv_have_decl_ffs
=yes
98 TARGET_CXXFLAGS
+= -ffunction-sections
-fdata-sections
-flto
-std
=c
++11
99 TARGET_LDFLAGS
+= -Wl
,--gc-sections
-lncurses
101 define Package
/mosh-client
/install
102 $(INSTALL_DIR
) $(1)/usr
/bin
103 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mosh-client
$(1)/usr
/bin
/
106 define Package
/mosh-server
/install
107 $(INSTALL_DIR
) $(1)/usr
/bin
108 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mosh-server
$(1)/usr
/bin
/
111 define Package
/mosh-full
/install
112 $(INSTALL_DIR
) $(1)/usr
/bin
113 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mosh
$(1)/usr
/bin
/
116 $(eval
$(call BuildPackage
,mosh-client
))
117 $(eval
$(call BuildPackage
,mosh-server
))
118 $(eval
$(call BuildPackage
,mosh-full
))