Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
truecrypt released for linux - how to get it into portage?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Thu Nov 03, 2005 8:48 pm    Post subject: truecrypt released for linux - how to get it into portage? Reply with quote

what can i do to help to get truecrypt into potage?
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Thu Nov 03, 2005 9:06 pm    Post subject: Reply with quote

ok, so i found this thread - https://forums.gentoo.org/viewtopic-t-53825.html

and also logged request for ebuild - https://bugs.gentoo.org/show_bug.cgi?id=111394

is there anything else i can do, except for test it once ebuild is available?
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Fri Nov 04, 2005 2:42 am    Post subject: Reply with quote

I would an ebuild for this as well. Could someone write one up for us please?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Nov 04, 2005 11:55 am    Post subject: Reply with quote

You could learn how to create ebuilds. That will help :wink:
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
dhave
Apprentice
Apprentice


Joined: 28 Oct 2005
Posts: 298
Location: Still outside the Matrix ...

PostPosted: Fri Nov 04, 2005 4:22 pm    Post subject: Reply with quote

Does the linux version of truecrypt let you actually create an encrypted volume, or does it just permit you to mount one that you've created with Windows?

I compiled and installed truecrypt for linux on my slackware system, and I didn't see any options that permitted the user to create a hidden, encrypted volume.

There's also no GUI for linux that I can see; that would be all right, but I really am wondering if they've made the linux version fully functional yet. Maybe I'm way off base; I hope so, as I'd like to use truecrypt on my slackware and gentoo systems.
Back to top
View user's profile Send private message
dhave
Apprentice
Apprentice


Joined: 28 Oct 2005
Posts: 298
Location: Still outside the Matrix ...

PostPosted: Fri Nov 04, 2005 4:30 pm    Post subject: Re: truecrypt released for linux - how to get it into portag Reply with quote

mahdi1234 wrote:
what can i do to help to get truecrypt into potage?

Just boil some water, add some beef or chicken stock and some vegetables, put in truecrypt, and simmer for about an hour. Season to taste.

(sorry, I couldn't resist ...) ':D'
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Fri Nov 04, 2005 4:52 pm    Post subject: Reply with quote

PaulBredbury wrote:
You could learn how to create ebuilds. That will help :wink:


I would love to. It's just that at this point, I do not have the time/ability to read up on how to write them. I was just asking if someone that did have the time and knew how to would be kind enough to do this for us.
Back to top
View user's profile Send private message
ohyeah1942
n00b
n00b


Joined: 21 Mar 2004
Posts: 68

PostPosted: Sat Nov 05, 2005 1:07 am    Post subject: Reply with quote

satanskin wrote:
PaulBredbury wrote:
You could learn how to create ebuilds. That will help :wink:


I would love to. It's just that at this point, I do not have the time/ability to read up on how to write them. I was just asking if someone that did have the time and knew how to would be kind enough to do this for us.


when you get ready to learn how, don't bother reading that link because it doesnt tell you how to make ebuilds. It just tells you how to use ebuilds that others make. Handy, but a different subject.
Back to top
View user's profile Send private message
Pergamon
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 117

PostPosted: Sat Nov 05, 2005 11:43 am    Post subject: short howto for truecrypt Reply with quote

A short howto can be found: here.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sat Nov 05, 2005 4:51 pm    Post subject: Reply with quote

ohyeah1942 wrote:
when you get ready to learn how, don't bother reading that link because it doesnt tell you how to make ebuilds.

You missed all the links to dev guides on its final line :)
_________________
Improve your font rendering and ALSA sound
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sat Nov 05, 2005 8:04 pm    Post subject: Reply with quote

A copy of my post at the above referrenced bug:

Ok, so I figured I give it a shot and try to do this myself. So far I had to
edit the build script that was included with the source tarball from truecrypt.
I have attached that. Then I tried giving it a shot with this ebuild:

Code:
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Free open-source disk encryption software for Windows XP/2000/2003
and Linux"
HOMEPAGE="http://www.trucrypt.org/"
SRC_URI="http://www.truecrypt.org/downloads/truecrypt-${PV}-source-code.tar.gz"

LICENSE="CUSTOM"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

src_compile() {
   sh Linux/build.sh || die "build failed"
}

src_install() {
   sh Linux/install.sh || die "install failed"
}




Now when I try to emerge it, it fails with this:

Code:
>>> Source unpacked.
Checking build requirements...
Building kernel module... Linux/build.sh: line 66: cd: Kernel: No such file or
directory
Error: Failed to build kernel module

!!! ERROR: app-crypt/truecrypt-4.0 failed.
!!! Function src_compile, Line 14, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.


EDIT: Ok now, changing line 66 of the build.sh script from "cd Kernel" to "cd /var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel" got me a little further but still fails with:
Code:
>>> Source unpacked.
Checking build requirements...
Building kernel module... Makefile:530: /usr/src/linux-2.6.14-acid2/arch/amd64/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.14-acid2/arch/amd64/Makefile'.  Stop.
make: *** [truecrypt] Error 2
Error: Failed to build kernel module


