Gentoo Archives: gentoo-commits

From: "Dane Smith (c1pher)" <c1pher@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/truecrypt: ChangeLog truecrypt-7.0a-r1.ebuild truecrypt-7.0a.ebuild
Date: Sat, 06 Nov 2010 01:15:22
Message-Id: 20101106011515.41E5020051@flycatcher.gentoo.org
1 c1pher 10/11/06 01:15:15
2
3 Modified: ChangeLog
4 Added: truecrypt-7.0a-r1.ebuild
5 Removed: truecrypt-7.0a.ebuild
6 Log:
7 Revision bump for TrueCrypt. Addresses bug 341007 and bug 343717.
8
9 (Portage version: 2.2.0_alpha3_p8/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.56 app-crypt/truecrypt/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.56&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.56&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?r1=1.55&r2=1.56
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v
21 retrieving revision 1.55
22 retrieving revision 1.56
23 diff -u -r1.55 -r1.56
24 --- ChangeLog 13 Oct 2010 23:10:59 -0000 1.55
25 +++ ChangeLog 6 Nov 2010 01:15:14 -0000 1.56
26 @@ -1,6 +1,14 @@
27 # ChangeLog for app-crypt/truecrypt
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.55 2010/10/13 23:10:59 c1pher Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.56 2010/11/06 01:15:14 c1pher Exp $
31 +
32 +*truecrypt-7.0a-r1 (06 Nov 2010)
33 +
34 + 06 Nov 2010; Dane Smith <c1pher@g.o> -truecrypt-7.0a.ebuild,
35 + +truecrypt-7.0a-r1.ebuild:
36 + Revision bump for TrueCrypt. Addresses lack of deskop entry and icon wrt
37 + bug
38 + 341007 and lack of entry in KDE4 menu wrt bug 343717.
39
40 *truecrypt-7.0a (13 Oct 2010)
41
42
43
44
45 1.1 app-crypt/truecrypt/truecrypt-7.0a-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: truecrypt-7.0a-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.0a-r1.ebuild,v 1.1 2010/11/06 01:15:14 c1pher Exp $
55
56 EAPI="2"
57
58 inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils
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="bindist fetch mirror"
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 pkg_nofetch() {
81 elog "Please download .tar.gz source from:"
82 elog "http://www.truecrypt.org/downloads2"
83 elog "Then put the file in ${DISTDIR}/${SRC_URI}"
84 }
85
86 pkg_setup() {
87 local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS"
88 linux-info_pkg_setup
89
90 local WX_GTK_VER="2.8"
91 if use X; then
92 need-wxwidgets unicode
93 else
94 need-wxwidgets base-unicode
95 fi
96 }
97
98 src_prepare() {
99 if has_version x11-libs/wxGTK[X]; then
100 # Fix linking when NOGUI=1
101 sed -e "s/WX_CONFIG_LIBS := base/&,core/" -i Main/Main.make || die "sed Main/Main.make failed"
102 fi
103 }
104
105 src_compile() {
106 local EXTRA pkcs11_include_directory
107
108 use X || EXTRA+=" NOGUI=1"
109
110 if has_version dev-libs/pkcs11-helper; then
111 pkcs11_include_directory="/usr/include/pkcs11-helper-1.0"
112 else
113 pkcs11_include_directory="/usr/include/opensc"
114 fi
115 append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1
116
117 emake \
118 ${EXTRA} \
119 NOSTRIP=1 \
120 NOTEST=1 \
121 VERBOSE=1 \
122 CC="$(tc-getCC)" \
123 CXX="$(tc-getCXX)" \
124 AR="$(tc-getAR)" \
125 RANLIB="$(tc-getRANLIB)" \
126 TC_EXTRA_CFLAGS="${CFLAGS}" \
127 TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \
128 TC_EXTRA_LFLAGS="${LDFLAGS}" \
129 WX_CONFIG="${WX_CONFIG}" \
130 PKCS11_INC="${pkcs11_include_directory}" \
131 || die "emake failed"
132 }
133
134 src_test() {
135 "${S}/Main/truecrypt" --text --test || die "tests failed"
136 }
137
138 src_install() {
139 dobin Main/truecrypt || die
140 dodoc Readme.txt "Release/Setup Files/TrueCrypt User Guide.pdf" || die
141 exeinto "/$(get_libdir)/rcscripts/addons"
142 newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" || die
143
144 if use X; then
145 newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm || die
146 make_desktop_entry ${PN} "TrueCrypt" ${PN} "System" || die
147 fi
148 }
149
150 pkg_postinst() {
151 ewarn "TrueCrypt has very restrictive license."
152 ewarn "Please read the ${LICENSE} license in ${PORTDIR}/licenses"
153 ewarn "directory before using TrueCrypt. Please be explicitly aware of"
154 ewarn "the limitations on redistribution of binaries or modified source."
155 }