svn commit: r432072 - in head/security: . openconnect-gui openconnect-gui/files

Nikolai Lifanov lifanov at FreeBSD.org
Sat Jan 21 18:57:00 UTC 2017


Author: lifanov
Date: Sat Jan 21 18:56:58 2017
New Revision: 432072
URL: https://svnweb.freebsd.org/changeset/ports/432072

Log:
  add security/openconnect-gui: Graphical Openconnect Client
  
  PR:		212879
  Submitted by:	Piotr Kubaj <pkubaj at anongoth.pl>
  Reviewed by:	matthew
  Approved by:	matthew (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9256

Added:
  head/security/openconnect-gui/
  head/security/openconnect-gui/Makefile   (contents, props changed)
  head/security/openconnect-gui/distinfo   (contents, props changed)
  head/security/openconnect-gui/files/
  head/security/openconnect-gui/files/patch-src_vpninfo.cpp   (contents, props changed)
  head/security/openconnect-gui/files/patch-src_vpninfo.h   (contents, props changed)
  head/security/openconnect-gui/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Sat Jan 21 18:48:35 2017	(r432071)
+++ head/security/Makefile	Sat Jan 21 18:56:58 2017	(r432072)
@@ -406,6 +406,7 @@
     SUBDIR += openca-tools-forked
     SUBDIR += opencdk
     SUBDIR += openconnect
+    SUBDIR += openconnect-gui
     SUBDIR += opencryptoki
     SUBDIR += openct
     SUBDIR += openiked

Added: head/security/openconnect-gui/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openconnect-gui/Makefile	Sat Jan 21 18:56:58 2017	(r432072)
@@ -0,0 +1,33 @@
+# Created by: Piotr Kubaj <pkubaj at anongoth.pl>
+# $FreeBSD$
+
+PORTNAME=	openconnect-gui
+PORTVERSION=	1.4.1
+DISTVERSIONPREFIX=v
+CATEGORIES=	security
+
+MAINTAINER=	pkubaj at anongoth.pl
+COMMENT=	Graphical OpenConnect client
+
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	openconnect:security/openconnect
+LIB_DEPENDS=	libgnutls.so:security/gnutls
+RUN_DEPENDS=	openconnect:security/openconnect
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	${PORTNAME:C/-gui//}
+
+USES=		cmake pkgconfig
+USE_QT5=	buildtools_build concurrent core gui network qmake_build widgets
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+PLIST_FILES=	bin/openconnect-gui
+
+do-install:
+	${MV} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/security/openconnect-gui/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openconnect-gui/distinfo	Sat Jan 21 18:56:58 2017	(r432072)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1484925231
+SHA256 (openconnect-openconnect-gui-v1.4.1_GH0.tar.gz) = 5f609e10eafc8885699e503c1dca9d9154d18741cfd09c1222d05b8af448c1d1
+SIZE (openconnect-openconnect-gui-v1.4.1_GH0.tar.gz) = 10026785

Added: head/security/openconnect-gui/files/patch-src_vpninfo.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openconnect-gui/files/patch-src_vpninfo.cpp	Sat Jan 21 18:56:58 2017	(r432072)
@@ -0,0 +1,11 @@
+--- src/vpninfo.cpp.orig	2016-09-21 11:15:03 UTC
++++ src/vpninfo.cpp
+@@ -427,6 +427,8 @@ int VpnInfo::connect()
+     const QString osName{"mac-intel"};
+ #elif defined Q_OS_LINUX
+     const QString osName = QString("linux%1").arg(QSysInfo::buildCpuArchitecture() == "i386" ? "" : "-64").toStdString().c_str();
++#elif defined Q_OS_FREEBSD
++    const QString osName = QString("freebsd%1").arg(QSysInfo::buildCpuArchitecture() == "i386" ? "" : "-64").toStdString().c_str();
+ #else
+ #error Define OS string of other platforms...
+ #endif

Added: head/security/openconnect-gui/files/patch-src_vpninfo.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openconnect-gui/files/patch-src_vpninfo.h	Sat Jan 21 18:56:58 2017	(r432072)
@@ -0,0 +1,11 @@
+--- src/vpninfo.h.orig	2016-08-28 20:11:26 UTC
++++ src/vpninfo.h
+@@ -23,7 +23,7 @@
+ #ifdef _WIN32
+ #include <winsock2.h>
+ #endif
+-#ifdef __linux__
++#if defined(__linux__) || defined(__FreeBSD__)
+ #define SOCKET int
+ #endif
+ 

Added: head/security/openconnect-gui/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openconnect-gui/pkg-descr	Sat Jan 21 18:56:58 2017	(r432072)
@@ -0,0 +1,4 @@
+This is the GUI client for openconnect VPN. This client is in beta testing 
+phase. It cannot be assumed to provide the required security.
+
+WWW: https://github.com/openconnect/openconnect-gui


More information about the svn-ports-head mailing list