Not sure how to fix this in the build.sh script. Any ideas why it is trying "amd64" rather than "x86_64"?
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sat Nov 05, 2005 9:11 pm    Post subject: Reply with quote

Ok more updates and more sloppy workarounds. I fixed that last error by symlinking an amd64 directory to the x86_64 dir. Now it is building successfully, but failing install and giving this:
Code:
>>> Install truecrypt-4.0 into /var/tmp/portage/truecrypt-4.0/image/ category app-crypt
Checking installation requirements...
Linux/install.sh: line 72: ./var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/build.sh: No such file or directory
Error: Build failed - installation aborted


It was originally saying:
Code:
Linux/install.sh: line 72: ./build.sh: No such file or directory

So I tried hardcoding the path to the dir as I did to fix the Kernel error in the build.sh, but then it still failed with the above message. Is anyone checking this thread anymore?

EDIT: Ok, I feel stupid. I had to change it to just "./Linux/build.sh" Now it goes through the install process but fails during testing truecrypt. The output is just this:
Code:
>>> Source unpacked.
Checking build requirements...
Building kernel module... Done.
Building truecrypt... Done.
>>> Test phase [not enabled]: app-crypt/truecrypt-4.0

>>> Install truecrypt-4.0 into /var/tmp/portage/truecrypt-4.0/image/ category app-crypt
Checking installation requirements...
Checking build requirements...
Building kernel module... Done.
Building truecrypt... Done.
Testing truecrypt... FAILED
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Sat Nov 05, 2005 11:34 pm    Post subject: Reply with quote

has this anything to do with architecture or just coincidence about amd64?

other thing - you can really build a module to be loaded during boot? if so it's really great, i dind't expect such a funcionality ;)
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Sat Nov 05, 2005 11:49 pm    Post subject: Reply with quote

mahdi1234 wrote:
has this anything to do with architecture or just coincidence about amd64?

other thing - you can really build a module to be loaded during boot? if so it's really great, i dind't expect such a funcionality ;)


Has which part to do with amd64? My process or the failure testing?

I imagine you can build a module to be loaded at boot time. All I did in the ebuild was use the build.sh and install.sh scripts that were included with the source tarball. I figured it would still be able to easily reverse it if was all done through the ebuild.
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Mon Nov 07, 2005 6:55 pm    Post subject: Reply with quote

I meant following error:

Code:

Building kernel module... Makefile:530: /usr/src/linux-2.6.14-acid2/arch/amd64/Makefile: No such file or directory


so i was just curious whether u heve amd64.

Anyway, noticed in the bug report, that u got much further, great ;)
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Tue Nov 08, 2005 12:22 am    Post subject: Reply with quote

Yes, sorry. I am running amd64. Have you tried the ebuild yet? If not, would you try the latest one up on the bug report and see if it will compile for you. If so, does it merge completely or does it fail when testing the module during the install part?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20612

PostPosted: Tue Nov 08, 2005 4:04 am    Post subject: Reply with quote

Moved from Other Things Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Tue Nov 08, 2005 6:35 pm    Post subject: Reply with quote

hmm I've tried to donwload ebuild and "source tarball with fixed build.sh", but seems there's wrong path - error u have had here somewhere earlier

Code:

Checking build requirements...
Building kernel module... Linux/build.sh: line 66: cd: Kernel: No such file or directory
Error: Failed to build kernel module

!!! ERROR: app-crypt/truecrypt-4.0 failed.


I'll try to re-pack with fixed files as you have info on how to do it in your later post.

Anyway at least I learnt so far how to use customs ebuilds ;))
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Tue Nov 08, 2005 7:10 pm    Post subject: Reply with quote

ok so i had to symlink to i386 dir and then i got somewhere further ...

Code:

mahdi arch # emerge truecrypt
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/truecrypt-4.0 to /
>>> md5 files   ;-) truecrypt-4.0.ebuild
>>> md5 files   ;-) files/digest-truecrypt-4.0
>>> md5 src_uri ;-) truecrypt-4.0-source-code.tar.gz
>>> Unpacking source...
>>> Unpacking truecrypt-4.0-source-code.tar.gz to /var/tmp/portage/truecrypt-4.0/work
>>> Source unpacked.
Checking build requirements...
Building kernel module... *** Warning: "dm_get_device" [/var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel/truecrypt.ko] undefined!
*** Warning: "dm_table_get_mode" [/var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel/truecrypt.ko] undefined!
*** Warning: "dm_register_target" [/var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel/truecrypt.ko] undefined!
*** Warning: "dm_unregister_target" [/var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel/truecrypt.ko] undefined!
*** Warning: "dm_put_device" [/var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel/truecrypt.ko] undefined!
Done.
Building truecrypt... Done.
>>> Test phase [not enabled]: app-crypt/truecrypt-4.0

