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

Collapse All | Expand All

(-)security/veracrypt/Makefile (+82 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	veracrypt
4
PORTVERSION=	1.19
5
CATEGORIES=	security
6
MASTER_SITES=	GH:vc \
7
		SF/wxwindows/${WX_VER}/:wxwidgets
8
DISTNAME=	${VC_PROJECT}_${GH_TAGNAME}
9
DISTFILES=	${GH_PROJECT}-${GH_TAGNAME}.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
# multi-licensed under Apache License 2.0 and
16
# the TrueCrypt License version 3.0
17
LICENSE=	VeraCrypt
18
LICENSE_NAME=	VeraCrypt
19
LICENSE_FILE=	${WRKSRC}/License.txt
20
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
21
22
BUILD_DEPENDS=	nasm:devel/nasm
23
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	veracrypt
26
GH_PROJECT=	VeraCrypt
27
GH_TAGNAME=	100b79ddfa3c2ecbe29cc1c89277e7e109778094
28
29
USES=		desktop-file-utils fuse gmake iconv pkgconfig
30
31
WRKSRC=		${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME}/src
32
33
WX_VER=		3.0.2
34
35
PLIST_FILES=	bin/veracrypt
36
37
OPTIONS_DEFINE=	X11 DOCS
38
X11_DESC=	With GUI (depends on X)
39
40
.include <bsd.port.options.mk>
41
42
GITHUB_MUST_SET_DISTNAME=	no
43
44
.if ${PORT_OPTIONS:MDOCS}
45
PLIST_FILES+=	%%DOCSDIR%%/VeraCrypt\ User\ Guide.pdf
46
PLIST_FILES+=	%%DOCSDIR%%/License.txt
47
.endif
48
49
.if ${PORT_OPTIONS:MX11}
50
USE_GNOME=	gtk30
51
NOGUI=
52
PLIST_FILES+=	share/applications/veracrypt.desktop
53
.else
54
NOGUI=		NOGUI=1
55
.endif
56
57
post-patch:
58
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
59
		< ${FILESDIR}/veracrypt.desktop \
60
		> ${WRKSRC}/veracrypt.desktop
61
62
do-build:
63
	@${ECHO_MSG} "===>  Building for wxWidgets dependency"
64
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${NOGUI} WX_ROOT=${WRKDIR}/wxWidgets-${WX_VER} wxbuild)
65
	@${ECHO_MSG} "===>  Building for ${PKGNAME}"
66
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${NOGUI} WXSTATIC=1)
67
68
do-install:
69
	${INSTALL_PROGRAM} ${WRKSRC}/Main/veracrypt ${STAGEDIR}${PREFIX}/bin
70
.if ${PORT_OPTIONS:MDOCS}
71
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
72
	${INSTALL_DATA} ${WRKSRC}/License.txt ${STAGEDIR}${DOCSDIR}
73
	${INSTALL_DATA} ${WRKSRC}/Release/Setup\ Files/VeraCrypt\ User\ Guide.pdf ${STAGEDIR}${DOCSDIR}
74
.endif
75
76
post-install:
77
.if ${PORT_OPTIONS:MX11}
78
	${INSTALL_DATA} ${WRKSRC}/veracrypt.desktop \
79
		${STAGEDIR}${PREFIX}/share/applications
80
.endif
81
82
.include <bsd.port.mk>
(-)security/veracrypt/distinfo (+5 lines)
Line 0 Link Here
1
TIMESTAMP = 1492933873
2
SHA256 (VeraCrypt-100b79ddfa3c2ecbe29cc1c89277e7e109778094.tar.gz) = 7748e16bd15b1407bc73091a61b531bd2a0f983dfc1145c52a7ffa30c96898b4
3
SIZE (VeraCrypt-100b79ddfa3c2ecbe29cc1c89277e7e109778094.tar.gz) = 24159870
4
SHA256 (wxWidgets-3.0.2.tar.bz2) = 346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d
5
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: https://www.idrix.fr/Root/content/category/7/32/60/
(-)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