bye bye truecrypt
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
AUX truecrypt-kernel-2.6.23.patch 503 RMD160 e3d7905ff810256fc4d871e7f3881b32f8a661ad SHA1 76c9efe67ca12dc5eba506ef74b672e12fc47ef1 SHA256 fbe49f0ce4c84ea704828fa06cc54e16713ca762010bd8dba35519b69c9b73ab
|
||||
MD5 a415f54462a171eec5b4c3d4432d4856 files/truecrypt-kernel-2.6.23.patch 503
|
||||
RMD160 e3d7905ff810256fc4d871e7f3881b32f8a661ad files/truecrypt-kernel-2.6.23.patch 503
|
||||
SHA256 fbe49f0ce4c84ea704828fa06cc54e16713ca762010bd8dba35519b69c9b73ab files/truecrypt-kernel-2.6.23.patch 503
|
||||
DIST truecrypt-4.3a-source-code.tar.gz 1110554 RMD160 1a24ae6132b43876161a090751c19afed7c5c996 SHA1 30c91901171c3c8290d4d0de856774cdf7ee4ed6 SHA256 d5515cfeb1bb328ad6f13ef347cd9422b4bb15bf849aabc4cd4f2f69a3e0c74a
|
||||
EBUILD truecrypt-4.3a-r10.ebuild 3259 RMD160 335104c6a14c3acaba294e182ddcef6c436c8e68 SHA1 6b7ab44941d4dca425dac14e5a7210ec1ad23876 SHA256 a34e5df7aac0081614aa6b3a47cea28635259888cc16841131697cbd06ad05ef
|
||||
MD5 359d7dce38d7c05276579619ea44012c truecrypt-4.3a-r10.ebuild 3259
|
||||
RMD160 335104c6a14c3acaba294e182ddcef6c436c8e68 truecrypt-4.3a-r10.ebuild 3259
|
||||
SHA256 a34e5df7aac0081614aa6b3a47cea28635259888cc16841131697cbd06ad05ef truecrypt-4.3a-r10.ebuild 3259
|
||||
MD5 813f17ea64c1829e46b7a813e710416c files/digest-truecrypt-4.3a-r10 283
|
||||
RMD160 b21a2c0f42ddedaef436b2620dbfc3408132ceb2 files/digest-truecrypt-4.3a-r10 283
|
||||
SHA256 1c004881bb6b1d97cca319829224e032d931df577f4c1e91d7516cee8bd8f287 files/digest-truecrypt-4.3a-r10 283
|
||||
@@ -1,15 +0,0 @@
|
||||
--- Linux/Kernel/Dm-target.c.orig 2007-10-11 17:09:44.000000000 +0000
|
||||
+++ Linux/Kernel/Dm-target.c 2007-10-11 17:16:41.000000000 +0000
|
||||
@@ -656,7 +656,12 @@
|
||||
goto err;
|
||||
}
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
|
||||
bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL, NULL);
|
||||
+#else
|
||||
+ bio_ctx_cache = kmem_cache_create ("truecrypt-bioctx", sizeof (struct bio_ctx), 0, 0, NULL);
|
||||
+#endif
|
||||
+
|
||||
if (!bio_ctx_cache)
|
||||
{
|
||||
error ("kmem_cache_create failed");
|
||||
@@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-4.3a.ebuild,v 1.1 2007/06/07 16:50:20 alonbl Exp $
|
||||
|
||||
#
|
||||
# NOTES:
|
||||
# - Upstream overwrite CFLAGS, and does not wish us to mess with them.
|
||||
# - Upstream insist on hiding the Makefile commands... Don't wish to patch it
|
||||
# again.
|
||||
# - Some issues with parallel make of user mode library.
|
||||
# - Upstream is not responsive, even new kernel versions are not supported
|
||||
# by upstream, but by other users.
|
||||
#
|
||||
|
||||
inherit linux-mod toolchain-funcs multilib
|
||||
|
||||
DESCRIPTION="Free open-source disk encryption software"
|
||||
HOMEPAGE="http://www.truecrypt.org/"
|
||||
SRC_URI="http://www.truecrypt.org/downloads/truecrypt-${PV}-source-code.tar.gz"
|
||||
|
||||
LICENSE="truecrypt-collective-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="sys-fs/device-mapper"
|
||||
DEPEND="virtual/linux-sources
|
||||
${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}-source-code"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch ${FILESDIR}/truecrypt-kernel-2.6.23.patch
|
||||
}
|
||||
pkg_setup() {
|
||||
linux-mod_pkg_setup
|
||||
dmcrypt_check
|
||||
kernel_is lt 2 6 5 && die 'requires at least 2.6.5 kernel version'
|
||||
|
||||
BUILD_PARAMS="KERNEL_SRC=${KERNEL_DIR} NO_WARNINGS=1"
|
||||
BUILD_TARGETS="truecrypt"
|
||||
MODULE_NAMES="truecrypt(block:${S}/Linux/Kernel)"
|
||||
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
linux-mod_src_compile || die "Truecrypt module compilation failed."
|
||||
|
||||
einfo "Building truecrypt utility"
|
||||
cd "${S}/Linux/Cli"
|
||||
MAKEOPTS="-j1" emake all NO_STRIP=1 NO_WARNINGS=1 CC="$(tc-getCC)" || die "Compile and/or linking of TrueCrypt Linux CLI application failed."
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${S}/Linux/Cli/truecrypt" --test
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# unload truecrypt modules if already loaded
|
||||
/sbin/rmmod truecrypt >&- 2>&-
|
||||
grep -q "^truecrypt" /proc/modules && die "Please dismount all mounted TrueCrypt volumes"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
|
||||
einfo "Installing truecrypt utility"
|
||||
cd "${S}"
|
||||
dobin Linux/Cli/truecrypt
|
||||
doman Linux/Cli/Man/truecrypt.1
|
||||
dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf'
|
||||
insinto "/$(get_libdir)/rcscripts/addons"
|
||||
newins "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod_pkg_postinst
|
||||
elog " For TrueCrypt 4.2 to work you have to load a "
|
||||
elog " kernel module. This can be done in three ways: "
|
||||
elog
|
||||
elog " 1. Loading the module automatically by the running kernel. "
|
||||
elog " For this 'Automatic kernel module loading' needs to be "
|
||||
elog " enabled (CONFIG_KMOD=y). "
|
||||
elog " 2. Loading the module manually before mounting the volume. "
|
||||
elog " Try 'modprobe truecrypt' as root to load the module. "
|
||||
elog " 3. Load the module during boot by listing it in "
|
||||
elog " '/etc/modules.autoload.d/kernel-2.6' "
|
||||
}
|
||||
|
||||
dmcrypt_check() {
|
||||
ebegin "Checking for Device mapper support (BLK_DEV_DM)"
|
||||
linux_chkconfig_present BLK_DEV_DM
|
||||
eend $?
|
||||
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
ewarn "TrueCrypt requires Device mapper support!"
|
||||
ewarn "Please enable Device mapper support in your kernel config, found at:"
|
||||
ewarn "(for 2.6 kernels)"
|
||||
ewarn
|
||||
ewarn " Device Drivers"
|
||||
ewarn " Multi-Device Support"
|
||||
ewarn " <*> Device mapper support"
|
||||
ewarn
|
||||
ewarn "and recompile your kernel if you want this package to work."
|
||||
epause 10
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user