>>> Install truecrypt-4.0 into /var/tmp/portage/truecrypt-4.0/image/ category app-crypt
Checking installation requirements...
/dev/mapper/control not found - create? [Y/n]: Y
mknod: `/dev/mapper/control': No such file or directory
Error: TrueCrypt requires device mapper tools (dmsetup) 1.00.08 or later.

!!! ERROR: app-crypt/truecrypt-4.0 failed.
!!! Function src_install, Line 18, Exitcode 1
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-crypt_-_truecrypt-4.0-12012.log"

mkdir:     /dev/mapper
--------------------------------------------------------------------------------



so i guess i'm missing some crypting support in kernel ...

Code:

mahdi arch # cat /var/log/sandbox/sandbox-app-crypt_-_truecrypt-4.0-12012.log
mkdir:     /dev/mapper


not very helpful ;D
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Tue Nov 08, 2005 7:45 pm    Post subject: Reply with quote

ok to fix first problem, i enabled following:

Code:

CONFIG_MD=y
CONFIG_BLK_DEV_MD is not set
CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=y


however still getting:

Code:

mahdi root # emerge truecrypt
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/truecrypt-4.0 to /
>>> md5 files   ;-) truecrypt-4.0.ebuild
>>> md5 files   ;-) files/digest-truecrypt-4.0
>>> md5 src_uri ;-) truecrypt-4.0-source-code.tar.gz
>>> Unpacking source...
>>> Unpacking truecrypt-4.0-source-code.tar.gz to /var/tmp/portage/truecrypt-4.0/work
>>> Source unpacked.
Checking build requirements...
Building kernel module... Done.
Building truecrypt... Done.
>>> Test phase [not enabled]: app-crypt/truecrypt-4.0

>>> Install truecrypt-4.0 into /var/tmp/portage/truecrypt-4.0/image/ category app-crypt
Checking installation requirements...
Error: TrueCrypt requires device mapper tools (dmsetup) 1.00.08 or later.

!!! ERROR: app-crypt/truecrypt-4.0 failed.
!!! Function src_install, Line 18, Exitcode 1
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-crypt_-_truecrypt-4.0-9443.log"

open_wr:   /dev/mapper/control
--------------------------------------------------------------------------------


but i have higher version of dmsetup ;D

Code:
mahdi linux # dmsetup version
Library version:   1.01.03 (2005-06-13)
Driver version:    4.4.0


any suggestion what can be wrong here? i'm lost now ;(
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Tue Nov 08, 2005 10:18 pm    Post subject: Reply with quote

I don't even know what dmsetup is from! lol. Though, I have an older version than you.
Code:
thor satanskin # dmsetup version
Library version:   1.00.19-ioctl (2004-07-03)
Driver version:    4.4.0
Back to top
View user's profile Send private message
satanskin
Guru
Guru


Joined: 25 Apr 2005
Posts: 353

PostPosted: Wed Nov 09, 2005 1:41 am    Post subject: Reply with quote

Anyone else willing to help out with getting an ebuild for this program?
Back to top
View user's profile Send private message
vario
n00b
n00b


Joined: 10 Jan 2004
Posts: 15

PostPosted: Wed Nov 09, 2005 1:04 pm    Post subject: Reply with quote

I am trying to get an ebuild together in the next days. At the moment I am still trying to find out why the compile fails. With the symlink X86 -> i386 or by doing it manually in a sandboxshell it works but that is not the way it is supposed to be.
If it does not work otherwise maybe an ebuild with a small patch to the original makefiles might do the trick.
Back to top
View user's profile Send private message
vario
n00b
n00b


Joined: 10 Jan 2004
Posts: 15

PostPosted: Fri Nov 11, 2005 6:17 pm    Post subject: Reply with quote

I created a preliminary ebuild for truecrypt. With an additional patch it compiles cleanly on my x86 system. If you want to have a look download the ebuild and the patch from bugzilla truecrypt-4.0.ebuild (New package).
To use the ebuild in an overlay you have to put the ebuild into /usr/local/portage/app-crypt/truecrypt, the patch into /usr/local/portage/app-crypt/truecrypt/files and the license (License.txt), which is included with truecrypt into /usr/local/portage/licenses/ with "truecrypt" as the filename.
Please post any problems you have found here. :-)

vario
Back to top
View user's profile Send private message
mahdi1234
Guru
Guru


Joined: 19 Feb 2005
Posts: 559
Location: Being There

PostPosted: Fri Nov 11, 2005 6:54 pm    Post subject: Reply with quote

Magnifique!!! u're the man ;)

even my problem with dmsetup is gone, worthless to say, that no symlink is needed anymore. great. and i also learned something new. cheers ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum