diff options
author | Eric Hameleers <alien@slackware.com> | 2007-01-14 16:53:05 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-01-14 16:53:05 +0000 |
commit | 70654e138f562d59344b009f860aa616ab0aa11e (patch) | |
tree | 0f3a8ea349617207f2b9ef5ce7796c66cfd8f618 /truecrypt/build | |
parent | fde607f8b84e9c230be1c8631c30c424f47c9df8 (diff) | |
download | asb-70654e138f562d59344b009f860aa616ab0aa11e.tar.gz asb-70654e138f562d59344b009f860aa616ab0aa11e.tar.xz |
Initial revision
Diffstat (limited to 'truecrypt/build')
-rw-r--r-- | truecrypt/build/dmerr.patch | 17 | ||||
-rw-r--r-- | truecrypt/build/slack-desc | 19 | ||||
-rw-r--r-- | truecrypt/build/slack-required | 1 | ||||
-rw-r--r-- | truecrypt/build/truecrypt-4.2a-Dm-target.c--kernel-2.6.18-and-2.6.19.patch | 87 |
4 files changed, 124 insertions, 0 deletions
diff --git a/truecrypt/build/dmerr.patch b/truecrypt/build/dmerr.patch new file mode 100644 index 00000000..3de4006c --- /dev/null +++ b/truecrypt/build/dmerr.patch @@ -0,0 +1,17 @@ +--- Dm-target.c.orig 2006-12-02 02:07:30.000000000 +0100 ++++ Dm-target.c 2006-12-02 02:08:58.000000000 +0100 +@@ -28,10 +28,10 @@ + + int trace_level = 0; + +-#define MSG_PREFIX "truecrypt: " +-#define error(fmt, args...) printk(KERN_ERR MSG_PREFIX fmt, ## args) +-#define trace(level, fmt, args...) level <= trace_level && printk(KERN_DEBUG MSG_PREFIX fmt, ## args) +-#define dbg(fmt, args...) printk(KERN_DEBUG MSG_PREFIX fmt, ## args) ++#define DM_MSG_PREFIX "truecrypt: " ++#define error(fmt, args...) printk(KERN_ERR DM_MSG_PREFIX fmt, ## args) ++#define trace(level, fmt, args...) level <= trace_level && printk(KERN_DEBUG DM_MSG_PREFIX fmt, ## args) ++#define dbg(fmt, args...) printk(KERN_DEBUG DM_MSG_PREFIX fmt, ## args) + + #define MIN_POOL_SIZE 16 + diff --git a/truecrypt/build/slack-desc b/truecrypt/build/slack-desc new file mode 100644 index 00000000..12ad9a59 --- /dev/null +++ b/truecrypt/build/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +truecrypt: truecrypt (On-the-fly disk encryption) +truecrypt: +truecrypt: TrueCrypt can create a virtual encrypted disk within a file and mount +truecrypt: it as a real disk. It can encrypt an entire hard disk partition or a +truecrypt: device, such as USB memory stick, floppy disk, etc. It provides two +truecrypt: levels of plausible deniability, in case an adversary forces you to +truecrypt: reveal the password: 1) Hidden volume 2) No TrueCrypt volume can be +truecrypt: identified. Supports many encryption algorithms. +truecrypt: TrueCrypt is multi-platform (supports MS-Windows TrueCrypt volumes) +truecrypt: This package was compiled for kernel '@@KERNELVERS@@' ! +truecrypt: truecrypt home: http://www.truecrypt.org/ diff --git a/truecrypt/build/slack-required b/truecrypt/build/slack-required new file mode 100644 index 00000000..98b6f523 --- /dev/null +++ b/truecrypt/build/slack-required @@ -0,0 +1 @@ +device-mapper >= 1.00.08 diff --git a/truecrypt/build/truecrypt-4.2a-Dm-target.c--kernel-2.6.18-and-2.6.19.patch b/truecrypt/build/truecrypt-4.2a-Dm-target.c--kernel-2.6.18-and-2.6.19.patch new file mode 100644 index 00000000..f88a79ab --- /dev/null +++ b/truecrypt/build/truecrypt-4.2a-Dm-target.c--kernel-2.6.18-and-2.6.19.patch @@ -0,0 +1,87 @@ +--- truecrypt-4.2a/Linux/Kernel/Dm-target.c 2006-12-11 17:50:46.000000000 +0200 ++++ truecrypt-4.2a.new/Linux/Kernel/Dm-target.c 2006-12-10 19:32:43.000000000 +0200 +@@ -22,6 +22,35 @@ + #include "Tests.h" + #include "Dm-target.h" + ++/* http://kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.17-rc1 ++ * ++ * commit 4ee218cd67b385759993a6c840ea45f0ee0a8b30 ++ * Author: Andrew Morton <akpm@osdl.org> ++ * Date: Mon Mar 27 01:17:48 2006 -0800 ++ * ++ * [PATCH] dm: remove SECTOR_FORMAT ++ * ++ * We don't know what type sector_t has. Sometimes it's unsigned long, sometimes ++ * it's unsigned long long. For example on ppc64 it's unsigned long with ++ * CONFIG_LBD=n and on x86_64 it's unsigned long long with CONFIG_LBD=n. ++ * ++ * The way to handle all of this is to always use unsigned long long and to ++ * always typecast the sector_t when printing it. ++ * ++ * Acked-by: Alasdair G Kergon <agk@redhat.com> ++ * Signed-off-by: Andrew Morton <akpm@osdl.org> ++ * Signed-off-by: Linus Torvalds <torvalds@osdl.org> ++ * ++ */ ++ ++#ifndef SECTOR_FORMAT ++# ifndef CONFIG_LBD /* Large Block Device defined*/ ++# define SECTOR_FORMAT "%lu" /* No 32Bit uint */ ++# else ++# define SECTOR_FORMAT "%llu" /* Yes 64Bit uint */ ++# endif ++#endif ++ + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,5) + #error Linux kernel 2.6.5 or later required + #endif +@@ -29,6 +58,11 @@ + int trace_level = 0; + + #define MSG_PREFIX "truecrypt: " ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) ++# define DM_MSG_PREFIX MSG_PREFIX ++#endif ++ + #define error(fmt, args...) printk(KERN_ERR MSG_PREFIX fmt, ## args) + #define trace(level, fmt, args...) level <= trace_level && printk(KERN_DEBUG MSG_PREFIX fmt, ## args) + #define dbg(fmt, args...) printk(KERN_DEBUG MSG_PREFIX fmt, ## args) +@@ -125,7 +159,11 @@ + return p; + + trace (3, "blk_congestion_wait\n"); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ congestion_wait (direction, HZ / 50); ++#else + blk_congestion_wait (direction, HZ / 50); ++#endif + } + } + +@@ -497,7 +535,11 @@ + while (!(bion = bio_alloc (GFP_NOIO | __GFP_NOMEMALLOC, bio_segments (bio)))) + { + trace (3, "blk_congestion_wait\n"); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ congestion_wait (bio_data_dir (bio), HZ / 50); ++#else + blk_congestion_wait (bio_data_dir (bio), HZ / 50); ++#endif + } + + bion->bi_bdev = tc->dev->bdev; +@@ -699,6 +741,12 @@ + module_param_named(trace, trace_level, int, 0); + + MODULE_AUTHOR("TrueCrypt Foundation"); ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) ++MODULE_DESCRIPTION(DM_MSG_PREFIX " target for encryption and decryption of TrueCrypt volumes"); ++#else + MODULE_DESCRIPTION(DM_NAME " target for encryption and decryption of TrueCrypt volumes"); ++#endif ++ + MODULE_PARM_DESC(trace, "Trace level"); + MODULE_LICENSE("GPL and additional rights"); // Kernel thinks only GPL/BSD/MPL != closed-source code |