Summary: | request for adding truecrypt into portage tree | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | mAhdi <mahdi1234> |
Component: | Current packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
source tarball with fixed build.sh
truecrypt-4.0-source-code.tar.gz app-crypt/truecrypt/truecrypt-4.0.ebuild |
Description
mAhdi
2005-11-03 13:03:15 UTC
Could we atleast just get an ebuild for it if not in the official portage tree please? 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: # 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: >>> 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. Not sure how to fix this in the build.sh script. Created attachment 72232 [details]
source tarball with fixed build.sh
changed all instances of "-1" to "-n 1"
Ok, so changing line 66 of the build.sh from "cd Kernel" to
"cd /var/tmp/portage/truecrypt-4.0/work/truecrypt-4.0/Linux/Kernel" got me a
little further, but now fails with:
>>> 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
Ok, made some more progress and attached the ebuild and modified source tarball for distfiles. Now I can get it to build the modules and go through the install, but during the testing of truecrypt in the install.sh script it fails and I can't tell why. Created attachment 72238 [details]
truecrypt-4.0-source-code.tar.gz
includes fixed build.sh script and a semi-working install.sh. The install
script will go through, but fails on testing truecrypt.
Created attachment 72239 [details]
app-crypt/truecrypt/truecrypt-4.0.ebuild
Here's the ebuild I threw together.
Please make a patch diff -pur olddir newdir > patch instead of modifying the source tarball (In reply to comment #8) > Please make a patch > diff -pur olddir newdir > patch > > instead of modifying the source tarball Ok, well that would be starting to get a little too far beyond my skills. I don't even really know how I got this as far as I have really. It's my first ebuild and I'm learning as go. I would actually prefer if someone that knew what they were doing would be kind enough to write an ebuild for us. Thanks for the work so far Ryan... I too am anxious for this... Functional ebuild posted in thread http://bugs.gentoo.org/show_bug.cgi?id=112197 ... Bug 112197 seems to have a working patch, marking this one as a dupe. *** This bug has been marked as a duplicate of 112197 *** *** This bug has been marked as a duplicate of 112197 *** |