mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 20:36:30 -04:00
add security/openconnect-gui: Graphical Openconnect Client
PR: 212879 Submitted by: Piotr Kubaj <pkubaj@anongoth.pl> Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D9256
This commit is contained in:
parent
262cefb037
commit
a377a91195
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432072
6 changed files with 63 additions and 0 deletions
|
@ -406,6 +406,7 @@
|
|||
SUBDIR += openca-tools-forked
|
||||
SUBDIR += opencdk
|
||||
SUBDIR += openconnect
|
||||
SUBDIR += openconnect-gui
|
||||
SUBDIR += opencryptoki
|
||||
SUBDIR += openct
|
||||
SUBDIR += openiked
|
||||
|
|
33
security/openconnect-gui/Makefile
Normal file
33
security/openconnect-gui/Makefile
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Created by: Piotr Kubaj <pkubaj@anongoth.pl>
|
||||
# $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 <bsd.port.mk>
|
3
security/openconnect-gui/distinfo
Normal file
3
security/openconnect-gui/distinfo
Normal file
|
@ -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
|
11
security/openconnect-gui/files/patch-src_vpninfo.cpp
Normal file
11
security/openconnect-gui/files/patch-src_vpninfo.cpp
Normal file
|
@ -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
|
11
security/openconnect-gui/files/patch-src_vpninfo.h
Normal file
11
security/openconnect-gui/files/patch-src_vpninfo.h
Normal file
|
@ -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
|
||||
|
4
security/openconnect-gui/pkg-descr
Normal file
4
security/openconnect-gui/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue