Lines 1-36
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.1a.ebuild,v 1.7 2013/12/08 19:57:54 alonbl Exp $ |
|
|
4 |
|
3 |
|
5 |
EAPI="4" |
4 |
EAPI="4" |
6 |
|
5 |
|
7 |
inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils pax-utils |
6 |
inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils pax-utils |
8 |
|
7 |
|
9 |
DESCRIPTION="Free open-source disk encryption software" |
8 |
DESCRIPTION="Free open-source disk encryption software" |
10 |
HOMEPAGE="http://www.truecrypt.org/" |
9 |
HOMEPAGE="http://www.veracrypt.org/" |
11 |
SRC_URI="${P}.tar.gz |
10 |
SRC_URI="${P}.tar.bz2 |
12 |
${P}-pkcs11.h" |
11 |
${P}-pkcs11.h" |
13 |
|
12 |
|
|
|
13 |
#### well, it's actually VeraCrypt license, which states "VeraCrypt is governed by the TrueCrypt License version 3.0" |
14 |
LICENSE="truecrypt-3.0" |
14 |
LICENSE="truecrypt-3.0" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="-* ~amd64 ~ppc ~x86" |
16 |
KEYWORDS="-* ~amd64 ~ppc ~x86" |
17 |
IUSE="X +asm" |
17 |
IUSE="X +asm" |
18 |
RESTRICT="mirror fetch bindist" |
18 |
RESTRICT="mirror fetch bindist" |
19 |
|
19 |
|
|
|
20 |
WX_GTK_VER="2.9" |
21 |
|
22 |
|
20 |
RDEPEND=">=sys-fs/lvm2-2.02.45 |
23 |
RDEPEND=">=sys-fs/lvm2-2.02.45 |
21 |
sys-fs/fuse |
24 |
sys-fs/fuse |
22 |
x11-libs/wxGTK:2.8[X?] |
25 |
x11-libs/wxGTK:${WX_GTK_VER}[X?] |
23 |
app-admin/sudo" |
26 |
app-admin/sudo" |
24 |
DEPEND="${RDEPEND} |
27 |
DEPEND="${RDEPEND} |
25 |
!ppc? ( dev-lang/nasm )" |
28 |
!ppc? ( dev-lang/nasm )" |
26 |
|
29 |
|
27 |
S="${WORKDIR}/${P}-source" |
30 |
S="${WORKDIR}/src" |
28 |
|
31 |
|
29 |
#See bug 241650. |
32 |
#See bug 241650. |
30 |
pkg_nofetch() { |
33 |
pkg_nofetch() { |
31 |
elog "Please download the source archive \"TrueCrypt ${PV} Source.tar.gz\" from:" |
34 |
elog "Please download the source archive behind the link \"VeraCrypt 1.0f-1 Source (UNIX EOL)\" from:" |
32 |
elog "http://www.truecrypt.org/downloads2" |
35 |
elog "https://veracrypt.codeplex.com/releases/" |
33 |
elog "Then put the file in ${DISTDIR}/${P}.tar.gz" |
36 |
elog "Then put the file in ${DISTDIR}/${P}.tar.bz2" |
34 |
|
37 |
|
35 |
# until we support restricted fetch per URI |
38 |
# until we support restricted fetch per URI |
36 |
elog "" |
39 |
elog "" |
Lines 42-48
Link Here
|
42 |
local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS" |
45 |
local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS" |
43 |
linux-info_pkg_setup |
46 |
linux-info_pkg_setup |
44 |
|
47 |
|
45 |
local WX_GTK_VER="2.8" |
|
|
46 |
if use X; then |
48 |
if use X; then |
47 |
need-wxwidgets unicode |
49 |
need-wxwidgets unicode |
48 |
else |
50 |
else |
Lines 59-64
Link Here
|
59 |
epatch "${FILESDIR}/makefile-archdetect.diff" |
61 |
epatch "${FILESDIR}/makefile-archdetect.diff" |
60 |
epatch "${FILESDIR}/execstack-fix.diff" |
62 |
epatch "${FILESDIR}/execstack-fix.diff" |
61 |
epatch "${FILESDIR}/${P}-build.patch" |
63 |
epatch "${FILESDIR}/${P}-build.patch" |
|
|
64 |
epatch "${FILESDIR}/remove-packaging-from-makefile.patch" |
65 |
|
62 |
mkdir "${T}"/pkcs11 || die |
66 |
mkdir "${T}"/pkcs11 || die |
63 |
ln -s "${DISTDIR}"/${P}-pkcs11.h "${T}"/pkcs11/pkcs11.h || die |
67 |
ln -s "${DISTDIR}"/${P}-pkcs11.h "${T}"/pkcs11/pkcs11.h || die |
64 |
} |
68 |
} |
Lines 87-126
Link Here
|
87 |
} |
91 |
} |
88 |
|
92 |
|
89 |
src_test() { |
93 |
src_test() { |
90 |
"${S}/Main/truecrypt" --text --test || die "tests failed" |
94 |
"${S}/Main/veracrypt" --text --test || die "tests failed" |
91 |
} |
95 |
} |
92 |
|
96 |
|
93 |
src_install() { |
97 |
src_install() { |
94 |
dobin Main/truecrypt |
98 |
dobin Main/veracrypt |
95 |
dodoc Readme.txt "Release/Setup Files/TrueCrypt User Guide.pdf" |
99 |
dodoc Readme.txt "Release/Setup Files/VeraCrypt User Guide.pdf" |
96 |
exeinto "/$(get_libdir)/rcscripts/addons" |
100 |
exeinto "/$(get_libdir)/rcscripts/addons" |
97 |
newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" |
101 |
newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh" |
98 |
|
102 |
|
99 |
newinitd "${FILESDIR}/${PN}.init" ${PN} |
103 |
newinitd "${FILESDIR}/${PN}.init" ${PN} |
100 |
|
104 |
|
101 |
if use X; then |
105 |
if use X; then |
102 |
newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm |
106 |
newicon Resources/Icons/VeraCrypt-48x48.xpm veracrypt.xpm |
103 |
make_desktop_entry ${PN} "TrueCrypt" ${PN} "System" |
107 |
make_desktop_entry ${PN} "VeraCrypt" ${PN} "System" |
104 |
fi |
108 |
fi |
105 |
|
109 |
|
106 |
pax-mark -m "${D}/usr/bin/truecrypt" |
110 |
pax-mark -m "${D}/usr/bin/veracrypt" |
107 |
} |
111 |
} |
108 |
|
112 |
|
109 |
pkg_postinst() { |
113 |
pkg_postinst() { |
110 |
elog "There is now an init script for TrueCrypt for Baselayout-2." |
114 |
elog "There is an init script for VeraCrypt for Baselayout-2." |
111 |
elog "If you are a baselayout-2 user and you would like the TrueCrypt" |
115 |
elog "If you are a baselayout-2 user and you would like the VeraCrypt" |
112 |
elog "mappings removed on shutdown in order to prevent other file systems" |
116 |
elog "mappings removed on shutdown in order to prevent other file systems" |
113 |
elog "from unmounting then run:" |
117 |
elog "from unmounting then run:" |
114 |
elog "rc-update add truecrypt boot" |
118 |
elog "rc-update add veracrypt boot" |
115 |
elog |
119 |
elog |
116 |
|
120 |
|
117 |
ewarn "If you're getting errors about DISPLAY while using the terminal" |
121 |
ewarn "If you're getting errors about DISPLAY while using the terminal" |
118 |
ewarn "it's a known upstream bug. To use TrueCrypt from the terminal" |
122 |
ewarn "it's a known upstream bug. To use VeraCrypt from the terminal" |
119 |
ewarn "all that's necessary is to run: unset DISPLAY" |
123 |
ewarn "all that's necessary is to run: unset DISPLAY" |
120 |
ewarn "This will make the display unaccessable from that terminal " |
124 |
ewarn "This will make the display unaccessable from that terminal " |
121 |
ewarn "but at least you will be able to access your volumes." |
125 |
ewarn "but at least you will be able to access your volumes." |
122 |
ewarn |
126 |
ewarn |
123 |
|
127 |
|
124 |
ewarn "TrueCrypt has a very restrictive license. Please be explicitly aware" |
128 |
ewarn "VeraCrypt has a very restrictive license. Please be explicitly aware" |
125 |
ewarn "of the limitations on redistribution of binaries or modified source." |
129 |
ewarn "of the limitations on redistribution of binaries or modified source." |
126 |
} |
130 |
} |