Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -406,6 +406,7 @@ SUBDIR += openca-tools-forked SUBDIR += opencdk SUBDIR += openconnect + SUBDIR += openconnect-gui SUBDIR += opencryptoki SUBDIR += openct SUBDIR += openiked Index: head/security/openconnect-gui/Makefile =================================================================== --- head/security/openconnect-gui/Makefile +++ head/security/openconnect-gui/Makefile @@ -0,0 +1,33 @@ +# Created by: Piotr Kubaj +# $FreeBSD$ + +PORTNAME= openconnect-gui +PORTVERSION= 1.4.1 +DISTVERSIONPREFIX=v +CATEGORIES= security + +MAINTAINER= pkubaj@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 Index: head/security/openconnect-gui/distinfo =================================================================== --- head/security/openconnect-gui/distinfo +++ head/security/openconnect-gui/distinfo @@ -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 Index: head/security/openconnect-gui/files/patch-src_vpninfo.h =================================================================== --- head/security/openconnect-gui/files/patch-src_vpninfo.h +++ head/security/openconnect-gui/files/patch-src_vpninfo.h @@ -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 + #endif +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + #define SOCKET int + #endif + Index: head/security/openconnect-gui/files/patch-src_vpninfo.cpp =================================================================== --- head/security/openconnect-gui/files/patch-src_vpninfo.cpp +++ head/security/openconnect-gui/files/patch-src_vpninfo.cpp @@ -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 Index: head/security/openconnect-gui/pkg-descr =================================================================== --- head/security/openconnect-gui/pkg-descr +++ head/security/openconnect-gui/pkg-descr @@ -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