[or-cvs] r15878: TrueCrypt 6.0a. (in incognito/trunk: portage.overlay portage.overlay/app-crypt portage.overlay/app-crypt/truecrypt portage.overlay/app-crypt/truecrypt/files root_overlay/usr/share/applications)

anonym at seul.org anonym at seul.org
Sun Jul 13 17:24:27 UTC 2008


Author: anonym
Date: 2008-07-13 13:24:27 -0400 (Sun, 13 Jul 2008)
New Revision: 15878

Added:
   incognito/trunk/portage.overlay/app-crypt/
   incognito/trunk/portage.overlay/app-crypt/truecrypt/
   incognito/trunk/portage.overlay/app-crypt/truecrypt/Manifest
   incognito/trunk/portage.overlay/app-crypt/truecrypt/files/
   incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.0-bool.patch
   incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch
   incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1a-external-wx.patch
   incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-stop.sh
   incognito/trunk/portage.overlay/app-crypt/truecrypt/truecrypt-6.0a.ebuild
   incognito/trunk/root_overlay/usr/share/applications/truecrypt.desktop
Log:
TrueCrypt 6.0a.


Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/Manifest
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/Manifest	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/Manifest	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,6 @@
+AUX truecrypt-5.0-bool.patch 1032 RMD160 7e3aa621c6b47f92d0837bf7d0c07297bb1490aa SHA1 3cbf86e4fdf47fe4e99c33ffca78b1c5af7499d2 SHA256 66c6d98f2946c1410e635969e1e95a907fdc0d9720eb14d8dd9d474661557da3
+AUX truecrypt-5.1-64bit.patch 601 RMD160 479ea2a3c6809c9b9ea1febfa969fb25d02fd5ad SHA1 1448d11833aca850cebde2b0432c8f97df1fec1d SHA256 db767f5220077f6a97c8f3ba6e439cb27a45642a34004b1302401ad43fca1aee
+AUX truecrypt-5.1a-external-wx.patch 1272 RMD160 c63b166cfd26eebf2b70df9f4152523bc4d10f3c SHA1 5e6a2585ca8923b2af71c327adf3b7c48d9adbc4 SHA256 1c00a403f2be391f2779a9ade2c8f211bc7b7fe6616584568db2f24785afd4ad
+AUX truecrypt-stop.sh 308 RMD160 4b2e6f47520f701324c03b5a43118cc38ee409a3 SHA1 7139ba403e482a4746e1d545115b74760b1438ea SHA256 243a9d1041b291e12ce2065959838f0cfe01484bffac7915991ebeb90d2ccd2c
+DIST truecrypt-6.0a.tar.gz 1686350 RMD160 fafdbe596f1f9cab41917241b1da424635145a00 SHA1 5ebfe6a79620ced63e6eb33f2cbff6dfa5fd57e9 SHA256 dea0ac2f1f6964d7e88f6751fa9f0a89d0dbfb957e9a557e8dee48492d0b4fac
+EBUILD truecrypt-6.0a.ebuild 1800 RMD160 db85daf2959eff6014e835195b2c372ade5f6137 SHA1 13e1547308226f93ac359914a858a5a78deb09dc SHA256 1750068a7312d5acfeeff4672c7f5f3c185114185479cddfbe0efc57cb170c22

Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.0-bool.patch
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.0-bool.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.0-bool.patch	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,32 @@
+
+xwGTK undef BOOL if ODBC is used.
+Next version of xwGTK does not have db support.
+
+---
+
+diff -urNp truecrypt-5.0-source/Common/Crypto.h truecrypt-5.0-source.new/Common/Crypto.h
+--- truecrypt-5.0-source/Common/Crypto.h	2008-02-04 19:15:38.000000000 +0200
++++ truecrypt-5.0-source.new/Common/Crypto.h	2008-02-10 22:40:55.000000000 +0200
+@@ -29,6 +29,10 @@
+ 
+ #include "Tcdefs.h"
+ 
++#ifndef BOOL
++#define BOOL BOOL1
++#endif
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+diff -urNp truecrypt-5.0-source/Makefile truecrypt-5.0-source.new/Makefile
+--- truecrypt-5.0-source/Makefile	2008-02-04 20:19:02.000000000 +0200
++++ truecrypt-5.0-source.new/Makefile	2008-02-10 22:40:34.000000000 +0200
+@@ -42,7 +42,8 @@ export CFLAGS := -W
+ export CXXFLAGS := -Wall
+ 
+ C_CXX_FLAGS := -MMD -I$(BASE_DIR) -I$(BASE_DIR)/Crypto
+ C_CXX_FLAGS += -DBOOL=int -DFALSE=0 -DTRUE=1
++C_CXX_FLAGS += -DBOOL1=int
+ ifeq "$(origin USE64BIT)" "command line"
+ C_CXX_FLAGS += -D__int8=char -D__int16=short -D__int32=int '-D__int64=long'  # Tested in PlatformTest
+ else

Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,14 @@
+--- truecrypt-5.0a-source.org/Makefile	2008-02-04 20:19:02.000000000 +0200
++++ truecrypt-5.0a-source/Makefile	2008-02-13 19:47:58.000000000 +0200
+@@ -42,7 +42,11 @@ export CFLAGS := -W
+ export CXXFLAGS := -Wall
+ 
+ C_CXX_FLAGS := -MMD -I$(BASE_DIR) -I$(BASE_DIR)/Crypto
+ C_CXX_FLAGS += -DBOOL=int -DFALSE=0 -DTRUE=1
++ifeq "$(origin USE64BIT)" "command line"
++C_CXX_FLAGS += -D__int8=char -D__int16=short -D__int32=int '-D__int64=long'  # Tested in PlatformTest
++else
+ C_CXX_FLAGS += -D__int8=char -D__int16=short -D__int32=int '-D__int64=long long'  # Tested in PlatformTest
++endif
+ 
+ export LFLAGS :=

Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1a-external-wx.patch
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1a-external-wx.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-5.1a-external-wx.patch	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,33 @@
+diff -urNp truecrypt-5.1a-source.org/Main/Main.make truecrypt-5.1a-source/Main/Main.make
+--- truecrypt-5.1a-source.org/Main/Main.make	2008-03-11 20:48:42.000000000 +0200
++++ truecrypt-5.1a-source/Main/Main.make	2008-03-21 18:38:43.000000000 +0200
+@@ -70,21 +70,25 @@ CXXFLAGS += -I$(BASE_DIR)/Main
+ 
+ #------ wxWidgets configuration ------
+ 
++WX_CONFIG ?= $(WX_BUILD_DIR)/wx-config
++WX_CONFIG_EXTRA ?= --static
++
+ ifdef TC_NO_GUI
+ WX_CONFIG_LIBS := base
+ else
+ WX_CONFIG_LIBS := adv,core,base
+ endif
++WX_CONFIG_LIBS =
+ 
+ ifeq "$(TC_BUILD_CONFIG)" "Release"
+ 
+-CXXFLAGS += $(shell $(WX_BUILD_DIR)/wx-config --unicode --static --cxxflags)
+-WX_LIBS = $(shell $(WX_BUILD_DIR)/wx-config --unicode --static --libs $(WX_CONFIG_LIBS))
++CXXFLAGS += $(shell $(WX_CONFIG) --unicode $(WX_CONFIG_EXTRA) --cxxflags)
++WX_LIBS = $(shell $(WX_CONFIG) --unicode $(WX_CONFIG_EXTRA) --libs $(WX_CONFIG_LIBS))
+ 
+ else
+ 
+-CXXFLAGS += $(shell $(WX_BUILD_DIR)/wx-config --debug --unicode --static --cxxflags)
+-WX_LIBS = $(shell $(WX_BUILD_DIR)/wx-config --debug --unicode --static --libs $(WX_CONFIG_LIBS))
++CXXFLAGS += $(shell $(WX_CONFIG) --debug --unicode $(WX_CONFIG_EXTRA) --cxxflags)
++WX_LIBS = $(shell $(WX_CONFIG) --debug --unicode $(WX_CONFIG_EXTRA) --libs $(WX_CONFIG_LIBS))
+ 
+ endif
+ 

Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-stop.sh
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-stop.sh	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/files/truecrypt-stop.sh	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,9 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+
+# Try to remove any dm-crypt mappings
+if [ -x /usr/bin/truecrypt ]; then
+	ebegin "Removing truecrypt mappings"
+	! /usr/bin/truecrypt -l > /dev/null 2>&1  || /usr/bin/truecrypt -d
+	eend $?
+fi

Added: incognito/trunk/portage.overlay/app-crypt/truecrypt/truecrypt-6.0a.ebuild
===================================================================
--- incognito/trunk/portage.overlay/app-crypt/truecrypt/truecrypt-6.0a.ebuild	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-crypt/truecrypt/truecrypt-6.0a.ebuild	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,78 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-6.0a.ebuild,v 1.2 2008/07/09 23:00:46 dragonheart Exp $
+
+inherit eutils toolchain-funcs multilib wxwidgets
+
+DESCRIPTION="Free open-source disk encryption software"
+HOMEPAGE="http://www.truecrypt.org/"
+#SRC_URI="TrueCrypt ${PV} Source.tar.gz"
+SRC_URI="${P}.tar.gz"
+
+LICENSE="truecrypt-collective-1.4"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X"
+RESTRICT="fetch"
+
+RDEPEND="sys-fs/fuse
+	=x11-libs/wxGTK-2.8*"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}-source"
+
+pkg_nofetch() {
+	einfo "Please download tar.gz source from:"
+	einfo "http://www.truecrypt.org/downloads2.php"
+	einfo "Then put the file in ${DISTDIR}/${SRC_URI}"
+}
+
+pkg_setup() {
+	WX_GTK_VER="2.8"
+	if use X; then
+		need-wxwidgets unicode
+	else
+		need-wxwidgets base-unicode
+	fi
+}
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+#	epatch "${FILESDIR}/${P}-gcc-4.3.patch"
+	epatch "${FILESDIR}/${PN}-5.1a-external-wx.patch"
+	epatch "${FILESDIR}/${PN}-5.1-64bit.patch"
+	epatch "${FILESDIR}/${PN}-5.0-bool.patch"
+}
+
+src_compile() {
+	local EXTRA
+	use amd64 && EXTRA="${EXTRA} USE64BIT=1"
+	use X || EXTRA="${EXTRA} NOGUI=1"
+	emake \
+		${EXTRA} \
+		NOSTRIP=1 \
+		VERBOSE=1 \
+		NOTEST=1 \
+		CC="$(tc-getCC)" \
+		AR="$(tc-getAR)" \
+		CXX="$(tc-getCXX)" \
+		RANLIB="$(tc-getRANLIB)" \
+		EXTRA_CFLAGS="${CFLAGS}" \
+		EXTRA_CXXFLAGS="${CXXFLAGS}" \
+		EXTRA_LDFLAGS="${LDFLAGS}" \
+		WX_CONFIG="${WX_CONFIG}" \
+		WX_CONFIG_EXTRA="" \
+		|| die
+}
+
+src_test() {
+	"${S}/Main/truecrypt" --text --test
+}
+
+src_install() {
+	dobin Main/truecrypt
+	dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf'
+	insinto "/$(get_libdir)/rcscripts/addons"
+	newins "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
+}

Added: incognito/trunk/root_overlay/usr/share/applications/truecrypt.desktop
===================================================================
--- incognito/trunk/root_overlay/usr/share/applications/truecrypt.desktop	                        (rev 0)
+++ incognito/trunk/root_overlay/usr/share/applications/truecrypt.desktop	2008-07-13 17:24:27 UTC (rev 15878)
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Categories=Application;System;
+Comment=Encryption tool
+Exec=truecrypt
+Name=TrueCrypt GUI
+Terminal=false
+Type=Application



More information about the tor-commits mailing list