diff options
Diffstat (limited to 'security/truecrypt/Makefile')
-rw-r--r-- | security/truecrypt/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/security/truecrypt/Makefile b/security/truecrypt/Makefile new file mode 100644 index 000000000000..5afbe16a2d09 --- /dev/null +++ b/security/truecrypt/Makefile @@ -0,0 +1,84 @@ +# New ports collection makefile for: truecrypt +# Date created: 9 May 2011 +# Whom: Ryan Steinmetz +# +# $FreeBSD$ + +PORTNAME= truecrypt +PORTVERSION= 7.0a +CATEGORIES= security +MASTER_SITES= SF/wxwindows/${WX_VER}/:wxwidgets \ + ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/:rsa +DISTFILES= ${TC_SRCFILE}:tc \ + wxWidgets-${WX_VER}.tar.gz:wxwidgets \ + pkcs11.h:rsa \ + pkcs11f.h:rsa \ + pkcs11t.h:rsa +EXTRACT_ONLY= ${TC_SRCFILE} wxWidgets-${WX_VER}.tar.gz + +MAINTAINER= rpsfa@rit.edu +COMMENT= Free open-source disk encryption software + +BUILD_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod \ + nasm:${PORTSDIR}/devel/nasm +LIB_DEPENDS= fuse.2:${PORTSDIR}/sysutils/fusefs-libs +RUN_DEPENDS= ${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod + +WRKSRC= ${WRKDIR}/truecrypt-${PORTVERSION}-source + +USE_GMAKE= yes +USE_ICONV= yes +RESTRICTED= Downloading requires acceptance of license agreement +NO_CDROM= Distribution requires acceptance of license agreement +NO_PACKAGE= Distribution requires acceptance of license agreement + +TC_SRCFILE= TrueCrypt_${PORTVERSION}_Source.tar.gz +WX_VER= 2.8.12 + +LICENSE_FILE= ${WRKSRC}/License.txt + +PLIST_FILES= bin/truecrypt +.if !defined(NOPORTDOCS) +PLIST_FILES+= %%DOCSDIR%%/TrueCrypt\ User\ Guide.pdf +PLIST_FILES+= %%DOCSDIR%%/License.txt +PLIST_DIRS= %%DOCSDIR%% +.endif + +.include <bsd.port.pre.mk> + +.if (!exists(${DISTDIR}/${TC_SRCFILE})) +DISTFILE_INSTRUCTIONS=\n\ +Due to licensing restrictions, certain files must be fetched manually.\n\n\ +Please visit http://www.truecrypt.org/downloads2 with a web browser and accept the\ +License Agreement.\n\ +Select the Mac OS X / Linux (.tar.gz) version\n\n\ +Place the downloaded file into ${DISTDIR} and rename it to ${TC_SRCFILE}\n\n\ +Then, please restart the build.\n\n +.endif + +pre-fetch: +.if defined(DISTFILE_INSTRUCTIONS) + @${PRINTF} "${DISTFILE_INSTRUCTIONS}" + @exit 1 +.endif + +do-build: + @${MKDIR} ${WRKDIR}/rsa + @${CP} ${DISTDIR}/pkcs11.h ${WRKDIR}/rsa + @${CP} ${DISTDIR}/pkcs11t.h ${WRKDIR}/rsa + @${CP} ${DISTDIR}/pkcs11f.h ${WRKDIR}/rsa + cd ${WRKSRC} && ${GMAKE} NOGUI=1 PKCS11_INC=${WRKDIR}/rsa WX_ROOT=${WRKDIR}/wxWidgets-${WX_VER} wxbuild + cd ${WRKSRC} && ${GMAKE} NOGUI=1 WXSTATIC=1 PKCS11_INC=${WRKDIR}/rsa + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/Main/truecrypt ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/License.txt ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/Release/Setup\ Files/TrueCrypt\ User\ Guide.pdf ${DOCSDIR} +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |