Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 522186 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 522186