View | Details | Raw Unified | Return to bug 217775 | Differences between
and this patch

Collapse All | Expand All

(-)security/veracrypt/Makefile (+75 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	veracrypt
4
PORTVERSION=	100b79ddfa3c2ecbe29cc1c89277e7e109778094
5
CATEGORIES=	security
6
MASTER_SITES=	GH:vc \
7
		SF/wxwindows/${WX_VER}/:wxwidgets
8
DISTNAME=	${VC_PROJECT}_${PORTVERSION}
9
DISTFILES=	${GH_PROJECT}-${PORTVERSION}.tar.gz:vc \
10
		wxWidgets-${WX_VER}.tar.bz2:wxwidgets
11
12
MAINTAINER=	steveroggenkamps@gmail.com
13
COMMENT=	Free open-source disk encryption software based on Truecrypt
14
15
USE_GITHUB=	yes
16
GH_ACCOUNT=	veracrypt
17
GH_PROJECT=	VeraCrypt
18
GH_TAGNAME=	100b79ddfa3c2ecbe29cc1c89277e7e109778094
19
20
LICENSE_FILE=	${WRKSRC}/License.txt
21
22
USES=		desktop-file-utils fuse gmake iconv pkgconfig
23
24
WRKSRC=		${WRKDIR}/${GH_PROJECT}-${PORTVERSION}/src
25
26
WX_VER=		3.0.2
27
28
PLIST_FILES=	bin/veracrypt
29
30
OPTIONS_DEFINE=	X11 DOCS
31
X11_DESC=	With GUI (depends on X)
32
33
.include <bsd.port.options.mk>
34
35
GITHUB_MUST_SET_DISTNAME=	no
36
37
.if ${PORT_OPTIONS:MDOCS}
38
PLIST_FILES+=	%%DOCSDIR%%/VeraCrypt\ User\ Guide.pdf
39
PLIST_FILES+=	%%DOCSDIR%%/License.txt
40
.endif
41
42
.if ${PORT_OPTIONS:MX11}
43
USE_GNOME=	gtk30
44
NOGUI=
45
PLIST_FILES+=	share/applications/veracrypt.desktop
46
.else
47
NOGUI=		NOGUI=1
48
.endif
49
50
post-patch:
51
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
52
		< ${FILESDIR}/veracrypt.desktop \
53
		> ${WRKSRC}/veracrypt.desktop
54
55
do-build:
56
	@${ECHO_MSG} "===>  Building for wxWidgets dependency"
57
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${NOGUI} WX_ROOT=${WRKDIR}/wxWidgets-${WX_VER} wxbuild)
58
	@${ECHO_MSG} "===>  Building for ${PKGNAME}"
59
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${NOGUI} WXSTATIC=1)
60
61
do-install:
62
	${INSTALL_PROGRAM} ${WRKSRC}/Main/veracrypt ${STAGEDIR}${PREFIX}/bin
63
.if ${PORT_OPTIONS:MDOCS}
64
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
65
	${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}
66
	${INSTALL_DATA} ${WRKSRC}/Release/Setup\ Files/VeraCrypt\ User\ Guide.pdf ${STAGEDIR}${DOCSDIR}
67
.endif
68
69
post-install:
70
.if ${PORT_OPTIONS:MX11}
71
	${INSTALL_DATA} ${WRKSRC}/veracrypt.desktop \
72
		${STAGEDIR}${PREFIX}/share/applications
73
.endif
74
75
.include <bsd.port.mk>
(-)security/veracrypt/distinfo (+4 lines)
Line 0 Link Here
1
SHA256 (VeraCrypt-100b79ddfa3c2ecbe29cc1c89277e7e109778094.tar.gz) = 7748e16bd15b1407bc73091a61b531bd2a0f983dfc1145c52a7ffa30c96898b4
2
SIZE (VeraCrypt-100b79ddfa3c2ecbe29cc1c89277e7e109778094.tar.gz) = 24159870
3
SHA256 (wxWidgets-3.0.2.tar.bz2) = 346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d
4
SIZE (wxWidgets-3.0.2.tar.bz2) = 20172909
(-)security/veracrypt/files/no-patch-src-Main-UserInteface.cpp (+18 lines)
Line 0 Link Here
1
--- src/Main/UserInterface.cpp.orig
2
+++ src/Main/UserInterface.cpp
3
@@ -838,12 +838,12 @@ namespace VeraCrypt
4
 #else
