mosh: fix path to /var/run/motd.dynamic

This commit is contained in:
Leonid Pliushch 2019-03-02 14:52:46 +02:00
parent 3e909df7ab
commit 85cf56dcf3
2 changed files with 15 additions and 1 deletions

View File

@ -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"

View File

@ -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");