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