1 |
c1pher 11/06/01 14:46:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: truecrypt-7.0a-r3.ebuild |
5 |
Log: |
6 |
app-crypt/truecrypt: Revbump. Add new patch. Fixes bug 369203. |
7 |
|
8 |
(Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.62 app-crypt/truecrypt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.62&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.62&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?r1=1.61&r2=1.62 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v |
20 |
retrieving revision 1.61 |
21 |
retrieving revision 1.62 |
22 |
diff -u -r1.61 -r1.62 |
23 |
--- ChangeLog 25 Apr 2011 14:15:37 -0000 1.61 |
24 |
+++ ChangeLog 1 Jun 2011 14:46:10 -0000 1.62 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for app-crypt/truecrypt |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.61 2011/04/25 14:15:37 c1pher Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.62 2011/06/01 14:46:10 c1pher Exp $ |
30 |
+ |
31 |
+*truecrypt-7.0a-r3 (01 Jun 2011) |
32 |
+ |
33 |
+ 01 Jun 2011; Dane Smith <c1pher@g.o> +truecrypt-7.0a-r3.ebuild, |
34 |
+ +files/makefile-archdetect.diff: |
35 |
+ Add new patch to fix arch detection for the i{3,5,7} processors. |
36 |
+ Revbump to r3 and include that patch. Fixes bug 369203. |
37 |
+ Paxmark the installed binary. |
38 |
|
39 |
25 Apr 2011; Dane Smith <c1pher@g.o> truecrypt-7.0a-r2.ebuild: |
40 |
Re-added the fetch and mirror restriction after a conversation on -dev. |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-crypt/truecrypt/truecrypt-7.0a-r3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: truecrypt-7.0a-r3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r3.ebuild,v 1.1 2011/06/01 14:46:10 c1pher Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
|
57 |
inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils \ |
58 |
pax-utils |
59 |
|
60 |
DESCRIPTION="Free open-source disk encryption software" |
61 |
HOMEPAGE="http://www.truecrypt.org/" |
62 |
SRC_URI="${P}.tar.gz" |
63 |
|
64 |
LICENSE="truecrypt-3.0" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ppc ~x86" |
67 |
IUSE="X" |
68 |
RESTRICT="mirror fetch bindist" |
69 |
|
70 |
RDEPEND="|| ( >=sys-fs/lvm2-2.02.45 sys-fs/device-mapper ) |
71 |
sys-fs/fuse |
72 |
x11-libs/wxGTK:2.8[X?]" |
73 |
DEPEND="${RDEPEND} |
74 |
|| ( dev-libs/pkcs11-helper dev-libs/opensc )" |
75 |
RDEPEND="${RDEPEND} |
76 |
app-admin/sudo" |
77 |
|
78 |
S="${WORKDIR}/${P}-source" |
79 |
|
80 |
#See bug 241650. |
81 |
pkg_nofetch() { |
82 |
elog "Please download ${P}-linux-{86,64}.tar.gz source from:" |
83 |
elog "http://www.truecrypt.org/downloads2" |
84 |
elog "Then put the file in ${DISTDIR}/${P}.tar.gz" |
85 |
} |
86 |
|
87 |
pkg_setup() { |
88 |
local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS" |
89 |
linux-info_pkg_setup |
90 |
|
91 |
local WX_GTK_VER="2.8" |
92 |
if use X; then |
93 |
need-wxwidgets unicode |
94 |
else |
95 |
need-wxwidgets base-unicode |
96 |
fi |
97 |
} |
98 |
|
99 |
src_prepare() { |
100 |
if has_version x11-libs/wxGTK[X]; then |
101 |
# Fix linking when NOGUI=1 |
102 |
sed -e "s/WX_CONFIG_LIBS := base/&,core/" -i Main/Main.make || die "sed Main/Main.make failed" |
103 |
fi |
104 |
|
105 |
epatch "${FILESDIR}/makefile-archdetect.diff" |
106 |
} |
107 |
|
108 |
src_compile() { |
109 |
local EXTRA pkcs11_include_directory |
110 |
|
111 |
use X || EXTRA+=" NOGUI=1" |
112 |
|
113 |
if has_version dev-libs/pkcs11-helper; then |
114 |
pkcs11_include_directory="/usr/include/pkcs11-helper-1.0" |
115 |
else |
116 |
pkcs11_include_directory="/usr/include/opensc" |
117 |
fi |
118 |
append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1 |
119 |
|
120 |
emake \ |
121 |
${EXTRA} \ |
122 |
NOSTRIP=1 \ |
123 |
NOTEST=1 \ |
124 |
VERBOSE=1 \ |
125 |
CC="$(tc-getCC)" \ |
126 |
CXX="$(tc-getCXX)" \ |
127 |
AR="$(tc-getAR)" \ |
128 |
RANLIB="$(tc-getRANLIB)" \ |
129 |
TC_EXTRA_CFLAGS="${CFLAGS}" \ |
130 |
TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \ |
131 |
TC_EXTRA_LFLAGS="${LDFLAGS}" \ |
132 |
WX_CONFIG="${WX_CONFIG}" \ |
133 |
PKCS11_INC="${pkcs11_include_directory}" \ |
134 |
|| die "emake failed" |
135 |
} |
136 |
|
137 |
src_test() { |
138 |
"${S}/Main/truecrypt" --text --test || die "tests failed" |
139 |
} |
140 |
|
141 |
src_install() { |
142 |
dobin Main/truecrypt || die |
143 |
dodoc Readme.txt "Release/Setup Files/TrueCrypt User Guide.pdf" || die |
144 |
exeinto "/$(get_libdir)/rcscripts/addons" |
145 |
newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" || die |
146 |
|
147 |
newinitd "${FILESDIR}/${PN}.init" ${PN} || die |
148 |
|
149 |
if use X; then |
150 |
newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm || die |
151 |
make_desktop_entry ${PN} "TrueCrypt" ${PN} "System" || die |
152 |
fi |
153 |
|
154 |
pax-mark -m "${D}/usr/bin/truecrypt" || die |
155 |
} |
156 |
|
157 |
pkg_postinst() { |
158 |
elog "There is now an init script for TrueCrypt for Baselayout-2." |
159 |
elog "If you are a baselayout-2 user and you would like the TrueCrypt" |
160 |
elog "mappings removed on shutdown in order to prevent other file systems" |
161 |
elog "from unmounting then run:" |
162 |
elog "rc-update add truecrypt boot" |
163 |
elog "" |
164 |
|
165 |
ewarn "If you're getting errors about DISPLAY while using the terminal" |
166 |
ewarn "it's a known upstream bug. To use TrueCrypt from the terminal" |
167 |
ewarn "all that's necessary is to run: unset DISPLAY" |
168 |
ewarn "This will make the display unaccessable from that terminal " |
169 |
ewarn "but at least you will be able to access your volumes." |
170 |
ewarn "" |
171 |
|
172 |
ewarn "TrueCrypt has very restrictive license." |
173 |
ewarn "Please read the ${LICENSE} license in ${PORTDIR}/licenses" |
174 |
ewarn "directory before using TrueCrypt. Please be explicitly aware of" |
175 |
ewarn "the limitations on redistribution of binaries or modified source." |
176 |
} |