Hello,

Please find attached an updated SPEC file for TrueCrypt and repackaged
PKCS11 headers from now defunct RSA public FTP (I've got them from the
SWITCH.CH mirror). The reason why it wasn't building is that those
headers are now mandatory if you want to compile the whole thing. 

These headers are licensed for free redistribution and modification, so
the only limitations I can think of might be some local cryptographic
software regulations (see http://rechten.uvt.nl/koops/cryptolaw/ ,
actually the same applies to any cryptographic software RPMForge might
ship).

Considering the very nature of TrueCrypt, I think it's either worth
updating or removing altogether, because outdated and buggy
cryptographic software is inherently insecure and dangerous.

The reason why I didn't attach a diff is that it seems that the repo at

http://svn.rpmforge.net/svn/trunk/rpms/truecrypt

is no longer current??? I only see 6.0a SPEC there... 

So finally I took the spec from

http://packages.sw.be/truecrypt/_buildlogs/

and edited it so that it now works with the latest source. I removed the
FreeDesktop stuff, because wxGTK-2.8 only builds on RHEL >= EL3 anyway.

OK, I think that's pretty much it, I tested it and it works for me.

Best,
 
-- 
Sincerely yours,
Yury V. Zaytsev
# $Id$
# Authority: dag

%{?dtag: %{expand: %%define %dtag 1}}

%define desktop_vendor rpmforge
%define real_name TrueCrypt

Summary: Free open-source disk encryption software
Name: truecrypt
Version: 6.2a
Release: 1.el5.rf
License: TrueCrypt License 2.7
Group: Applications/System
URL: http://www.truecrypt.org/

# http://www.truecrypt.org/download/transient/da3d62bda5/TrueCrypt 6.2a Source.tar.gz
Source0: truecrypt-6.2a-source.tar.gz

# wget ftp://mirror.switch.ch/mirror/pkcs/pkcs-11/v2-20/*.h
Source1: pkcs-11-v2-20.tar.bz2

Source2: truecrypt.png

Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: fuse-devel wxGTK-devel >= 2.8

%description
Manages encrypted TrueCrypt volumes, which can be mapped as virtual block
devices and used as any other standard block device. All data being read
from a mapped TrueCrypt volume is transparently decrypted and all data
being written to it is transparently encrypted. 

%prep
%setup -n %{name}-%{version}-source
%setup -n %{name}-%{version}-source -T -D -a 1

### Remove --static from compilation options for WxGTK
%{__perl} -pi.orig -e 's| --static||' Main/Main.make

%{__cat} <<EOF >truecrypt.desktop
[Desktop Entry]
Name=Truecrypt
Exec=truecrypt
Icon=truecrypt.png
StartupNotify=true
Terminal=false
Type=Application
Encoding=UTF-8
Categories=System;Application;
EOF

%build
PKCS_DIR=`pwd` ; PKCS_DIR="$PKCS_DIR/pkcs-11-v2-20" ;

%{__make} \
    WX_BUILD_DIR="%{_bindir}" \
    NO_WARNINGS="1" \
    PKCS11_INC="$PKCS_DIR" \
    VERBOSE="1"

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 Main/truecrypt %{buildroot}%{_bindir}/truecrypt
%{__install} -Dp -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/truecrypt.png

%{__mkdir_p} %{buildroot}%{_datadir}/applications/

desktop-file-install --vendor %{desktop_vendor} \
        --dir %{buildroot}%{_datadir}/applications  \
        truecrypt.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc License.txt Readme.txt Release/Setup\ Files/TrueCrypt\ User\ Guide.pdf
%{_bindir}/truecrypt
%{_datadir}/applications/%{desktop_vendor}-truecrypt.desktop
%{_datadir}/icons/hicolor/48x48/apps/truecrypt.png

%changelog
* Sun Jul 26 2009 Yury V. Zaytsev <[email protected]> - 6.2a
- Bumped to the new version and fixed missing PKCS includes

* Sun May 24 2009 Dag Wieers <[email protected]> - 6.2-1 - 6477+/dag
- Updated to release 6.2.

* Tue Dec 02 2008 Dag Wieers <[email protected]> - 6.1a-1
- Updated to release

* Mon Nov 03 2008 Dag Wieers <[email protected]> - 6.1-1
- Updated to release 6.1.

* Mon Sep 15 2008 Dag Wieers <[email protected]> - 6.0a-1
- Initial package. (using DAR)

Attachment: pkcs-11-v2-20.tar.bz2
Description: application/bzip-compressed-tar

_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to