Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2015 15:12:25 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r391073 - in head/net/x2goclient: . files
Message-ID:  <201507011512.t61FCPlY081300@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Jul  1 15:12:24 2015
New Revision: 391073
URL: https://svnweb.freebsd.org/changeset/ports/391073

Log:
  - Update to 4.0.4.0
  - Unbreak
  - Regenerate patches
  
  PR:		201177
  Submitted by:	tkato432@yahoo.com
  Differential Revision:

Modified:
  head/net/x2goclient/Makefile
  head/net/x2goclient/distinfo
  head/net/x2goclient/files/patch-sshmasterconnection.cpp
  head/net/x2goclient/files/patch-sshprocess.cpp
  head/net/x2goclient/files/patch-sshprocess.h

Modified: head/net/x2goclient/Makefile
==============================================================================
--- head/net/x2goclient/Makefile	Wed Jul  1 15:09:52 2015	(r391072)
+++ head/net/x2goclient/Makefile	Wed Jul  1 15:12:24 2015	(r391073)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	x2goclient
-PORTVERSION=	4.0.3.2
+PORTVERSION=	4.0.4.0
 CATEGORIES=	net
 MASTER_SITES=	http://code.x2go.org/releases/source/x2goclient/
 
@@ -11,9 +11,6 @@ COMMENT=	Qt client for the X2Go system
 
 LICENSE=	GPLv2
 
