Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/truecrypt: truecrypt-7.2.ebuild ChangeLog
Date: Sun, 06 Jul 2014 19:43:04
Message-Id: 20140706194257.9D8622004E@flycatcher.gentoo.org
1 alonbl 14/07/06 19:42:57
2
3 Modified: ChangeLog
4 Added: truecrypt-7.2.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
9
10 Revision Changes Path
11 1.78 app-crypt/truecrypt/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.78&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?rev=1.78&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/ChangeLog?r1=1.77&r2=1.78
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v
20 retrieving revision 1.77
21 retrieving revision 1.78
22 diff -u -r1.77 -r1.78
23 --- ChangeLog 8 Dec 2013 19:57:54 -0000 1.77
24 +++ ChangeLog 6 Jul 2014 19:42:57 -0000 1.78
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-crypt/truecrypt
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.77 2013/12/08 19:57:54 alonbl Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.78 2014/07/06 19:42:57 alonbl Exp $
31 +
32 +*truecrypt-7.2 (06 Jul 2014)
33 +
34 + 06 Jul 2014; Alon Bar-Lev <alonbl@g.o> +truecrypt-7.2.ebuild:
35 + Version bump
36
37 08 Dec 2013; Alon Bar-Lev <alonbl@g.o>
38 +files/truecrypt-7.1a-build.patch, truecrypt-7.1a.ebuild:
39
40
41
42 1.1 app-crypt/truecrypt/truecrypt-7.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/truecrypt/truecrypt-7.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: truecrypt-7.2.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.2.ebuild,v 1.1 2014/07/06 19:42:57 alonbl Exp $
52
53 EAPI="5"
54
55 inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils pax-utils
56
57 DESCRIPTION="Free open-source disk encryption software"
58 HOMEPAGE="http://www.truecrypt.org/"
59 SRC_URI="mirror://sourceforge/${PN}/TrueCrypt/Other/TrueCrypt-${PV}-source-unix.tar.gz
60 http://git.gnupg.org/cgi-bin/gitweb.cgi?p=scute.git;a=blob_plain;f=src/pkcs11.h;hb=38bdba0bb1ab93950489c645938c93ed577f9139 -> ${P}-pkcs11.h"
61
62 LICENSE="truecrypt-3.0"
63 SLOT="0"
64 KEYWORDS="-* ~amd64 ~ppc ~x86"
65 IUSE="X +asm"
66 RESTRICT="bindist"
67
68 RDEPEND=">=sys-fs/lvm2-2.02.45
69 sys-fs/fuse
70 x11-libs/wxGTK:2.8[X?]
71 app-admin/sudo"
72 DEPEND="${RDEPEND}
73 !ppc? ( dev-lang/nasm )"
74
75 S="${WORKDIR}/${P}-source"
76
77 pkg_setup() {
78 local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS"
79 linux-info_pkg_setup
80
81 local WX_GTK_VER="2.8"
82 if use X; then
83 need-wxwidgets unicode
84 else
85 need-wxwidgets base-unicode
86 fi
87 }
88
89 src_prepare() {
90 if has_version x11-libs/wxGTK[X]; then
91 # Fix linking when NOGUI=1
92 sed -e "s/WX_CONFIG_LIBS := base/&,core/" -i Main/Main.make || die "sed Main/Main.make failed"
93 fi
94
95 epatch "${FILESDIR}/makefile-archdetect.diff"
96 epatch "${FILESDIR}/execstack-fix.diff"
97 epatch "${FILESDIR}/${PN}-7.1a-build.patch"
98 mkdir "${T}"/pkcs11 || die
99 ln -s "${DISTDIR}"/${P}-pkcs11.h "${T}"/pkcs11/pkcs11.h || die
100 }
101
102 src_compile() {
103 local EXTRA
104
105 use X || EXTRA+=" NOGUI=1"
106 use asm || EXTRA+=" NOASM=1"
107 append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1
108
109 emake \
110 ${EXTRA} \
111 NOSTRIP=1 \
112 NOTEST=1 \
113 VERBOSE=1 \
114 CC="$(tc-getCC)" \
115 CXX="$(tc-getCXX)" \
116 AR="$(tc-getAR)" \
117 RANLIB="$(tc-getRANLIB)" \
118 TC_EXTRA_CFLAGS="${CFLAGS}" \
119 TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \
120 TC_EXTRA_LFLAGS="${LDFLAGS}" \
121 WX_CONFIG="${WX_CONFIG}" \
122 PKCS11_INC="${T}/pkcs11/"
123 }
124
125 src_test() {
126 "${S}/Main/truecrypt" --text --test || die "tests failed"
127 }
128
129 src_install() {
130 dobin Main/truecrypt
131 dodoc Readme.txt
132 exeinto "/$(get_libdir)/rcscripts/addons"
133 newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
134
135 newinitd "${FILESDIR}/${PN}.init" ${PN}
136
137 if use X; then
138 newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm
139 make_desktop_entry ${PN} "TrueCrypt" ${PN} "System"
140 fi
141
142 pax-mark -m "${D}/usr/bin/truecrypt"
143 }
144
145 pkg_postinst() {
146 elog "There is now an init script for TrueCrypt for Baselayout-2."
147 elog "If you are a baselayout-2 user and you would like the TrueCrypt"
148 elog "mappings removed on shutdown in order to prevent other file systems"
149 elog "from unmounting then run:"
150 elog "rc-update add truecrypt boot"
151 elog
152
153 ewarn "If you're getting errors about DISPLAY while using the terminal"
154 ewarn "it's a known upstream bug. To use TrueCrypt from the terminal"
155 ewarn "all that's necessary is to run: unset DISPLAY"
156 ewarn "This will make the display unaccessable from that terminal "
157 ewarn "but at least you will be able to access your volumes."
158 ewarn
159
160 ewarn "TrueCrypt has a very restrictive license. Please be explicitly aware"
161 ewarn "of the limitations on redistribution of binaries or modified source."
162 }