truecrypt: Fix compliation in recent kernels

This commit is contained in:
Alan Mizrahi 2012-01-20 08:23:06 +09:00
parent f4086e814e
commit 8d492eb94c

View File

@ -6,7 +6,7 @@
name=truecrypt
version=4.3a
release=3
release=4
source=(http://www.mizrahi.com.ve/crux/dist/$name-$version.tar.bz2 truecrypt-4.3a-2.6.23.patch truecrypt-4.3a-2.6.24.patch truecrypt-kernel-2.6.29.patch truecrypt-kernel-2.6.34.patch truecrypt-nochecks.patch)
# Note: Currently doesn't build as non-root
@ -21,6 +21,9 @@ build () {
patch -p2 -i $SRC/truecrypt-kernel-2.6.29.patch
patch -p2 -i $SRC/truecrypt-nochecks.patch
# new kernels have an hex2bin function, rename truecrypt's
sed -i -e 's|hex2bin|myhex2bin|g' Kernel/Dm-target.c
./build.sh
install -m 755 -D Cli/truecrypt $PKG/usr/bin/truecrypt
install -m 644 -D Cli/Man/truecrypt.1 $PKG/usr/man/man1/truecrypt.1