diff --git a/packages/mosh/build.sh b/packages/mosh/build.sh index d8eca5a30..3c7cc75c5 100644 --- a/packages/mosh/build.sh +++ b/packages/mosh/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://mosh.org TERMUX_PKG_DESCRIPTION="Mobile shell that supports roaming and intelligent local echo" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=1.3.2 -TERMUX_PKG_REVISION=9 +TERMUX_PKG_REVISION=10 TERMUX_PKG_SHA256=da600573dfa827d88ce114e0fed30210689381bbdcff543c931e4d6a2e851216 TERMUX_PKG_SRCURL=https://github.com/mobile-shell/mosh/releases/download/mosh-${TERMUX_PKG_VERSION}/mosh-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="libandroid-support, libprotobuf, ncurses, openssl, openssh, libutil" diff --git a/packages/mosh/mosh-server.cc.patch b/packages/mosh/mosh-server.cc.patch new file mode 100644 index 000000000..c15a39ee0 --- /dev/null +++ b/packages/mosh/mosh-server.cc.patch @@ -0,0 +1,14 @@ +diff -uNr mosh-1.3.2/src/frontend/mosh-server.cc mosh-1.3.2.mod/src/frontend/mosh-server.cc +--- mosh-1.3.2/src/frontend/mosh-server.cc 2017-07-23 00:14:53.000000000 +0300 ++++ mosh-1.3.2.mod/src/frontend/mosh-server.cc 2019-03-01 22:37:18.009498882 +0200 +@@ -562,8 +562,8 @@ + // this always happens. + // XXX Hackish knowledge of Ubuntu PAM configuration. + // But this seems less awful than build-time detection with autoconf. +- if (!print_motd("/run/motd.dynamic")) { +- print_motd("/var/run/motd.dynamic"); ++ if (!print_motd("@TERMUX_PREFIX@/run/motd.dynamic")) { ++ print_motd("@TERMUX_PREFIX@/var/run/motd.dynamic"); + } + // Always print traditional /etc/motd. + print_motd("/etc/motd");