libssh: fix path to file 'ssh_config'
authorLeonid Plyushch <leonid.plyushch@gmail.com>
Tue, 12 Sep 2017 09:21:32 +0000 (12:21 +0300)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 12 Sep 2017 11:47:50 +0000 (13:47 +0200)
packages/libssh/build.sh
packages/libssh/fix-ssh_config-path.patch [new file with mode: 0644]

index 94a4d18..4b9821e 100644 (file)
@@ -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"
diff --git a/packages/libssh/fix-ssh_config-path.patch b/packages/libssh/fix-ssh_config-path.patch
new file mode 100644 (file)
index 0000000..e5292e9
--- /dev/null
@@ -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: