diff options
-rw-r--r-- | app-crypt/truecrypt/ChangeLog | 348 | ||||
-rw-r--r-- | app-crypt/truecrypt/Manifest | 9 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/execstack-fix.diff | 60 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/makefile-archdetect.diff | 11 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/truecrypt-stop.sh | 9 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/truecrypt.init | 29 | ||||
-rw-r--r-- | app-crypt/truecrypt/metadata.xml | 9 | ||||
-rw-r--r-- | app-crypt/truecrypt/truecrypt-7.1.ebuild | 122 |
8 files changed, 597 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/ChangeLog b/app-crypt/truecrypt/ChangeLog new file mode 100644 index 0000000..a222cfe --- /dev/null +++ b/app-crypt/truecrypt/ChangeLog @@ -0,0 +1,348 @@ +# ChangeLog for app-crypt/truecrypt +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.66 2011/07/15 17:53:07 c1pher Exp $ + +*truecrypt-7.0a-r6 (15 Jul 2011) + + 15 Jul 2011; Dane Smith <c1pher@gentoo.org> +truecrypt-7.0a-r6.ebuild: + Rev bump. Include our own headers by default. Removed dependency on a + pkcs11 implementation. Should work with any of them now. Thanks Alon + Bar-Lev for the help. Bump to EAPI 4. Bug 369781 + + 15 Jul 2011; Dane Smith <c1pher@gentoo.org> truecrypt-7.0a-r5.ebuild: + Allow for the inclusion of our own pkcs11.h if using >=opensc-0.12 wrt + bug 369781. No revbump. Thanks to Alon Bar-Lev and Diego Elio Petteno + for help with the fix. + +*truecrypt-7.0a-r5 (01 Jun 2011) + + 01 Jun 2011; Dane Smith <c1pher@gentoo.org> -truecrypt-7.0a-r4.ebuild, + +truecrypt-7.0a-r5.ebuild, +files/execstack-fix.diff: + Revbump. Add new patch. Fix WX stack issues. + +*truecrypt-7.0a-r4 (01 Jun 2011) + + 01 Jun 2011; Dane Smith <c1pher@gentoo.org> -truecrypt-7.0a-r3.ebuild, + +truecrypt-7.0a-r4.ebuild, files/makefile-archdetect.diff: + Revbump and remove old r3. + Modify my patch to better detect all arches. Prior way didn't work + effectively. + Add depend on dev-lang/nasm if not powerpc since it's now needed for x86 and + amd64 wrt bug 369691. + Remove double RDEPEND. + +*truecrypt-7.0a-r3 (01 Jun 2011) + + 01 Jun 2011; Dane Smith <c1pher@gentoo.org> +truecrypt-7.0a-r3.ebuild, + +files/makefile-archdetect.diff: + Add new patch to fix arch detection for the i{3,5,7} processors. + Revbump to r3 and include that patch. Fixes bug 369203. + Paxmark the installed binary. + + 25 Apr 2011; Dane Smith <c1pher@gentoo.org> truecrypt-7.0a-r2.ebuild: + Re-added the fetch and mirror restriction after a conversation on -dev. + Please see bug 241650 before removing this in the future. + + 20 Mar 2011; Dane Smith <c1pher@gentoo.org> truecrypt-7.0a-r2.ebuild: + Correct typo for rc-update wrt bug 359485. + + 13 Jan 2011; Dane Smith <c1pher@gentoo.org> -truecrypt-7.0a-r1.ebuild: + Drop old revision. + +*truecrypt-7.0a-r2 (15 Dec 2010) + + 15 Dec 2010; Dane Smith <c1pher@gentoo.org> +truecrypt-7.0a-r2.ebuild, + +files/truecrypt.init, metadata.xml: + Revbump to 7.0a-r2 + *Adds init script for baselayout-2 wrt bug 302170. + *Ebuild cleanup and documenting. + *Added myself as a maintainer in metadata. + + 07 Nov 2010; Dane Smith <c1pher@gentoo.org> truecrypt-7.0a-r1.ebuild: + Removed the fetch restrict. Note for future version bumps: the source + archives + will need to be added to the Gentoo mirrors manually. + +*truecrypt-7.0a-r1 (06 Nov 2010) + + 06 Nov 2010; Dane Smith <c1pher@gentoo.org> -truecrypt-7.0a.ebuild, + +truecrypt-7.0a-r1.ebuild: + Revision bump for TrueCrypt. Addresses lack of deskop entry and icon wrt + bug + 341007 and lack of entry in KDE4 menu wrt bug 343717. + +*truecrypt-7.0a (13 Oct 2010) + + 13 Oct 2010; Dane Smith <c1pher@gentoo.org> -truecrypt-4.3a.ebuild, + -files/truecrypt-4.3a-2.6.23.patch, -files/truecrypt-4.3a-2.6.24.patch, + -files/truecrypt-4.3a-2.6.29.patch, -truecrypt-6.2a.ebuild, + -truecrypt-6.3a.ebuild, +truecrypt-7.0a.ebuild: + Version bump wrt bug 329075. Uses new license that was already added. + truecrypt-stop is now executeable. Addresses bug 234618. Checks + CONFIG_CRYPTO_XTS wrt bug 298907. Only warns about the license once. Added + a number of missing || die. Thanks Eray Aslan for much of the ebuild + clean-up! Also removes all old versions as upstream will no longer provide + sources for any of them. + + 13 Oct 2010; Dane Smith <c1pher@gentoo.org> truecrypt-6.3a.ebuild: + Updated the fetch link wrt bug 335854. + + 27 Dec 2009; Joseph Jezak <josejx@gentoo.org> truecrypt-6.3a.ebuild: + Marked ~ppc for bug #275498. + +*truecrypt-6.3a (27 Nov 2009) + + 27 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -truecrypt-6.3.ebuild, +truecrypt-6.3a.ebuild: + Version bump (bug #294660). + +*truecrypt-6.3 (24 Oct 2009) + + 24 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -truecrypt-6.2.ebuild, +truecrypt-6.3.ebuild: + Version bump (bug #290173). + + 31 Aug 2009; Mike Auty <ikelos@gentoo.org> truecrypt-6.2.ebuild, + truecrypt-6.2a.ebuild: + Making CONFIG_CHECK non-fatal for userland ebuilds, see bug 283320. + + 15 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + truecrypt-6.2a.ebuild: + Add dependency on app-admin/sudo (bug #277373). + + 07 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org> + truecrypt-6.2a.ebuild: + Use elog for fetch error. + +*truecrypt-6.2a (22 Jun 2009) + + 22 Jun 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +truecrypt-6.2a.ebuild: + Version bump. + + 21 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + truecrypt-6.2.ebuild: + Fix building with USE="-X" when x11-libs/wxGTK is built with USE="X" (bug + #270279). Fix dependencies (bug #270441). Check for appropriate kernel + configuration. + + 18 May 2009; Robin H. Johnson <robbat2@gentoo.org> truecrypt-4.3a.ebuild, + truecrypt-6.2.ebuild: + Update all ebuilds to reflect our warnings about the license per the + trustees decision of 2009/May/17. Users further interested in the matter + should see Gentoo bug #241650. + + 18 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + truecrypt-6.2.ebuild: + Allow to use pkcs11.h from dev-libs/pkcs11-helper. + +*truecrypt-6.2 (18 May 2009) + + 18 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + truecrypt-4.3a.ebuild, -files/truecrypt-5.0-bool.patch, + -files/truecrypt-5.1-64bit.patch, -files/truecrypt-5.1a-external-wx.patch, + -truecrypt-6.0a.ebuild, +truecrypt-6.2.ebuild: + Version bump (bug #245322). + + 20 Apr 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +files/truecrypt-4.3a-2.6.29.patch, truecrypt-4.3a: + Fix building with Linux 2.6.29 (bug #264450). + + 10 Apr 2009; Caleb Tennis <caleb@gentoo.org> truecrypt-4.3a.ebuild: + fix device-mapper dep for lvm2, see #265599 + + 03 Nov 2008; Daniel Black <dragonheart@gentoo.org> truecrypt-4.3a.ebuild, + truecrypt-6.0a.ebuild: + changed due to licensing concerns. Bug #241650. Thanks Donnie and Robin. + + 09 Jul 2008; Daniel Black <dragonheart@gentoo.org> + -files/truecrypt-5.1a-gcc-4.3.patch, -files/truecrypt-6.0a-gcc-4.3.patch, + -truecrypt-5.1a.ebuild, truecrypt-6.0a.ebuild: + remove version 5.1a as it cannot be downloaded and is on fetch restriction - + thanks Arfrever. remove gcc patch on 6.0a as it compiles fine on gcc-4.3.1 + +*truecrypt-6.0a (09 Jul 2008) + + 09 Jul 2008; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-6.0a-gcc-4.3.patch, +truecrypt-6.0a.ebuild: + version bump as per bug #230862 thanks to Sebastian and m.nawaz + + 18 Apr 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.1a-gcc-4.3.patch, truecrypt-5.1a.ebuild: + Fix gcc-4.3 issue, bug#218137, thanks to Holger Ackermann + +*truecrypt-5.1a (21 Mar 2008) + + 21 Mar 2008; Alon Bar-Lev <alonbl@gentoo.org> + -files/truecrypt-5.0-64bit.patch, -files/truecrypt-5.0-build.patch, + -files/truecrypt-5.0-nogui.patch, -files/truecrypt-5.1-nogui.patch, + +files/truecrypt-5.1a-external-wx.patch, -truecrypt-5.0a.ebuild, + -truecrypt-5.1.ebuild, +truecrypt-5.1a.ebuild: + Version bump, bug#213846 + +*truecrypt-5.1 (13 Mar 2008) + + 13 Mar 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.1-64bit.patch, +files/truecrypt-5.1-nogui.patch, + +truecrypt-5.1.ebuild: + Version bump, bug#213074 + + 22 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + files/truecrypt-5.0-nogui.patch: + Fix -X, bug#210485 + + 15 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.0-nogui.patch, truecrypt-5.0a.ebuild: + Add X USE flag, based on http://home.att.net/~Tom.Horsley/tah-tc-5.0.tar.gz, + bug#210175, thanks for Quosek for the reference + +*truecrypt-5.0a (13 Feb 2008) + + 13 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + files/truecrypt-5.0-64bit.patch, files/truecrypt-5.0-bool.patch, + -truecrypt-5.0.ebuild, +truecrypt-5.0a.ebuild: + Version bump bug#210024, more 64bit fixups + + 10 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.0-bool.patch, truecrypt-5.0.ebuild: + Workaround wxGTK with odbc USE flag, bug#209467 + + 09 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.0-64bit.patch, truecrypt-5.0.ebuild: + Fix 64bit issues, bug#209449, thanks to Aron for testing + +*truecrypt-5.0 (08 Feb 2008) + + 08 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-5.0-build.patch, +truecrypt-5.0.ebuild: + Version bump, bug#209091 + + 25 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org> + files/truecrypt-4.3a-2.6.24.patch: + Modify 2.6.24 fix, bug#198394, thanks to elschner.net + + 15 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-4.3a-2.6.24.patch, truecrypt-4.3a.ebuild: + Add 2.6.24 support, bug#198394, thanks to elschner.net + + 02 Nov 2007; Alon Bar-Lev <alonbl@gentoo.org> truecrypt-4.3a.ebuild: + Remove requirement to unload modules, test not use the modules anyway, + bug#197839, thanks to Jakub and Guenther Brunthaler + + 02 Nov 2007; Alon Bar-Lev <alonbl@gentoo.org> -truecrypt-4.3.ebuild: + Cleanup + + 02 Nov 2007; Steve Dibb <beandog@gentoo.org> truecrypt-4.3a.ebuild: + amd64 stable, bug 197557 + + 01 Nov 2007; Christian Faulhammer <opfer@gentoo.org> + truecrypt-4.3a.ebuild: + stable x86, bug 197557 + + 10 Oct 2007; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-4.3a-2.6.23.patch, truecrypt-4.3a.ebuild: + Fix for 2.6.23, bug#186901, thanks to virdiq + + 11 Aug 2007; Alon Bar-Lev <alonbl@gentoo.org> + -files/truecrypt-4.2a-2.6.19.patch, -files/truecrypt-4.2a-2.6.20.patch, + -files/truecrypt-4.2a-makefile.patch, + -files/truecrypt-4.2a_kernel-2.6.18-rc1_fix.patch, + files/truecrypt-stop.sh, -truecrypt-4.2a-r1.ebuild, + -truecrypt-4.2a-r2.ebuild, -truecrypt-4.2a-r3.ebuild: + Cleanup + + 11 Aug 2007; Alon Bar-Lev <alonbl@gentoo.org> files/truecrypt-stop.sh: + Don't fail if no volumes are mounted, bug#168691, thanks to Jakob Truelsen + +*truecrypt-4.3a (07 Jun 2007) + + 07 Jun 2007; Alon Bar-Lev <alonbl@gentoo.org> +truecrypt-4.3a.ebuild: + Version bump, bug#181201, thanks to Yoann Pannier + + 28 Apr 2007; Raúl Porcel <armin76@gentoo.org> truecrypt-4.3.ebuild: + x86 stable wrt #176159 + + 27 Apr 2007; Steve Dibb <beandog@gentoo.org> truecrypt-4.3.ebuild: + amd64 stable, bug 176159 + + 27 Mar 2007; Alon Bar-Lev <alonbl@gentoo.org> truecrypt-4.2a-r3.ebuild, + truecrypt-4.3.ebuild: + Fixed rcscripts location + +*truecrypt-4.3 (24 Mar 2007) + + 24 Mar 2007; Alon Bar-Lev <alonbl@gentoo.org> +truecrypt-4.3.ebuild: + Version bump + +*truecrypt-4.2a-r3 (01 Mar 2007) + + 01 Mar 2007; Alon Bar-Lev <alonbl@gentoo.org> +files/truecrypt-stop.sh, + +truecrypt-4.2a-r3.ebuild: + Added stop addon, bug#168691, thanks to Jakob Truelsen + +*truecrypt-4.2a-r2 (06 Feb 2007) + + 06 Feb 2007; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-4.2a-2.6.20.patch, +truecrypt-4.2a-r2.ebuild: + Added 2.6.20 support, bug#165454, thanks to Patrick + + 05 Feb 2007; Steve Dibb <beandog@gentoo.org> truecrypt-4.2a-r1.ebuild: + amd64 stable, bug 164077 + + 29 Jan 2007; Christian Faulhammer <opfer@gentoo.org> + truecrypt-4.2a-r1.ebuild: + stable x86; bug #164077 + + 27 Jan 2007; Alon Bar-Lev <alonbl@gentoo.org> + -files/truecrypt-4.2-makefile.patch, + -files/truecrypt-4.2-nosectorformat.patch, -truecrypt-4.2-r1.ebuild, + -truecrypt-4.2a.ebuild: + Cleanup + + 24 Jan 2007; Marius Mauch <genone@gentoo.org> truecrypt-4.2-r1.ebuild, + truecrypt-4.2a.ebuild, truecrypt-4.2a-r1.ebuild: + Replacing einfo with elog + +*truecrypt-4.2a-r1 (06 Dec 2006) + + 06 Dec 2006; Alon Bar-Lev <alonbl@gentoo.org> + +files/truecrypt-4.2a-2.6.19.patch, +truecrypt-4.2a-r1.ebuild: + linux-2.6.19 support, closes bug#157228 thanks to Timothy Redaelli + + 09 Oct 2006; Alon Bar-Lev <alonbl@gentoo.org> truecrypt-4.2a.ebuild: + Fixed kernel location. Added no strip support, thanks to Tristan Heaven for + reporting this + + 22 Aug 2006; Thomas Cort <tcort@gentoo.org> truecrypt-4.2a.ebuild: + Added ~amd64 keyword wrt Bug #135866. + + 15 Jul 2006; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-4.2a_kernel-2.6.18-rc1_fix.patch, truecrypt-4.2a.ebuild: + added fix for 2.6.18 kernels as per bug #140387 thanks to Fredrik Smedberg + + 12 Jul 2006; Daniel Black <dragonheart@gentoo.org> truecrypt-4.2a.ebuild: + correct license name bug #140083 thanks to Alex Tarkovsky + +*truecrypt-4.2a (11 Jul 2006) + + 11 Jul 2006; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-4.2a-makefile.patch, +truecrypt-4.2a.ebuild: + version bump + +*truecrypt-4.2-r1 (06 Jun 2006) + + 06 Jun 2006; Daniel Black <dragonheart@gentoo.org> + files/truecrypt-4.2-nosectorformat.patch, +truecrypt-4.2-r1.ebuild, + -truecrypt-4.2.ebuild: + %uL should be %Lu in patch + + 06 Jun 2006; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-4.2-nosectorformat.patch, truecrypt-4.2.ebuild: + fix for 2.6.17 kernels that nolonger define SECTOR_FORMAT as per bug #135741 + +*truecrypt-4.2 (05 Jun 2006) + + 05 Jun 2006; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-4.2-makefile.patch, +metadata.xml, +truecrypt-4.2.ebuild: + initial ebuild as per bug #112197 largely based off ebuild by Greg Tassone + diff --git a/app-crypt/truecrypt/Manifest b/app-crypt/truecrypt/Manifest new file mode 100644 index 0000000..19c7829 --- /dev/null +++ b/app-crypt/truecrypt/Manifest @@ -0,0 +1,9 @@ +AUX execstack-fix.diff 1955 RMD160 bac693c2ef2029f3d3ba8fb6fb5943404108c085 SHA1 f77beb975efe8577378a29510b7f530021119a7e SHA256 227c8e0bb04bd5f6915fc2570fbcbf1cca704b4b818bc5de283653197309a5fb +AUX makefile-archdetect.diff 266 RMD160 9cb64f2d12174d458e6268802aaf92ae6e0de4a9 SHA1 d935b856299a78f1c818b3b989849d9f165015a3 SHA256 aa201bb7c93852c814d71c963b1d416d62aa2d1e685f9f5149b1388dca9ae883 +AUX truecrypt-stop.sh 308 RMD160 4b2e6f47520f701324c03b5a43118cc38ee409a3 SHA1 7139ba403e482a4746e1d545115b74760b1438ea SHA256 243a9d1041b291e12ce2065959838f0cfe01484bffac7915991ebeb90d2ccd2c +AUX truecrypt.init 729 RMD160 63472dd371afd892e6b00de0e3e516c74ed0075a SHA1 8cb25b2093322e449715abcb3034454fcc6ef77f SHA256 6530577c5f86800a7d92a76b927538006a27f57cf517c6f2bdb793cebaa70b59 +DIST truecrypt-7.1.tar.gz 1950519 RMD160 b01cbbd764c403dbd6d2e7f30044894c233c01f7 SHA1 b46c0fa5e1cbad25197b02d5232f5355b7abb1c9 SHA256 94815d6c72f36fb194fc53d2527088f3bf7060797530f7eafd63d1b9596fd9f4 +DIST truecrypt-pkcs11.h.bz2 8286 RMD160 15c22390f81a1cb0bfd6699b08acd84cffad9bae SHA1 59d02f97c565f006f2265ff0f4c9a23c3323bff8 SHA256 9e7782dd93f7e37fc0eaa118f9fbce7c643555e134fd39f2076e0fc541ac3494 +EBUILD truecrypt-7.1.ebuild 3420 RMD160 1cbb84a4e028ea12d1bcf1676160c3909ba6f5ad SHA1 099f4f2322c5567c0614691f4a8da9743f7df8a3 SHA256 e00e6cd23a93066d08212e41fe95f48a907b2956434c2e2a7af0b722552f0b13 +MISC ChangeLog 13186 RMD160 83d7695b02300b8b69f46e8ced0fd3efc584ce74 SHA1 e6af15a2f8f3f3a29fcd80918c986a0b76abb1c7 SHA256 04ee1cc8932d06f33b7970ca32ab4f096e24292935214b91168aaee3a2c1de48 +MISC metadata.xml 250 RMD160 0ed9b992d346dffc7427a6f36ad6db15f099542f SHA1 906ae1d1afaf4c06a5b54cf7e25843dbac2bb5ba SHA256 c4dab52dbdf0558df59853ea282e0b1deb4cb968914468a648070dcd31a456d8 diff --git a/app-crypt/truecrypt/files/execstack-fix.diff b/app-crypt/truecrypt/files/execstack-fix.diff new file mode 100644 index 0000000..b76bfcc --- /dev/null +++ b/app-crypt/truecrypt/files/execstack-fix.diff @@ -0,0 +1,60 @@ +--- Crypto/Aes_hw_cpu.asm.old 2011-06-01 17:12:53.078000001 -0400 ++++ Crypto/Aes_hw_cpu.asm 2011-06-01 17:12:53.080000002 -0400 +@@ -328,3 +328,12 @@ +
+
+ %endif ; __BITS__ != 16
++ %ifidn __OUTPUT_FORMAT__,elf ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf32 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf64 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif +--- Crypto/AesSmall_x86.asm.old 2011-06-01 17:12:53.084000002 -0400 ++++ Crypto/AesSmall_x86.asm 2011-06-01 17:12:53.086000002 -0400 +@@ -1442,3 +1442,12 @@ + db v8(0xe1),v8(0x69),v8(0x14),v8(0x63),v8(0x55),v8(0x21),v8(0x0c),v8(0x7d)
+
+ %endif
++ %ifidn __OUTPUT_FORMAT__,elf ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf32 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf64 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif +--- Crypto/Aes_x64.asm.old 2011-06-01 17:12:53.090000002 -0400 ++++ Crypto/Aes_x64.asm 2011-06-01 17:12:53.092000002 -0400 +@@ -905,3 +905,12 @@ + %endif
+
+ %endif
++ %ifidn __OUTPUT_FORMAT__,elf ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf32 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf64 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif +--- Crypto/Aes_x86.asm.old 2011-06-01 17:12:53.096000002 -0400 ++++ Crypto/Aes_x86.asm 2011-06-01 17:12:53.097000002 -0400 +@@ -644,3 +644,12 @@ + do_exit
+
+ %endif
++ %ifidn __OUTPUT_FORMAT__,elf ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf32 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif ++ %ifidn __OUTPUT_FORMAT__,elf64 ++ section .note.GNU-stack noalloc noexec nowrite progbits ++ %endif diff --git a/app-crypt/truecrypt/files/makefile-archdetect.diff b/app-crypt/truecrypt/files/makefile-archdetect.diff new file mode 100644 index 0000000..312dcfa --- /dev/null +++ b/app-crypt/truecrypt/files/makefile-archdetect.diff @@ -0,0 +1,11 @@ +--- Makefile 2010-09-05 10:32:10.000000000 -0400 ++++ Makefile.new 2011-06-01 15:23:24.975000088 -0400 +@@ -120,7 +120,7 @@ + + export CPU_ARCH ?= unknown + +-ARCH = $(shell uname -p) ++ARCH = $(shell uname -m) + ifeq "$(ARCH)" "unknown" + ARCH = $(shell uname -m) + endif diff --git a/app-crypt/truecrypt/files/truecrypt-stop.sh b/app-crypt/truecrypt/files/truecrypt-stop.sh new file mode 100644 index 0000000..50bb0b7 --- /dev/null +++ b/app-crypt/truecrypt/files/truecrypt-stop.sh @@ -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 diff --git a/app-crypt/truecrypt/files/truecrypt.init b/app-crypt/truecrypt/files/truecrypt.init new file mode 100644 index 0000000..2d861f6 --- /dev/null +++ b/app-crypt/truecrypt/files/truecrypt.init @@ -0,0 +1,29 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/files/truecrypt.init,v 1.1 2010/12/15 20:59:11 c1pher Exp $ + +depend() { + after localmount + if [ -e /lib/librc.so ]; then + need device-mapper + fi +} + +start() { + if [ ! -e /lib/librc.so ]; then + eerror "The ${myservice} init script is written for baselayout-2" + eerror "Please do not use it with baselayout-1" + return 1 + fi +} + +stop() { + if [ ! -e /lib/librc.so ]; then + eerror "The ${myservice} init script is written for baselayout-2" + eerror "Please do not use it with baselayout-1" + return 1 + fi + + . /lib/rcscripts/addons/truecrypt-stop.sh +} diff --git a/app-crypt/truecrypt/metadata.xml b/app-crypt/truecrypt/metadata.xml new file mode 100644 index 0000000..4329201 --- /dev/null +++ b/app-crypt/truecrypt/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <maintainer> + <email>c1pher@gentoo.org</email> + <name>Dane Smith</name> + </maintainer> +</pkgmetadata> diff --git a/app-crypt/truecrypt/truecrypt-7.1.ebuild b/app-crypt/truecrypt/truecrypt-7.1.ebuild new file mode 100644 index 0000000..f991dbd --- /dev/null +++ b/app-crypt/truecrypt/truecrypt-7.1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r6.ebuild,v 1.1 2011/07/15 17:53:07 c1pher Exp $ + +EAPI="4" + +inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils \ + pax-utils + +DESCRIPTION="Free open-source disk encryption software" +HOMEPAGE="http://www.truecrypt.org/" +SRC_URI="${P}.tar.gz\ + mirror://gentoo/${PN}-pkcs11.h.bz2" + +LICENSE="truecrypt-3.0" +SLOT="0" +KEYWORDS="-* ~amd64 ~ppc ~x86" +IUSE="X" +RESTRICT="mirror fetch bindist" + +RDEPEND="|| ( >=sys-fs/lvm2-2.02.45 sys-fs/device-mapper ) + sys-fs/fuse + x11-libs/wxGTK:2.8[X?] + app-admin/sudo" +DEPEND="${RDEPEND} + !ppc? ( dev-lang/nasm )" + +S="${WORKDIR}/${P}-source" + +#See bug 241650. +pkg_nofetch() { + elog "Please download ${P}-linux-{86,64}.tar.gz source from:" + elog "http://www.truecrypt.org/downloads2" + elog "Then put the file in ${DISTDIR}/${P}.tar.gz" +} + +pkg_setup() { + local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS" + linux-info_pkg_setup + + local WX_GTK_VER="2.8" + if use X; then + need-wxwidgets unicode + else + need-wxwidgets base-unicode + fi +} + +src_prepare() { + if has_version x11-libs/wxGTK[X]; then + # Fix linking when NOGUI=1 + sed -e "s/WX_CONFIG_LIBS := base/&,core/" -i Main/Main.make || die "sed Main/Main.make failed" + fi + + epatch "${FILESDIR}/makefile-archdetect.diff" + epatch "${FILESDIR}/execstack-fix.diff" + mkdir "${T}"/pkcs11 || die + ln -s "${WORKDIR}"/truecrypt-pkcs11.h "${T}"/pkcs11/pkcs11.h || die +} + +src_compile() { + local EXTRA + + use X || EXTRA+=" NOGUI=1" + append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 + + emake \ + ${EXTRA} \ + NOSTRIP=1 \ + NOTEST=1 \ + VERBOSE=1 \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + AR="$(tc-getAR)" \ + RANLIB="$(tc-getRANLIB)" \ + TC_EXTRA_CFLAGS="${CFLAGS}" \ + TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \ + TC_EXTRA_LFLAGS="${LDFLAGS}" \ + WX_CONFIG="${WX_CONFIG}" \ + PKCS11_INC="${T}/pkcs11/" +} + +src_test() { + "${S}/Main/truecrypt" --text --test || die "tests failed" +} + +src_install() { + dobin Main/truecrypt + dodoc Readme.txt "Release/Setup Files/TrueCrypt User Guide.pdf" + exeinto "/$(get_libdir)/rcscripts/addons" + newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" + + newinitd "${FILESDIR}/${PN}.init" ${PN} + + if use X; then + newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm + make_desktop_entry ${PN} "TrueCrypt" ${PN} "System" + fi + + pax-mark -m "${D}/usr/bin/truecrypt" +} + +pkg_postinst() { + elog "There is now an init script for TrueCrypt for Baselayout-2." + elog "If you are a baselayout-2 user and you would like the TrueCrypt" + elog "mappings removed on shutdown in order to prevent other file systems" + elog "from unmounting then run:" + elog "rc-update add truecrypt boot" + elog "" + + ewarn "If you're getting errors about DISPLAY while using the terminal" + ewarn "it's a known upstream bug. To use TrueCrypt from the terminal" + ewarn "all that's necessary is to run: unset DISPLAY" + ewarn "This will make the display unaccessable from that terminal " + ewarn "but at least you will be able to access your volumes." + ewarn "" + + ewarn "TrueCrypt has very restrictive license." + ewarn "Please read the ${LICENSE} license in ${PORTDIR}/licenses" + ewarn "directory before using TrueCrypt. Please be explicitly aware of" + ewarn "the limitations on redistribution of binaries or modified source." +} |