annotate app-crypt/truecrypt/truecrypt-6.1a.ebuild @ 241:41ff4fe39483

beta-3 never made it to our local portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 20 Sep 2010 14:28:18 +0200
parents b31e97231708
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
67
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
1 # Copyright 1999-2008 Gentoo Foundation
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
3 # $Header: $
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
4
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
5 inherit eutils toolchain-funcs multilib wxwidgets
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
6
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
7 MY_P="${P}.tar.gz"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
8
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
9 DESCRIPTION="Free open-source disk encryption software"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
10 HOMEPAGE="http://www.truecrypt.org/"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
11 #SRC_URI="TrueCrypt ${PV} Source.tar.gz"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
12 SRC_URI="${P}.tar.gz
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
13 pkcs11.h
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
14 pkcs11f.h
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
15 pkcs11t.h"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
16
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
17 LICENSE="truecrypt-collective-1.4"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
18 SLOT="0"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
19 KEYWORDS="~amd64 ~x86"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
20 IUSE="X"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
21 RESTRICT="mirror fetch bindist"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
22
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
23 RDEPEND="sys-fs/fuse
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
24 =x11-libs/wxGTK-2.8*"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
25 DEPEND="${RDEPEND}"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
26
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
27 S="${WORKDIR}/${P}-source"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
28
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
29 pkg_nofetch() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
30 einfo "Please download tar.gz source from:"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
31 einfo "http://www.truecrypt.org/downloads2.php"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
32 einfo "Then put the file in ${DISTDIR}/${MY_P}"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
33 einfo "Please download RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
34 einfo "header files:"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
35 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
36 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
37 einfo "ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
38 einfo "Then put files in ${DISTDIR}"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
39 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
40
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
41 pkg_setup() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
42 WX_GTK_VER="2.8"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
43 if use X; then
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
44 need-wxwidgets unicode
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
45 else
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
46 need-wxwidgets base-unicode
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
47 fi
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
48 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
49
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
50 src_unpack() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
51 unpack ${MY_P}
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
52 cd "${S}"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
53
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
54 epatch "${FILESDIR}/${PN}-6.1-64bit.patch"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
55 epatch "${FILESDIR}/${PN}-6.1-bool.patch"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
56 epatch "${FILESDIR}/${PN}-6.1-external-wx.patch"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
57 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
58
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
59 src_compile() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
60 local EXTRA
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
61 use amd64 && EXTRA="${EXTRA} USE64BIT=1"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
62 use X || EXTRA="${EXTRA} NOGUI=1"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
63 if has_version '<sys-libs/glibc-2.7'; then
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
64 if [ "$(gcc-version)" = "4.3" ]; then
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
65 elog "You are trying to compile ${P} using >=sys-devel/gcc-4.3 and <sys-libs/glibc-2.7"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
66 elog "In this case compiling will failed if not -O0 optimization flag used."
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
67 elog "Therefore ${P} will compliling with -O0 flag."
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
68 elog "Otherwise you could install >=sys-libs/glibc-2.7 or use <sys-devel/gcc-4.3"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
69 CFLAGS="${CFLAGS} -O0"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
70 CXXFLAGS="${CXXFLAGS} -O0"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
71 fi
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
72 fi
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
73 emake \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
74 ${EXTRA} \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
75 PKCS11_INC="${DISTDIR}" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
76 NOSTRIP=1 \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
77 VERBOSE=1 \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
78 NOTEST=1 \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
79 CC="$(tc-getCC)" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
80 AR="$(tc-getAR)" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
81 CXX="$(tc-getCXX)" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
82 RANLIB="$(tc-getRANLIB)" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
83 EXTRA_CFLAGS="${CFLAGS}" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
84 EXTRA_CXXFLAGS="${CXXFLAGS}" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
85 EXTRA_LDFLAGS="${LDFLAGS}" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
86 WX_CONFIG="${WX_CONFIG}" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
87 WX_CONFIG_EXTRA="" \
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
88 || die
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
89 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
90
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
91 src_test() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
92 "${S}/Main/truecrypt" --text --test
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
93 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
94
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
95 src_install() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
96 dobin Main/truecrypt
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
97 dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf'
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
98 insinto "/$(get_libdir)/rcscripts/addons"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
99 newins "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
100 }
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
101
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
102 pkg_postinst() {
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
103 elog "potential legal problems - use at own risk"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
104 elog "http://lists.freedesktop.org/archives/distributions/2008-October/000276.html"
b31e97231708 adding truecrypt ebuild
Dirk Olmes <dirk.olmes@googlemail.com>
parents:
diff changeset
105 }