summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smithdanea@gmail.com>2010-10-13 13:24:45 -0400
committerDane Smith <smithdanea@gmail.com>2010-10-13 13:24:45 -0400
commit20ba7f9feae9ed1f31691164c1b7550b6ab1e4c4 (patch)
tree039bb1ea1d1655a00fa9e3adf08e9f7437792d24 /app-crypt
parentUpdated ebuild (diff)
parentNew ebuild for botan to be tested (diff)
downloadsmithdanea-20ba7f9feae9ed1f31691164c1b7550b6ab1e4c4.tar.gz
smithdanea-20ba7f9feae9ed1f31691164c1b7550b6ab1e4c4.tar.bz2
smithdanea-20ba7f9feae9ed1f31691164c1b7550b6ab1e4c4.zip
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/user/smithdanea
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/truecrypt/Manifest2
-rw-r--r--app-crypt/truecrypt/truecrypt-7.0a.ebuild99
2 files changed, 101 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/Manifest b/app-crypt/truecrypt/Manifest
index 579ad4f..1b7b92a 100644
--- a/app-crypt/truecrypt/Manifest
+++ b/app-crypt/truecrypt/Manifest
@@ -3,5 +3,7 @@ AUX truecrypt-4.3a-2.6.24.patch 1658 RMD160 c29522d767f96ae01e266fbfd8441ddd3704
AUX truecrypt-4.3a-2.6.29.patch 416 RMD160 dc7721e5ac0ebd5a075c4f6c0d8cf80524cd549b SHA1 25f3ac87d78af68c40956ba788ac323b8ce73941 SHA256 a4d9da64b1976635c8ce97ca0dbd7e8e3b6805efc37d1616aa6046502278d1de
AUX truecrypt-stop.sh 308 RMD160 4b2e6f47520f701324c03b5a43118cc38ee409a3 SHA1 7139ba403e482a4746e1d545115b74760b1438ea SHA256 243a9d1041b291e12ce2065959838f0cfe01484bffac7915991ebeb90d2ccd2c
DIST truecrypt-7.0.tar.gz 1973038 RMD160 20947227c4e9ba0a0383e0b9b27ea350bb1dc0f8 SHA1 a1e73ce533fb21f7c878d34fa9a62c55a605924e SHA256 0b173af97abb542eb61431312a484d517abf922d86dc0446f5f9ca7c617100ed
+DIST truecrypt-7.0a.tar.gz 1996312 RMD160 92b01f87c725feb43aded666ba44fcbd3e3ac740 SHA1 42be0f333e6791e7a122b3e1183e014cd3860198 SHA256 6c845153ee868429e2a531407383e9349754d1579cf66fc838632c44baaba021
EBUILD truecrypt-7.0.ebuild 2617 RMD160 f4b4617c71212da32bcc7aa0501efe9c9e781df6 SHA1 cdc8ad210b00b785bb84c0498cbbab25bd0a20a1 SHA256 df756cbd0818627e97b27754586348e72def08c2ba7ef4a6872b71365bbd90d6
+EBUILD truecrypt-7.0a.ebuild 2451 RMD160 e25a816f7e8188807c7d6f238c3a811bb94790dc SHA1 f2a497ec547c6f64d27de51047c4664a116f9135 SHA256 dcb4edc2921d82ae0d3ce850ac207f852f7e8b3b81795dc73d809cbc3034c3d3
MISC metadata.xml 224 RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 SHA1 d86a171d981b45e7ed0c0b3b5059d2a63c811001 SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86
diff --git a/app-crypt/truecrypt/truecrypt-7.0a.ebuild b/app-crypt/truecrypt/truecrypt-7.0a.ebuild
new file mode 100644
index 0000000..68efcd0
--- /dev/null
+++ b/app-crypt/truecrypt/truecrypt-7.0a.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit flag-o-matic linux-info multilib toolchain-funcs wxwidgets
+
+DESCRIPTION="Free open-source disk encryption software"
+HOMEPAGE="http://www.truecrypt.org/"
+SRC_URI="${P}.tar.gz"
+
+LICENSE="truecrypt-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="X"
+RESTRICT="bindist fetch mirror"
+
+RDEPEND="|| ( >=sys-fs/lvm2-2.02.45 sys-fs/device-mapper )
+ sys-fs/fuse
+ x11-libs/wxGTK:2.8[X?]"
+DEPEND="${RDEPEND}
+ || ( dev-libs/pkcs11-helper dev-libs/opensc )"
+RDEPEND="${RDEPEND}
+ app-admin/sudo"
+
+S="${WORKDIR}/${P}-source"
+
+pkg_nofetch() {
+ elog "Please download .tar.gz source from:"
+ elog "http://www.truecrypt.org/downloads2"
+ elog "Then put the file in ${DISTDIR}/${SRC_URI}"
+}
+
+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
+}
+
+src_compile() {
+ local EXTRA pkcs11_include_directory
+
+ use X || EXTRA+=" NOGUI=1"
+
+ if has_version dev-libs/pkcs11-helper; then
+ pkcs11_include_directory="/usr/include/pkcs11-helper-1.0"
+ else
+ pkcs11_include_directory="/usr/include/opensc"
+ fi
+ 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="${pkcs11_include_directory}" \
+ || die "emake failed"
+}
+
+src_test() {
+ "${S}/Main/truecrypt" --text --test || die "tests failed"
+}
+
+src_install() {
+ dobin Main/truecrypt
+ dodoc Readme.txt "Release/Setup Files/TrueCrypt User Guide.pdf"
+ exeinto "/$(get_libdir)/rcscripts/addons"
+ newexe "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
+}
+
+pkg_postinst() {
+ ewarn "TrueCrypt has very restrictive license."
+ ewarn "Please read the ${LICENSE} license in ${PORTDIR}/licenses"
+ ewarn "directory before using TrueCrypt. Please be explicitly aware of"
+ ewarn "the limitations on redistribution of binaries or modified source."
+}