diff options
author | Daniel Black <dragonheart@gentoo.org> | 2006-06-05 08:19:18 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2006-06-05 08:19:18 +0000 |
commit | 8c57c91ae46365b224cf72df0670a9e35148ce57 (patch) | |
tree | 207bc6d2778ee01cea6b8bf033ee4b8304664720 /app-crypt/truecrypt | |
parent | Stable amd64 and sparc. (diff) | |
download | gentoo-2-8c57c91ae46365b224cf72df0670a9e35148ce57.tar.gz gentoo-2-8c57c91ae46365b224cf72df0670a9e35148ce57.tar.bz2 gentoo-2-8c57c91ae46365b224cf72df0670a9e35148ce57.zip |
initial ebuild as per bug #112197 largely based off ebuild by Greg Tassone
(Portage version: 2.1_rc4-r1)
Diffstat (limited to 'app-crypt/truecrypt')
-rw-r--r-- | app-crypt/truecrypt/ChangeLog | 10 | ||||
-rw-r--r-- | app-crypt/truecrypt/Manifest | 20 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/digest-truecrypt-4.2 | 3 | ||||
-rw-r--r-- | app-crypt/truecrypt/files/truecrypt-4.2-makefile.patch | 67 | ||||
-rw-r--r-- | app-crypt/truecrypt/metadata.xml | 8 | ||||
-rw-r--r-- | app-crypt/truecrypt/truecrypt-4.2.ebuild | 103 |
6 files changed, 211 insertions, 0 deletions
diff --git a/app-crypt/truecrypt/ChangeLog b/app-crypt/truecrypt/ChangeLog new file mode 100644 index 000000000000..472db985314d --- /dev/null +++ b/app-crypt/truecrypt/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-crypt/truecrypt +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.1 2006/06/05 08:19:18 dragonheart Exp $ + +*truecrypt-4.2 (05 Jun 2006) + + 05 Jun 2006; Daniel Black <dragonheart@gentoo.org> + +files/truecrypt-4.2-makefile.patch, +metadata.xml, +truecrypt-4.2.ebuild: + initial ebuild as per bug #112197 largely based off ebuild by Greg Tassone + diff --git a/app-crypt/truecrypt/Manifest b/app-crypt/truecrypt/Manifest new file mode 100644 index 000000000000..5dca46309e95 --- /dev/null +++ b/app-crypt/truecrypt/Manifest @@ -0,0 +1,20 @@ +AUX truecrypt-4.2-makefile.patch 1542 RMD160 7b90440b283ba8effdf926b96f6926f9970a333a SHA1 12d2a262883665b85cfc6f7df9a31ad26eabafe9 SHA256 80f878634534d9b72120cd78dfb230b465bc2ef2e75494efc3b6fa5a4693f2de +MD5 5ea0f8c902f83757e908e02f121d900f files/truecrypt-4.2-makefile.patch 1542 +RMD160 7b90440b283ba8effdf926b96f6926f9970a333a files/truecrypt-4.2-makefile.patch 1542 +SHA256 80f878634534d9b72120cd78dfb230b465bc2ef2e75494efc3b6fa5a4693f2de files/truecrypt-4.2-makefile.patch 1542 +DIST truecrypt-4.2-source-code.tar.gz 1076093 RMD160 74ba185bad9952ea9b3b0e358e9fee6f2080e6b9 SHA1 603bac50891c49b051f7a9bcc15b1196168bff2a SHA256 54f54cd68c99efe3fd2c0899174b38d4cfe1ad576112672aabd2ac64e336cd1f +EBUILD truecrypt-4.2.ebuild 2757 RMD160 1ec65c70dc936293ae8f7d0ca96242fd450fc129 SHA1 f9e997e9296a718bf0c11379d143dd626365fc29 SHA256 c5a4076ba301f5e75e56c6d852db51fd9feafebec8521051877dabb88197ad98 +MD5 e12a4ba1e9a6049ed1782b24ba385943 truecrypt-4.2.ebuild 2757 +RMD160 1ec65c70dc936293ae8f7d0ca96242fd450fc129 truecrypt-4.2.ebuild 2757 +SHA256 c5a4076ba301f5e75e56c6d852db51fd9feafebec8521051877dabb88197ad98 truecrypt-4.2.ebuild 2757 +MISC ChangeLog 358 RMD160 0687b4385408c50587e7330dbeeeae0502fde900 SHA1 f34f518e4e148f9aa7f30bec18babb883fabbfcd SHA256 c9dccdf04a7e52c1f21cb9c3b23090e15f85ad98a811b90f27c0e3ee3da47544 +MD5 c32f1538c3795bf667c9785cf4773ec4 ChangeLog 358 +RMD160 0687b4385408c50587e7330dbeeeae0502fde900 ChangeLog 358 +SHA256 c9dccdf04a7e52c1f21cb9c3b23090e15f85ad98a811b90f27c0e3ee3da47544 ChangeLog 358 +MISC metadata.xml 224 RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 SHA1 d86a171d981b45e7ed0c0b3b5059d2a63c811001 SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86 +MD5 566cf4f89e44670d0aba4a745913d748 metadata.xml 224 +RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 metadata.xml 224 +SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86 metadata.xml 224 +MD5 f32ba14b3b0c568e21d7dd5c6754851d files/digest-truecrypt-4.2 280 +RMD160 61f26925d2f0d6141f6044018997143bdef215c0 files/digest-truecrypt-4.2 280 +SHA256 200aa4f6243ac5b5f4cff0aa69d85c25b74456555c04e5db2b2e1327d7f0e9a6 files/digest-truecrypt-4.2 280 diff --git a/app-crypt/truecrypt/files/digest-truecrypt-4.2 b/app-crypt/truecrypt/files/digest-truecrypt-4.2 new file mode 100644 index 000000000000..9951f54d3da9 --- /dev/null +++ b/app-crypt/truecrypt/files/digest-truecrypt-4.2 @@ -0,0 +1,3 @@ +MD5 8ea4464f3f89fe8c367dc19982a8f611 truecrypt-4.2-source-code.tar.gz 1076093 +RMD160 74ba185bad9952ea9b3b0e358e9fee6f2080e6b9 truecrypt-4.2-source-code.tar.gz 1076093 +SHA256 54f54cd68c99efe3fd2c0899174b38d4cfe1ad576112672aabd2ac64e336cd1f truecrypt-4.2-source-code.tar.gz 1076093 diff --git a/app-crypt/truecrypt/files/truecrypt-4.2-makefile.patch b/app-crypt/truecrypt/files/truecrypt-4.2-makefile.patch new file mode 100644 index 000000000000..8b4017f6bc09 --- /dev/null +++ b/app-crypt/truecrypt/files/truecrypt-4.2-makefile.patch @@ -0,0 +1,67 @@ +--- Linux/Cli/Makefile.orig 2006-03-26 06:29:38.000000000 +1100 ++++ Linux/Cli/Makefile 2006-06-05 17:57:29.000000000 +1000 +@@ -3,27 +3,16 @@ + TC_COMMON := ../../Common + TC_CRYPTO := ../../Crypto + +-CC := gcc ++CC ?= gcc + + ifneq ($(MAKECMDGOALS),clean) + -include ../Common/.platform + endif + +-ifdef NO_WARNINGS +-CFLAGS := -w +-else +-CFLAGS := -W +-endif + CFLAGS += -I../../Crypto -I../../Common -I../Kernel + CFLAGS += -D_cdecl="" -DBOOL=int -DTRUE=1 -DFALSE=0 -DMAX_PATH=260 + CFLAGS += $(TYPES) + +-ifndef DEBUG +-CFLAGS += -O2 -fno-strict-aliasing +-else +-CFLAGS += -ggdb +-endif +- + KERNEL_OBJS_F := ../.kernel-objs + USER_OBJS_F := ../.user-objs + +@@ -61,18 +50,18 @@ + @echo Compiling $(<F) + @$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -MMD -o $@ -c $< + +-all: objclean truecrypt ++all: $(USER_OBJS_F) truecrypt + @echo Done. + + ../Common/.platform: ../Common/Platform.c +- @$(CC) -o ../Common/platform $< ++ $(CC) -o ../Common/platform $< + @../Common/platform >../Common/.platform + + -include $(OBJS:.o=.d) + + truecrypt: $(OBJS) + @echo Linking $@ +- @$(CC) -o $@ $(OBJS) ++ $(CC) -o $@ $(OBJS) + ifndef DEBUG + @strip $@ + endif +@@ -82,9 +71,11 @@ + truecrypt.1: objclean truecrypt + help2man -N -i Man/help2man.inc ./truecrypt >Man/truecrypt.1 + +-objclean: +- @if [ -f $(KERNEL_OBJS_F) ]; then rm -f ${OBJS} $(KERNEL_OBJS_F); fi ++$(USER_OBJS_F): ++ @[ -f $(KERNEL_OBJS_F) ] && rm -f ${OBJS} $(KERNEL_OBJS_F) + @>$(USER_OBJS_F) + + clean: + -rm -f truecrypt ${OBJS} *.d $(TC_COMMON)/*.d $(TC_CRYPTO)/*.d ../Common/platform ../Common/.platform ++ ++.PHONY: man clean diff --git a/app-crypt/truecrypt/metadata.xml b/app-crypt/truecrypt/metadata.xml new file mode 100644 index 000000000000..df1a1a8242fe --- /dev/null +++ b/app-crypt/truecrypt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <maintainer> + <email>crypto@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-crypt/truecrypt/truecrypt-4.2.ebuild b/app-crypt/truecrypt/truecrypt-4.2.ebuild new file mode 100644 index 000000000000..0bef8def14fa --- /dev/null +++ b/app-crypt/truecrypt/truecrypt-4.2.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-4.2.ebuild,v 1.1 2006/06/05 08:19:18 dragonheart Exp $ + +inherit linux-mod toolchain-funcs + +DESCRIPTION="Free open-source disk encryption software for Windows XP/2000/2003 and Linux" +HOMEPAGE="http://www.truecrypt.org/" +SRC_URI="http://www.truecrypt.org/downloads/truecrypt-${PV}-source-code.tar.gz" + +LICENSE="truecrypt-2.0" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="virtual/linux-sources + sys-fs/device-mapper" + +RDEPEND="sys-fs/device-mapper" + +BUILD_PARAMS="KSRC=${KV_DIR} NO_WARNINGS=1" +BUILD_TARGETS="truecrypt" +MODULE_NAMES="truecrypt(block:${S}/Linux/Kernel)" + +pkg_setup() { + linux-info_pkg_setup + dmcrypt_check + kernel_is lt 2 6 5 && die 'requires at least 2.6.5 kernel version' +} + +src_unpack() { + unpack ${A} + cd "${S}" + linux-mod_pkg_setup + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_compile() { + linux-mod_src_compile || die "Truecrypt module compilation failed." + cd "${S}/Linux/Cli" + einfo "Building truecrypt utility" + tc-export CC + # remove kernel linked crypt stuff + emake clean || die "make clean failed" + emake truecrypt || 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>&- + if grep -q "^truecrypt" /proc/modules + then + die "Please dismount all mounted TrueCrypt volumes" + fi +} + +src_install() { + # installing files + dobin Linux/Cli/truecrypt + doman Linux/Cli/Man/truecrypt.1 + dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf' + + # installing kernel module + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + einfo " For TrueCrypt 4.2 to work you have to load a " + einfo " kernel module. This can be done in three ways: " + einfo + einfo " 1. Loading the module automatically by the running kernel. " + einfo " For this 'Automatic kernel module loading' needs to be " + einfo " enabled (CONFIG_KMOD=y). " + einfo " 2. Loading the module manually before mounting the volume. " + einfo " Try 'modprobe truecrypt' as root to load the module. " + einfo " 3. Load the module during boot by listing it in " + einfo " '/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 +} + |