From owner-svn-ports-head@freebsd.org Sun Feb 10 21:04:36 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A839814DC44E; Sun, 10 Feb 2019 21:04:36 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4AEF76B66D; Sun, 10 Feb 2019 21:04:36 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 328AE1DF92; Sun, 10 Feb 2019 21:04:36 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1AL4aVv046517; Sun, 10 Feb 2019 21:04:36 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1AL4ZxM046516; Sun, 10 Feb 2019 21:04:35 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201902102104.x1AL4ZxM046516@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sun, 10 Feb 2019 21:04:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492644 - in head/deskutils/kdeconnect-kde: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/deskutils/kdeconnect-kde: . files X-SVN-Commit-Revision: 492644 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4AEF76B66D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2019 21:04:37 -0000 Author: tcberner Date: Sun Feb 10 21:04:35 2019 New Revision: 492644 URL: https://svnweb.freebsd.org/changeset/ports/492644 Log: deskutils/kdeconnect-kde: use security/sshpass to pass passwords to sshfs On FreeBSD sshfs does not seem to support the "-o password_stdin" option. Work around this limitation by using security/sshpass. This should be considered a temporary work around until a better solution is found. With this fix sharing of files from the device should finally work. PR: 25303 Submitted by: Stefan Rumetshofer Added: head/deskutils/kdeconnect-kde/files/patch-plugins_sftp_mounter.cpp (contents, props changed) Modified: head/deskutils/kdeconnect-kde/Makefile Modified: head/deskutils/kdeconnect-kde/Makefile ============================================================================== --- head/deskutils/kdeconnect-kde/Makefile Sun Feb 10 21:04:11 2019 (r492643) +++ head/deskutils/kdeconnect-kde/Makefile Sun Feb 10 21:04:35 2019 (r492644) @@ -2,7 +2,7 @@ PORTNAME= kdeconnect-kde DISTVERSION= 1.3.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= deskutils kde MASTER_SITES= KDE/stable/kdeconnect/${DISTVERSION}/src/ DIST_SUBDIR= KDE @@ -15,7 +15,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfakekey.so:x11/libfakekey \ libqca-qt5.so:devel/qca@qt5 -RUN_DEPENDS= sshfs:sysutils/fusefs-sshfs +RUN_DEPENDS= sshpass:security/sshpass \ + sshfs:sysutils/fusefs-sshfs CONFLICTS_INSTALL= kdeconnect-kde-0.7* kdeconnect-kde-kde4-0.7.* Added: head/deskutils/kdeconnect-kde/files/patch-plugins_sftp_mounter.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/kdeconnect-kde/files/patch-plugins_sftp_mounter.cpp Sun Feb 10 21:04:35 2019 (r492644) @@ -0,0 +1,22 @@ +--- plugins/sftp/mounter.cpp.orig 2018-11-06 14:32:08.000000000 +0100 ++++ plugins/sftp/mounter.cpp 2019-01-29 18:43:47.324002000 +0100 +@@ -139,7 +139,7 @@ + << QStringLiteral("-o") << QStringLiteral("gid=") + QString::number(getgid()) + << QStringLiteral("-o") << QStringLiteral("reconnect") + << QStringLiteral("-o") << QStringLiteral("ServerAliveInterval=30") +- << QStringLiteral("-o") << QStringLiteral("password_stdin") ++ << QStringLiteral("-o") << QStringLiteral("ssh_command=sshpass -p ") + np.get("password").toLatin1() + (" ssh") + ; + + m_proc->setProgram(program, arguments); +@@ -148,8 +148,8 @@ + m_proc->start(); + + //qCDebug(KDECONNECT_PLUGIN_SFTP) << "Passing password: " << np.get("password").toLatin1(); +- m_proc->write(np.get(QStringLiteral("password")).toLatin1()); +- m_proc->write("\n"); ++ //m_proc->write(np.get(QStringLiteral("password")).toLatin1()); ++ // m_proc->write("\n"); + + } +