summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2014-07-06 19:42:57 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2014-07-06 19:42:57 +0000
commit0a84fde1b1b16efbc444d0c8094d178790be4454 (patch)
tree31ced9cabb3956464729ad016364e3178b7ad216 /app-crypt
parentImprove dependencies (diff)
downloadgentoo-2-0a84fde1b1b16efbc444d0c8094d178790be4454.tar.gz
gentoo-2-0a84fde1b1b16efbc444d0c8094d178790be4454.tar.bz2
gentoo-2-0a84fde1b1b16efbc444d0c8094d178790be4454.zip
Version bump
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/truecrypt/ChangeLog9
-rw-r--r--app-crypt/truecrypt/truecrypt-7.2.ebuild114
2 files changed, 121 insertions, 2 deletions
diff --git a/app-crypt/truecrypt/ChangeLog b/app-crypt/truecrypt/ChangeLog
index 86be233df8cc..3abc1d9f40cc 100644
--- a/app-crypt/truecrypt/ChangeLog
+++ b/app-crypt/truecrypt/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-crypt/truecrypt
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.77 2013/12/08 19:57:54 alonbl Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.78 2014/07/06 19:42:57 alonbl Exp $
+
+*truecrypt-7.2 (06 Jul 2014)
+
+ 06 Jul 2014; Alon Bar-Lev <alonbl@gentoo.org> +truecrypt-7.2.ebuild:
+ Version bump
08 Dec 2013; Alon Bar-Lev <alonbl@gentoo.org>
+files/truecrypt-7.1a-build.patch, truecrypt-7.1a.ebuild:
diff --git a/app-crypt/truecrypt/truecrypt-7.2.ebuild b/app-crypt/truecrypt/truecrypt-7.2.ebuild
new file mode 100644
index 000000000000..626db8037996
--- /dev/null
+++ b/app-crypt/truecrypt/truecrypt-7.2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-7.2.ebuild,v 1.1 2014/07/06 19:42:57 alonbl Exp $
+
+EAPI="5"
+
+inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets eutils pax-utils
+
+DESCRIPTION="Free open-source disk encryption software"
+HOMEPAGE="http://www.truecrypt.org/"
+SRC_URI="mirror://sourceforge/${PN}/TrueCrypt/Other/TrueCrypt-${PV}-source-unix.tar.gz
+ http://git.gnupg.org/cgi-bin/gitweb.cgi?p=scute.git;a=blob_plain;f=src/pkcs11.h;hb=38bdba0bb1ab93950489c645938c93ed577f9139 -> ${P}-pkcs11.h"
+
+LICENSE="truecrypt-3.0"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~ppc ~x86"
+IUSE="X +asm"
+RESTRICT="bindist"
+
+RDEPEND=">=sys-fs/lvm2-2.02.45
+ sys-fs/fuse
+ x11-libs/wxGTK:2.8[X?]
+ app-admin/sudo"
+DEPEND="${RDEPEND}
+ !ppc? ( dev-lang/nasm )"
+
+S="${WORKDIR}/${P}-source"
+
+pkg_setup() {
+ local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO ~CRYPTO_XTS"
+ linux-info_pkg_setup
+
+ local WX_GTK_VER="2.8"
+ if use X; then
+ need-wxwidgets unicode
+ else
+ need-wxwidgets base-unicode
+ fi
+}
+
+src_prepare() {
+ if has_version x11-libs/wxGTK[X]; then
+ # Fix linking when NOGUI=1
+ sed -e "s/WX_CONFIG_LIBS := base/&,core/" -i Main/Main.make || die "sed Main/Main.make failed"
+ fi
+
+ epatch "${FILESDIR}/makefile-archdetect.diff"
+ epatch "${FILESDIR}/execstack-fix.diff"
+ epatch "${FILESDIR}/${PN}-7.1a-build.patch"
+ mkdir "${T}"/pkcs11 || die
+ ln -s "${DISTDIR}"/${P}-pkcs11.h "${T}"/pkcs11/pkcs11.h || die
+}
+
+src_compile() {
+ local EXTRA
+
+ use X || EXTRA+=" NOGUI=1"
+ use asm || EXTRA+=" NOASM=1"
+ append-flags -DCKR_NEW_PIN_MODE=0x000001B0 -DCKR_NEXT_OTP=0x000001B1
+
+ emake \
+ ${EXTRA} \
+ NOSTRIP=1 \
+ NOTEST=1 \
+ VERBOSE=1 \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ TC_EXTRA_CFLAGS="${CFLAGS}" \
+ TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \
+ TC_EXTRA_LFLAGS="${LDFLAGS}" \
+ WX_CONFIG="${WX_CONFIG}" \
+ PKCS11_INC="${T}/pkcs11/"
+}
+
+src_test() {
+ "${S}/Main/truecrypt" --text --test || die "tests failed"
+}
+
+src_install() {
+ dobin Main/truecrypt
+ dodoc Readme.txt
+ exeinto "/$(get_libdir)/rcscripts/addons"
+ newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
+
+ newinitd "${FILESDIR}/${PN}.init" ${PN}
+
+ if use X; then
+ newicon Resources/Icons/TrueCrypt-48x48.xpm truecrypt.xpm
+ make_desktop_entry ${PN} "TrueCrypt" ${PN} "System"
+ fi
+
+ pax-mark -m "${D}/usr/bin/truecrypt"
+}
+
+pkg_postinst() {
+ elog "There is now an init script for TrueCrypt for Baselayout-2."
+ elog "If you are a baselayout-2 user and you would like the TrueCrypt"
+ elog "mappings removed on shutdown in order to prevent other file systems"
+ elog "from unmounting then run:"
+ elog "rc-update add truecrypt boot"
+ elog
+
+ ewarn "If you're getting errors about DISPLAY while using the terminal"
+ ewarn "it's a known upstream bug. To use TrueCrypt from the terminal"
+ ewarn "all that's necessary is to run: unset DISPLAY"
+ ewarn "This will make the display unaccessable from that terminal "
+ ewarn "but at least you will be able to access your volumes."
+ ewarn
+
+ ewarn "TrueCrypt has a very restrictive license. Please be explicitly aware"
+ ewarn "of the limitations on redistribution of binaries or modified source."
+}