Browse Source

libssh: fix path to file 'ssh_config'

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
03b4c3fed0
  1. 1
      packages/libssh/build.sh
  2. 12
      packages/libssh/fix-ssh_config-path.patch

1
packages/libssh/build.sh

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://www.libssh.org/
TERMUX_PKG_DESCRIPTION="Tiny C SSH library"
TERMUX_PKG_VERSION=0.7.5
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://git.libssh.org/projects/libssh.git/snapshot/libssh-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=ff914e2ec6596badec453efaa63ef68c82c60074466f951167a4c60e49903336
TERMUX_PKG_DEPENDS="openssl"

12
packages/libssh/fix-ssh_config-path.patch

@ -0,0 +1,12 @@
diff -uNr libssh-0.7.5/src/options.c libssh-0.7.5.mod/src/options.c
--- libssh-0.7.5/src/options.c 2017-04-13 17:33:04.000000000 +0300
+++ libssh-0.7.5.mod/src/options.c 2017-09-12 11:16:10.212992453 +0300
@@ -1232,7 +1232,7 @@
goto out;
}
if (filename == NULL) {
- r = ssh_config_parse_file(session, "/etc/ssh/ssh_config");
+ r = ssh_config_parse_file(session, "@TERMUX_PREFIX@/etc/ssh/ssh_config");
}
out:
Loading…
Cancel
Save