5
 		// MIME handler for directory seems to be unavailable through wxWidgets
6
 		wxString desktop = GetTraits()->GetDesktopEnvironment();
7
-		bool xdgOpenPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open"));
8
-		bool nautilusPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/nautilus"));
9
+		bool xdgOpenPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open")) || wxFileName::IsFileExecutable (wxT("/usr/local/bin/xdg-open"));
10
+		bool nautilusPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/nautilus")) || wxFileName::IsFileExecutable (wxT("/usr/local/bin/nautilus"));
11
 
12
 		if (desktop == L"GNOME" || (desktop.empty() && !xdgOpenPresent && nautilusPresent))
13
 		{
14
-			args.push_back ("--no-default-window");
15
+			// args.push_back ("--no-default-window"); // This option causes nautilus not to launch under FreeBSD 11
16
 			args.push_back ("--no-desktop");
17
 			args.push_back (string (path));
18
 			try
(-)security/veracrypt/files/nopatch-src-Makefile (+26 lines)
Line 0 Link Here
1
--- src/Makefile
2
+++ src/Makefile
3
@@ -285,6 +285,24 @@ ifeq "$(shell uname -s)" "FreeBSD"
4
	PLATFORM := FreeBSD
5
	PLATFORM_UNSUPPORTED := 1
6
	C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_FREEBSD
7
+	
8
+	CC := cc
9
+	CXX := c++
10
+
11
+	ifeq "$(SIMD_SUPPORTED)" "1"
12
+		CFLAGS += -msse2 -maes
13
+		CXXFLAGS += -msse2 -maes
14
+
15
+		ifeq "$(origin SSSE3)" "command line"
16
+			CFLAGS += -mssse3
17
+			CXXFLAGS += -mssse3
18
+		endif
19
+
20
+		ifeq "$(origin SSE41)" "command line"
21
+			CFLAGS += -mssse3 -msse4.1
22
+			CXXFLAGS += -mssse3 -msse4.1
23
+		endif
24
+	endif
25
26
 endif
(-)security/veracrypt/files/veracrypt.desktop (+10 lines)
Line 0 Link Here
1
[Desktop Entry]
2
Encoding=UTF-8
3
Name=VeraCrypt
4
GenericName=VeraCrypt
5
Comment=VeraCrypt
6
Exec=/usr/local/bin/veracrypt
7
Icon=veracrypt
8
Terminal=false
9
Type=Application
10
Categories=Encryption;Security;Utility;System;
(-)security/veracrypt/pkg-descr (+15 lines)
Line 0 Link Here
1
Free open-source disk encryption software
2
3
Main Features:
4
* Creates a virtual encrypted disk within a file and mounts it as
5
  a real disk.
6
* Encrypts an entire partition or storage device such as USB flash
7
  drive or hard drive.
8
* Encryption is automatic, real-time (on-the-fly) and transparent.
9
* Parallelization and pipelining allow data to be read and written
10
  as fast as if the drive was not encrypted.
11
* Provides plausible deniability, in case an adversary forces you
12
  to reveal the password:
13
  Hidden volume (steganography) and hidden operating system.
14
15
WWW: http://www.veracrypt.org/
(-)security/veracrypt/pkg-message (+16 lines)
Line 0 Link Here
1
===========================================================
2
*** WARNING ***
3
4
VeraCrypt is not offically supported under FreeBSD, however
5
it does seem to function fine under certain conditions.
6
7
Until VeraCrypt is officially supported under FreeBSD, this
8
port should be considered experimental.  VeraCrypt's website
9
cites that system instability is possible.
10
11
Please ensure that the fusefs kmod is loaded prior to use:
12
13
    $ kldload fuse
14
15
WWW: http://www.truecrypt.org/misc/freebsd
16
===========================================================

Return to bug 217775