-# http://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=870
-BROKEN=		does not build with new libssh: undefined reference to `ssh_forward_listen'
-
 # Avoid clash with libssh from base
 BUILD_DEPENDS=	${LOCALBASE}/lib/libssh.so:${PORTSDIR}/security/libssh
 LIB_DEPENDS=	libcups.so:${PORTSDIR}/print/cups-client \
@@ -37,7 +34,7 @@ LDAP_QMAKE_ON=		LIBS+="-lX11 -lXpm -lcup
 LDAP_QMAKE_OFF=		LIBS+="-lX11 -lXpm -lcups"
 
 post-patch:
-	@${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" | ${XARGS} \
+	@${FIND} ${WRKSRC}/src -name "*.cpp" -or -name "*.h" | ${XARGS} \
 		${REINPLACE_CMD} -e \
 		's|Q_OS_LINUX|Q_OS_UNIX| ; \
 		 /<linux\/fs.h>/s|^|//| ; \
@@ -57,14 +54,14 @@ do-install:
 		${STAGEDIR}${DESKTOPDIR})
 .for i in 16x16 32x32 48x48 64x64 128x128
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}/apps
-	(cd ${WRKSRC}/icons/${i} && ${INSTALL_DATA} x2goclient.png \
+	(cd ${WRKSRC}/res/img/icons/${i} && ${INSTALL_DATA} x2goclient.png \
 		${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}/apps)
 .endfor
 	@${MKDIR} ${STAGEDIR}${DATADIR}/icons
-	(cd ${WRKSRC}/icons && ${INSTALL_DATA} x2goclient.xpm \
+	(cd ${WRKSRC}/res/img/icons && ${INSTALL_DATA} x2goclient.xpm \
 		${STAGEDIR}${DATADIR}/icons)
 .for i in x2goclient.png x2gosession.png
-	(cd ${WRKSRC}/icons/128x128 && ${INSTALL_DATA} ${i} \
+	(cd ${WRKSRC}/res/img/icons/128x128 && ${INSTALL_DATA} ${i} \
 		${STAGEDIR}${DATADIR}/icons)
 .endfor
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/net/x2goclient/distinfo
==============================================================================
--- head/net/x2goclient/distinfo	Wed Jul  1 15:09:52 2015	(r391072)
+++ head/net/x2goclient/distinfo	Wed Jul  1 15:12:24 2015	(r391073)
@@ -1,2 +1,2 @@
-SHA256 (x2goclient-4.0.3.2.tar.gz) = f65a70463eae3d6d9fe6e4379f4ffacda50080a11f196d2792742f5b67fa0c6f
-SIZE (x2goclient-4.0.3.2.tar.gz) = 1560536
+SHA256 (x2goclient-4.0.4.0.tar.gz) = 86d05ce10039fe0a965cdc55086e00f4f3abc573a96f128b92f87081b7251657
+SIZE (x2goclient-4.0.4.0.tar.gz) = 1571218

Modified: head/net/x2goclient/files/patch-sshmasterconnection.cpp
==============================================================================
--- head/net/x2goclient/files/patch-sshmasterconnection.cpp	Wed Jul  1 15:09:52 2015	(r391072)
+++ head/net/x2goclient/files/patch-sshmasterconnection.cpp	Wed Jul  1 15:12:24 2015	(r391073)
@@ -1,6 +1,6 @@
---- sshmasterconnection.cpp.orig	2011-11-25 21:08:10.000000000 +0900
-+++ sshmasterconnection.cpp	2011-12-20 01:50:14.000000000 +0900
-@@ -25,6 +25,9 @@
+--- src/sshmasterconnection.cpp.orig	2015-05-26 19:13:12 UTC
++++ src/sshmasterconnection.cpp
+@@ -28,6 +28,9 @@
  #include <QDir>
  #include <QTemporaryFile>
  #ifndef Q_OS_WIN
@@ -9,4 +9,16 @@
 +#include <netinet/in.h>
  #include <arpa/inet.h>
  #endif
- 
+ #include <math.h>
+@@ -272,7 +275,11 @@ void SshMasterConnection::addReverseTunn
+         if(!reverseTunnelRequest[i].listen)
+         {
+             reverseTunnelRequest[i].listen=true;
++#if LIBSSH_VERSION_MAJOR == 0 && LIBSSH_VERSION_MINOR <= 6
+             int rc=ssh_forward_listen(my_ssh_session, NULL, reverseTunnelRequest[i].forwardPort, NULL);
++#else
++            int rc=ssh_channel_listen_forward(my_ssh_session, NULL, reverseTunnelRequest[i].forwardPort, NULL);
++#endif
+             if(rc==SSH_OK)
+             {
+                 emit reverseTunnelOk(reverseTunnelRequest[i].creator);

Modified: head/net/x2goclient/files/patch-sshprocess.cpp
==============================================================================
--- head/net/x2goclient/files/patch-sshprocess.cpp	Wed Jul  1 15:09:52 2015	(r391072)
+++ head/net/x2goclient/files/patch-sshprocess.cpp	Wed Jul  1 15:12:24 2015	(r391073)
@@ -1,8 +1,8 @@
---- sshprocess.cpp.orig	2011-11-25 21:08:10.000000000 +0900
-+++ sshprocess.cpp	2011-12-20 01:53:47.000000000 +0900
-@@ -21,6 +21,9 @@
- #include <QTimer>
+--- src/sshprocess.cpp.orig	2015-05-26 19:13:12 UTC
++++ src/sshprocess.cpp
+@@ -24,6 +24,9 @@
  
+ #include <QProcess>
  #ifndef Q_OS_WIN
 +#include <sys/types.h>
 +#include <sys/socket.h>

Modified: head/net/x2goclient/files/patch-sshprocess.h
==============================================================================
--- head/net/x2goclient/files/patch-sshprocess.h	Wed Jul  1 15:09:52 2015	(r391072)
+++ head/net/x2goclient/files/patch-sshprocess.h	Wed Jul  1 15:12:24 2015	(r391073)
@@ -1,6 +1,6 @@
---- sshprocess.h.orig	2011-11-25 21:08:10.000000000 +0900
-+++ sshprocess.h	2011-12-20 01:56:29.000000000 +0900
-@@ -17,6 +17,12 @@
+--- src/sshprocess.h.orig	2015-05-26 19:13:12 UTC
++++ src/sshprocess.h
+@@ -18,6 +18,12 @@
  #ifndef SSHPROCESS_H
  #define SSHPROCESS_H
  
@@ -12,4 +12,4 @@
 +#endif
  #include <libssh/libssh.h>
  #include <QObject>
- 
+ #include <QProcess>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507011512.t61FCPlY081300>