diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-02-26 16:48:01 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2014-02-26 16:48:01 +0100 |
commit | faae49c640ee2d308d40bc5867d6ecbd80ac0fc1 (patch) | |
tree | d49a49f6c8142a1762a339a99396421a127cc146 | |
download | truecrypt-faae49c640ee2d308d40bc5867d6ecbd80ac0fc1.tar.gz truecrypt-faae49c640ee2d308d40bc5867d6ecbd80ac0fc1.tar.bz2 truecrypt-faae49c640ee2d308d40bc5867d6ecbd80ac0fc1.zip |
initial packaging based on http://www.unchartedbackwaters.co.uk/pyblosxom/static/truecrypt_debian_packaging
-rw-r--r-- | debian/README.Debian | 35 | ||||
-rw-r--r-- | debian/README.source | 21 | ||||
-rw-r--r-- | debian/changelog | 106 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 23 | ||||
-rw-r--r-- | debian/copyright | 561 | ||||
-rw-r--r-- | debian/patches/000-opencryptoki-2.2.8.patch | 47 | ||||
-rw-r--r-- | debian/patches/001-user-guide-location.patch | 13 | ||||
-rw-r--r-- | debian/patches/002-build-flags.patch | 16 | ||||
-rw-r--r-- | debian/patches/series | 3 | ||||
-rwxr-xr-x | debian/rules | 22 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/truecrypt.default | 6 | ||||
-rw-r--r-- | debian/truecrypt.desktop | 10 | ||||
-rw-r--r-- | debian/truecrypt.docs | 3 | ||||
-rwxr-xr-x | debian/truecrypt.init | 54 | ||||
-rw-r--r-- | debian/truecrypt.install | 3 | ||||
-rw-r--r-- | debian/truecrypt.manpages | 1 | ||||
-rw-r--r-- | debian/truecrypt.menu | 7 | ||||
-rwxr-xr-x | debian/truecrypt.prerm | 24 | ||||
-rwxr-xr-x | debian/truecrypt_help_to_troff.pl | 63 |
21 files changed, 1020 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..0d06a6e --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,35 @@ +TrueCrypt for Debian +-------------------- + +This file is part of an unofficial Debian packaging for TrueCrypt. It is +unrelated to either Debian or TrueCrypt. It was created because the packaging +author disliked installing deb files for which he couldn't get the Debian +sources for. + +This packaging differs from the TrueCrypt Ubuntu/Debian packaging in at least +these ways: + +- This package provides an init script that calls 'truecrypt -d' on shutdown. At + the point it is called, all filesystems (except root) should already have been + unmounted, but the TrueCrypt service processes and device mappings may still + be active. Calling 'truecrypt -d' is probably better than the system sending + the TrueCrypt service kill signals. It can be disabled by editing + /etc/default/truecrypt. + +- A Perl script transforms the output of 'truecrypt --help' to produce a + troff man page. The upstream sources don't contain a man page. + +- This package adds itself to both the Debian menu system and the Gnome menu + system. The TrueCrypt package only adds itself to the latter. + +- The user manual is installed in /usr/share/doc/truecrypt as opposed to + /usr/share/truecrypt/doc. + +- This package uses libopencryptoki for the PKCS#11 headers rather than + including the ones from RSA (they are not included with the TrueCrypt + sources). These only implement PKCS#11 v2.11 rather than v2.20. The v2.20 + headers define a few error codes that the v2.11 ones don't. This does not + impact TrueCrypt functionality as it only uses them to map error codes back to + strings and will use the hex value of the code as a fallback. Secondly, there + does not appear to be a PCKS#11 v2.20 implementation in Debian at the moment + anyway, so they're also rather unlikely to appear. diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..528fa2b --- /dev/null +++ b/debian/README.source @@ -0,0 +1,21 @@ +If you're trying to build a package from source, you're probably familiar with +this but here are some instructions anyway. + +The following steps assume you're using packaging version 7.1a-1. Replace with +the current version where appropriate. + +BUILD WITH sbuild OR pbuilder +============================= + +- Download and verify the PGP signature on the sources (if you're paranoid): +- Rename the tarball: + + mv "TrueCrypt 7.1a Source.tar.gz" truecrypt_7.1a.orig.tar.gz + +- enter the base folder of this Git project + + debuild -uc -us -S + +- run sbuild (similar for pbuilder) + + sbuild -sAd unstable truecrypt_7.1a-1.dsc diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8d16dc0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,106 @@ +truecrypt (7.1a-2) UNRELEASED; urgency=low + + * Convert to CDBS. + * Create man page in debian/ folder (don't hurt upstream sources). + * Rewrite README.source. + * debian/control: + + B-D on cdbs. + + Versioned B-D on debhelper (>= 7.0.50~). + + Recommend caja (MATE desktop). + * debian/compat: + + Drop compat level to 9. + * debian/copyright: + + Add myself as copyright holder of the Debian folder. + + Whitespace cleanup. + * debian/<scripts>: + + Whitespace clean up, user tabs as indentations. + * debian/truecrypt.init: + + Add start run levels (even if unused). Silences update-rc.d + warnings during package installation. + + -- Mike Gabriel <sunweaver@debian.org> Wed, 26 Feb 2014 16:10:27 +0100 + +truecrypt (7.1a-1) unstable; urgency=low + + * New upstream release. + * Update copyright on generated man page. + * Switch to Debian compatibility level 9. + * Refresh debian/patches/001-user-guide-location.diff. + * Add debian/patches/002-build-flags.diff to patch TrueCrypt makefile to + include build hardening options. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Sun, 18 Dec 2011 14:20:52 +0000 + +truecrypt (7.1-1) unstable; urgency=low + + * New upstream release. + * Update copyrights. + * Update standards to version 3.9.2 (no changes required). + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Sun, 18 Dec 2011 14:05:10 +0000 + +truecrypt (7.0a-1) unstable; urgency=low + + * New upstream release. + * Minor improvements to README.source. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Sat, 18 Sep 2010 18:53:49 +0100 + +truecrypt (7.0-3) UNRELEASED; urgency=low + + * Only require nasm on i386 or amd64 architectures. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Fri, 27 Aug 2010 16:25:04 +0100 + +truecrypt (7.0-2) unstable; urgency=low + + * Add versioned nasm dependency (thx Joe Gooch). + * Depend on a version of quilt that includes the dh_quilt_patch and + dh_quilt_unpatch scripts (thx Joe Gooch). + * Use dpkg-architecture to determine host architecture which is sometimes + problematic in chroot configurations (thx Joe Gooch). + * Update to standards version 3.9.1 (no changes). + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Wed, 25 Aug 2010 18:22:01 +0100 + +truecrypt (7.0-1) unstable; urgency=low + + * New upstream release. + * Refresh user-guide location patch. + * Fix grammar error in README.Debian spotted by Lintian. + * Stop truecrypt service at runlevel 1 as well as killprocs would do it + anyway. Fixes Lintian warning. + * Update truecrypt init script to require $remote_fs instead of umountroot for + Required-Stop. Fixes Lintian error. + * Update licensing. + * Update to standards version 3.9.0 (no changes). + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Tue, 20 Jul 2010 22:55:47 +0100 + +truecrypt (6.3a-1) unstable; urgency=low + + * Bump version to 6.3a. + * Source files now use Unix line-endings. Update patches to match. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Tue, 24 Nov 2009 20:05:38 +0000 + +truecrypt (6.3-3) unstable; urgency=low + + * Make man page generator handle examples more nicely. + * Add in more TrueCrypt package dependencies. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Tue, 10 Nov 2009 23:42:47 +0000 + +truecrypt (6.3-2) unstable; urgency=low + + * Add a Perl script to automatically generate a manpage from 'truecrypt + --help'. As the help output is embedded in the TrueCrypt source, the manpage + can't be distributed directly. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Mon, 09 Nov 2009 18:50:59 +0000 + +truecrypt (6.3-1) unstable; urgency=low + + * Initial release. + + -- Francis Russell <francis@unchartedbackwaters.co.uk> Sat, 07 Nov 2009 20:34:07 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7404b27 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: truecrypt +Section: non-free/utils +Priority: optional +Maintainer: Francis Russell <francis@unchartedbackwaters.co.uk> +Uploaders: Mike Gabriel <sunweaver@debian.org> +Build-Depends: debhelper (>= 7.0.50~), cdbs, pkg-config, quilt (>= 0.46-7), libwxgtk2.8-dev, + libfuse-dev, libopencryptoki-dev, nasm (>= 2.08.01) [any-i386 any-amd64] +Standards-Version: 3.9.2 +Homepage: http://www.truecrypt.org/ + +Package: truecrypt +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, mount (>=2.12r-4), + e2fsprogs(>=1.38-2), module-init-tools, dmsetup, sudo, dosfstools, xterm +Recommends: caja | nautilus | dolphin | konqueror +Description: Cross-platform on-the-fly encryption + TrueCrypt provides cross-platform on-the-fly encryption for Linux, MacOS X and + Windows. It can encrypt filesystems stored either within a file or on disk + partitions. Supported encryption algorithms include AES, Serpent and Twofish. + The current version uses the XTS mode of disk encryption. In addition, + TrueCrypt supports "hidden volumes" - unidentifiable volumes present in the + free-space of a TrueCrypt volume. NOTE: This is an unofficial packaging + unrelated to either Debian or TrueCrypt. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6da0e96 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,561 @@ +This work was packaged for Debian by: + + Francis Russell <francis@unchartedbackaters.co.uk> on Sat, 07 Nov 2009 20:34:07 +0000 + +and modified by + + Mike Gabriel <sunweaver@debian.org> + +It was downloaded from <http://www.truecrypt.org/> + +Copyright: + + As a whole: + Copyright (c) 2011 TrueCrypt Developers Association. All rights reserved. + + With portions: + Copyright (c) 2003-2011 TrueCrypt Developers Association. All rights reserved. + Copyright (c) 1998-2000 Paul Le Roux. All rights reserved. + Copyright (c) 1998-2008 Brian Gladman, Worcester, UK. All rights reserved. + Copyright (c) 2002-2004 Mark Adler. All rights reserved. + +Licenses: + TrueCrypt License Version 3.0 + + Software distributed under this license is distributed on an "AS + IS" BASIS WITHOUT WARRANTIES OF ANY KIND. THE AUTHORS AND + DISTRIBUTORS OF THE SOFTWARE DISCLAIM ANY LIABILITY. ANYONE WHO + USES, COPIES, MODIFIES, OR (RE)DISTRIBUTES ANY PART OF THE + SOFTWARE IS, BY SUCH ACTION(S), ACCEPTING AND AGREEING TO BE + BOUND BY ALL TERMS AND CONDITIONS OF THIS LICENSE. IF YOU DO NOT + ACCEPT THEM, DO NOT USE, COPY, MODIFY, NOR (RE)DISTRIBUTE THE + SOFTWARE, NOR ANY PART(S) THEREOF. + + + I. Definitions + + 1. "This Product" means the work (including, but not limited to, + source code, graphics, texts, and accompanying files) made + available under and governed by this version of this license + ("License"), as may be indicated by, but is not limited to, + copyright notice(s) attached to or included in the work. + + 2. "You" means (and "Your" refers to) an individual or a legal + entity (e.g., a non-profit organization, commercial + organization, government agency, etc.) exercising permissions + granted by this License. + + 3. "Modification" means (and "modify" refers to) any alteration + of This Product, including, but not limited to, addition to or + deletion from the substance or structure of This Product, + translation into another language, repackaging, alteration or + removal of any file included with This Product, and addition of + any new files to This Product. + + 4. "Your Product" means This Product modified by You, or any + work You derive from (or base on) any part of This Product. In + addition, "Your Product" means any work in which You include any + (modified or unmodified) portion of This Product. However, if + the work in which you include it is an aggregate software + distribution (such as an operating system distribution or a + cover CD-ROM of a magazine) containing multiple separate + products, then the term "Your Product" includes only those + products (in the aggregate software distribution) that use, + include, or depend on a modified or unmodified version of This + Product (and the term "Your Product" does not include the whole + aggregate software distribution). For the purposes of this + License, a product suite consisting of two or more products is + considered a single product (operating system distributions and + cover media of magazines are not considered product suites). + + 5. "Distribution" means (and "distribute" refers to), regardless + of means or methods, conveyance, transfer, providing, or making + available of This/Your Product or portions thereof to third + parties (including, but not limited to, making This/Your + Product, or portions thereof, available for download to third + parties, whether or not any third party has downloaded the + product, or any portion thereof, made available for download). + + + + II. Use, Copying, and Distribution of This Product + + 1. Provided that You comply with all applicable terms and + conditions of this License, You may make copies of This Product + (unmodified) and distribute copies of This Product (unmodified) + that are not included in another product forming Your Product + (except as permitted under Chapter III). Note: For terms and + conditions for copying and distribution of modified versions of + This Product, see Chapter III. + + 2. Provided that You comply with all applicable terms and + conditions of this License, You may use This Product freely (see + also Chapter III) on any number of computers/systems for non- + commercial and/or commercial purposes. + + + + III. Modification, Derivation, and Inclusion in Other Products + + 1. If all conditions specified in the following paragraphs in + this Chapter (III) are met (for exceptions, see Section III.2) + and if You comply with all other applicable terms and conditions + of this License, You may modify This Product (thus forming Your + Product), derive new works from This Product or portions thereof + (thus forming Your Product), include This Product or portions + thereof in another product (thus forming Your Product, unless + defined otherwise in Chapter I), and You may use (for non- + commercial and/or commercial purposes), copy, and/or distribute + Your Product. + + a. The name of Your Product (or of Your modified version of + This Product) must not contain the name TrueCrypt (for + example, the following names are not allowed: TrueCrypt, + TrueCrypt+, TrueCrypt Professional, iTrueCrypt, etc.) nor + any other names confusingly similar to the name TrueCrypt + (e.g., True-Crypt, True Crypt, TruKrypt, etc.) + + Note: TrueCrypt and the TrueCrypt logo are registered + trademarks. The goal is not to monetize the name or the + product, but to protect the reputation of TrueCrypt, and to + prevent support issues and other kinds of issues that might + arise from the existence of similar products with the same + or similar name. Even though TrueCrypt and the TrueCrypt + logo are trademarks, TrueCrypt is and will remain + open-source and free software. + + All occurrences of the name TrueCrypt that could reasonably + be considered to identify Your Product must be removed from + Your Product and from any associated materials. Logo(s) + included in (or attached to) Your Product (and in/to + associated materials) must not incorporate and must not be + confusingly similar to any of the TrueCrypt logos + (including, but not limited to, the non-textual logo + consisting primarily of a key in stylized form) or + portion(s) thereof. All graphics contained in This Product + (logos, icons, etc.) must be removed from Your Product (or + from Your modified version of This Product) and from any + associated materials. + + b. The following phrases must be removed from Your Product + and from any associated materials, except the text of this + License: "A TrueCrypt Foundation Release", "Released by + TrueCrypt Foundation", "This is a TrueCrypt Foundation + release." + + c. Phrase "Based on TrueCrypt, freely available at + http://www.truecrypt.org/" must be displayed by Your Product + (if technically feasible) and contained in its + documentation. Alternatively, if This Product or its portion + You included in Your Product constitutes only a minor + portion of Your Product, phrase "Portions of this product + are based in part on TrueCrypt, freely available at + http://www.truecrypt.org/" may be displayed instead. In each + of the cases mentioned above in this paragraph, + "http://www.truecrypt.org/" must be a hyperlink (if + technically feasible) pointing to http://www.truecrypt.org/ + and You may freely choose the location within the user + interface (if there is any) of Your Product (e.g., an + "About" window, etc.) and the way in which Your Product will + display the respective phrase. + + Your Product (and any associated materials, e.g., the + documentation, the content of the official web site of Your + Product, etc.) must not present any Internet address + containing the domain name truecrypt.org (or any domain name + that forwards to the domain name truecrypt.org) in a manner + that might suggest that it is where information about Your + Product may be obtained or where bugs found in Your Product + may be reported or where support for Your Product may be + available or otherwise attempt to indicate that the domain + name truecrypt.org is associated with Your Product. + + d. The complete source code of Your Product must be freely + and publicly available (for exceptions, see Section III.2) + at least until You cease to distribute Your Product. This + condition can be met in one or both of the following ways: + (i) You include the complete source code of Your Product + with every copy of Your Product that You make and distribute + and You make all such copies of Your Product available to + the general public free of charge, and/or (ii) You include + information (valid and correct at least until You cease to + distribute Your Product) about where the complete source + code of Your Product can be obtained free of charge (e.g., + an Internet address) or for a reasonable reproduction fee + with every copy of Your Product that You make and distribute + and, if there is a web site officially associated with Your + Product, You include the aforementioned information about + the source code on a freely and publicly accessible web + page to which such web site links via an easily viewable + hyperlink (at least until You cease to distribute Your + Product). + + The source code of Your Product must not be deliberately + obfuscated and it must not be in an intermediate form (e.g., + the output of a preprocessor). Source code means the + preferred form in which a programmer would usually modify + the program. + + Portions of the source code of Your Product not contained in + This Product (e.g., portions added by You in creating Your + Product, whether created by You or by third parties) must be + available under license(s) that (however, see also + Subsection III.1.e) allow(s) anyone to modify and derive new + works from the portions of the source code that are not + contained in This Product and to use, copy, and redistribute + such modifications and/or derivative works. The license(s) + must be perpetual, non-exclusive, royalty-free, no-charge, + and worldwide, and must not invalidate, weaken, restrict, + interpret, amend, modify, interfere with or otherwise affect + any part, term, provision, or clause of this License. The + text(s) of the license(s) must be included with every copy + of Your Product that You make and distribute. + + Note: If you cannot comply with the above requirements, you + may contact licensing@truecrypt.org. + + e. You must not change the license terms of This Product in + any way (adding any new terms is considered changing the + license terms even if the original terms are retained), + which means, e.g., that no part of This Product may be put + under another license. You must keep intact all the legal + notices contained in the source code files. You must include + the following items with every copy of Your Product that You + make and distribute: a clear and conspicuous notice stating + that Your Product or portion(s) thereof is/are governed by + this version of the TrueCrypt License, a verbatim copy of + this version of the TrueCrypt License (as contained herein), + a clear and conspicuous notice containing information about + where the included copy of the License can be found, and an + appropriate copyright notice. + + + 2. You are not obligated to comply with Subsection III.1.d if + Your Product is not distributed (i.e., Your Product is available + only to You). + + Note: If you cannot comply with Subsection III.1.d, you may + contact licensing@truecrypt.org. + + + + IV. Disclaimer of Liability, Disclaimer of Warranty, + Indemnification + + You expressly acknowledge and agree to the following: + + 1. IN NO EVENT WILL ANY (CO)AUTHOR OF THIS PRODUCT, OR ANY + APPLICABLE COPYRIGHT/TRADEMARK OWNER, OR ANY OTHER PARTY WHO MAY + COPY AND/OR (RE)DISTRIBUTE THIS PRODUCT OR PORTIONS THEREOF, AS + MAY BE PERMITTED HEREIN, BE LIABLE TO YOU OR TO ANY OTHER PARTY + FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, ANY DIRECT, + INDIRECT, GENERAL, SPECIAL, INCIDENTAL, PUNITIVE, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, CORRUPTION + OR LOSS OF DATA, ANY LOSSES SUSTAINED BY YOU OR THIRD PARTIES, A + FAILURE OF THIS PRODUCT TO OPERATE WITH ANY OTHER PRODUCT, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR BUSINESS + INTERRUPTION), WHETHER IN CONTRACT, STRICT LIABILITY, TORT + (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE) OR OTHERWISE, + ARISING OUT OF THE USE, COPYING, MODIFICATION, OR + (RE)DISTRIBUTION OF THIS PRODUCT (OR A PORTION THEREOF) OR OF + YOUR PRODUCT (OR A PORTION THEREOF), OR INABILITY TO USE THIS + PRODUCT (OR A PORTION THEREOF), EVEN IF SUCH DAMAGES (OR THE + POSSIBILITY OF SUCH DAMAGES) ARE/WERE PREDICTABLE OR KNOWN TO + ANY (CO)AUTHOR, COPYRIGHT/TRADEMARK OWNER, OR ANY OTHER PARTY. + + 2. THIS PRODUCT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY + KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT + LIMITED TO, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A + PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE ENTIRE RISK AS TO + THE QUALITY AND PERFORMANCE OF THIS PRODUCT IS WITH YOU. SHOULD + THIS PRODUCT PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL + NECESSARY SERVICING, REPAIR, OR CORRECTION. + + 3. THIS PRODUCT MAY INCORPORATE IMPLEMENTATIONS OF CRYPTOGRAPHIC + ALGORITHMS THAT ARE REGULATED (E.G., SUBJECT TO EXPORT/IMPORT + CONTROL REGULATIONS) OR ILLEGAL IN SOME COUNTRIES. IT IS SOLELY + YOUR RESPONSIBILITY TO VERIFY THAT IT IS LEGAL TO IMPORT AND/OR + (RE)EXPORT AND/OR USE THIS PRODUCT (OR PORTIONS THEREOF) IN + COUNTRIES WHERE YOU INTEND TO USE IT AND/OR TO WHICH YOU INTEND + TO IMPORT IT AND/OR FROM WHICH YOU INTEND TO EXPORT IT, AND IT + IS SOLELY YOUR RESPONSIBILITY TO COMPLY WITH ANY APPLICABLE + REGULATIONS, RESTRICTIONS, AND LAWS. + + 4. YOU SHALL INDEMNIFY, DEFEND AND HOLD ALL (CO)AUTHORS OF THIS + PRODUCT, AND APPLICABLE COPYRIGHT/TRADEMARK OWNERS, HARMLESS + FROM AND AGAINST ANY AND ALL LIABILITY, DAMAGES, LOSSES, + SETTLEMENTS, PENALTIES, FINES, COSTS, EXPENSES (INCLUDING + REASONABLE ATTORNEYS' FEES), DEMANDS, CAUSES OF ACTION, CLAIMS, + ACTIONS, PROCEEDINGS, AND SUITS, DIRECTLY RELATED TO OR ARISING + OUT OF YOUR USE, INABILITY TO USE, COPYING, (RE)DISTRIBUTION, + IMPORT AND/OR (RE)EXPORT OF THIS PRODUCT (OR PORTIONS THEREOF) + AND/OR YOUR BREACH OF ANY TERM OF THIS LICENSE. + + + + V. Trademarks + + This License does not grant permission to use trademarks + associated with (or applying to) This Product, except for fair + use as defined by applicable law and except for use expressly + permitted or required by this License. Any attempt otherwise to + use trademarks associated with (or applying to) This Product + automatically and immediately terminates Your rights under This + License and may constitute trademark infringement (which may be + prosecuted). + + TrueCrypt is a trademark registered with the World Intellectual + Property Organization, an agency of the United Nations, + (international trademark registration), in the U.S. Patent and + Trademark Office, and in the trademark offices of other + countries. All TrueCrypt logos are trademarks and the + non-textual TrueCrypt logo consisting primarily of a key in + stylized form is a trademark registered in the U.S. Patent and + Trademark Office. + + Note: The goal is not to monetize the name or the product, but + to protect the reputation of TrueCrypt. TrueCrypt is and will + remain open-source and free software. + + + + VI. General Terms and Conditions, Miscellaneous Provisions + + 1. ANYONE WHO USES AND/OR COPIES AND/OR MODIFIES AND/OR CREATES + DERIVATIVE WORKS OF AND/OR (RE)DISTRIBUTES THIS PRODUCT, OR ANY + PORTION(S) THEREOF, IS, BY SUCH ACTION(S), AGREEING TO BE BOUND + BY AND ACCEPTING ALL TERMS AND CONDITIONS OF THIS LICENSE (AND + THE RESPONSIBILITIES AND OBLIGATIONS CONTAINED IN THIS LICENSE). + IF YOU DO NOT ACCEPT (AND AGREE TO BE BOUND BY) ALL TERMS AND + CONDITIONS OF THIS LICENSE, DO NOT USE, COPY, MODIFY, CREATE + DERIVATIVE WORKS OF, NOR (RE)DISTRIBUTE THIS PRODUCT, NOR ANY + PORTION(S) THEREOF. + + 2. YOU MAY NOT USE, MODIFY, COPY, CREATE DERIVATIVE WORKS OF, + (RE)DISTRIBUTE, OR SUBLICENSE THIS PRODUCT, OR PORTION(S) + THEREOF, EXCEPT AS EXPRESSLY PROVIDED IN THIS LICENSE (EVEN IF + APPLICABLE LAW GIVES YOU MORE RIGHTS). ANY ATTEMPT (EVEN IF + PERMITTED BY APPLICABLE LAW) OTHERWISE TO USE, MODIFY, COPY, + CREATE DERIVATIVE WORKS OF, (RE)DISTRIBUTE, OR SUBLICENSE THIS + PRODUCT, OR PORTION(S) THEREOF, AUTOMATICALLY AND IMMEDIATELY + TERMINATES YOUR RIGHTS UNDER THIS LICENSE AND CAN CONSTITUTE + COPYRIGHT INFRINGEMENT (WHICH MAY BE PROSECUTED). ANY CONDITIONS + AND RESTRICTIONS CONTAINED IN THIS LICENSE ARE ALSO LIMITATIONS + ON THE SCOPE OF THIS LICENSE AND ALSO DEFINE THE SCOPE OF YOUR + RIGHTS UNDER THIS LICENSE. YOUR FAILURE TO COMPLY WITH THE TERMS + AND CONDITIONS OF THIS LICENSE OR FAILURE TO PERFORM ANY + APPLICABLE OBLIGATION IMPOSED BY THIS LICENSE AUTOMATICALLY AND + IMMEDIATELY TERMINATES YOUR RIGHTS UNDER THIS LICENSE AND CAN + CAUSE OR BE CONSIDERED COPYRIGHT INFRINGEMENT (WHICH MAY BE + PROSECUTED). NOTHING IN THIS LICENSE SHALL IMPLY OR BE CONSTRUED + AS A PROMISE, OBLIGATION, OR COVENANT NOT TO SUE FOR COPYRIGHT + OR TRADEMARK INFRINGEMENT IF YOU DO NOT COMPLY WITH THE TERMS + AND CONDITIONS OF THIS LICENSE. + + 3. This License does not constitute or imply a waiver of any + intellectual property rights except as may be otherwise + expressly provided in this License. This License does not + transfer, assign, or convey any intellectual property rights + (e.g., it does not transfer ownership of copyrights or + trademarks). + + 4. Subject to the terms and conditions of this License, You may + allow a third party to use Your copy of This Product (or a copy + that You make and distribute, or Your Product) provided that the + third party explicitly accepts and agrees to be bound by all + terms and conditions of this License and the third party is not + prohibited from using This Product (or portions thereof) by this + License (see, e.g., Section VI.7) or by applicable law. However, + You are not obligated to ensure that the third party accepts + (and agrees to be bound by all terms of) this License if You + distribute only the self-extracting package (containing This + Product) that does not allow the user to install (nor extract) + the files contained in the package until he or she accepts and + agrees to be bound by all terms and conditions of this License. + + 5. Without specific prior written permission from the authors of + This Product (or from their common representative), You must not + use the name of This Product, the names of the authors of This + Product, or the names of the legal entities (or informal groups) + of which the authors were/are members/employees, to endorse or + promote Your Product or any work in which You include a modified + or unmodified version of This Product, or to endorse or promote + You or Your affiliates, or in a way that might suggest that Your + Product (or any work in which You include a modified or + unmodified version of This Product), You, or Your affiliates + is/are endorsed by one or more authors of This Product, or in a + way that might suggest that one or more authors of This Product + is/are affiliated with You (or Your affiliates) or directly + participated in the creation of Your Product or of any work in + which You include a modified or unmodified version of This + Product. + + 6. IF YOU ARE NOT SURE WHETHER YOU UNDERSTAND ALL PARTS OF THIS + LICENSE OR IF YOU ARE NOT SURE WHETHER YOU CAN COMPLY WITH ALL + TERMS AND CONDITIONS OF THIS LICENSE, YOU MUST NOT USE, COPY, + MODIFY, CREATE DERIVATIVE WORKS OF, NOR (RE)DISTRIBUTE THIS + PRODUCT, NOR ANY PORTION(S) OF IT. YOU SHOULD CONSULT WITH A + LAWYER. + + 7. IF (IN RELEVANT CONTEXT) ANY PROVISION OF CHAPTER IV OF THIS + LICENSE IS UNENFORCEABLE, INVALID, OR PROHIBITED UNDER + APPLICABLE LAW IN YOUR JURISDICTION, YOU HAVE NO RIGHTS UNDER + THIS LICENSE AND YOU MUST NOT USE, COPY, MODIFY, CREATE + DERIVATIVE WORKS OF, NOR (RE)DISTRIBUTE THIS PRODUCT, NOR ANY + PORTION(S) THEREOF. + + 8. Except as otherwise provided in this License, if any + provision of this License, or a portion thereof, is found to be + invalid or unenforceable under applicable law, it shall not + affect the validity or enforceability of the remainder of this + License, and such invalid or unenforceable provision shall be + construed to reflect the original intent of the provision and + shall be enforced to the maximum extent permitted by applicable + law so as to effect the original intent of the provision as + closely as possible. + + ____________________________________________________________ + + + Third-Party Licenses + + This Product contains components that were created by third + parties and that are governed by third-party licenses, which are + contained hereinafter (separated by lines consisting of + underscores). Each of the third-party licenses applies only to + (portions of) the source code file(s) in which the third-party + license is contained or in which it is explicitly referenced, + and to compiled or otherwise processed forms of such source + code. None of the third-party licenses applies to This Product + as a whole, even when it uses terms such as "product", + "program", or any other equivalent terms/phrases. This Product + as a whole is governed by the TrueCrypt License (see above). + Some of the third-party components have been modified by the + authors of This Product. Unless otherwise stated, such + modifications and additions are governed by the TrueCrypt + License (see above). Note: Unless otherwise stated, graphics and + files that are not part of the source code are governed by the + TrueCrypt License. + + ____________________________________________________________ + + License agreement for Encryption for the Masses. + + Copyright (C) 1998-2000 Paul Le Roux. All Rights Reserved. + + This product can be copied and distributed free of charge, + including source code. + + You may modify this product and source code, and distribute such + modifications, and you may derive new works based on this + product, provided that: + + 1. Any product which is simply derived from this product cannot + be called E4M, or Encryption for the Masses. + + 2. If you use any of the source code in your product, and your + product is distributed with source code, you must include this + notice with those portions of this source code that you use. + + Or, + + If your product is distributed in binary form only, you must + display on any packaging, and marketing materials which + reference your product, a notice which states: + + "This product uses components written by Paul Le Roux + <pleroux@swprofessionals.com>" + + 3. If you use any of the source code originally by Eric Young, + you must in addition follow his terms and conditions. + + 4. Nothing requires that you accept this License, as you have + not signed it. However, nothing else grants you permission to + modify or distribute the product or its derivative works. + + These actions are prohibited by law if you do not accept this + License. + + 5. If any of these license terms is found to be to broad in + scope, and declared invalid by any court or legal process, you + agree that all other terms shall not be so affected, and shall + remain valid and enforceable. + + 6. THIS PROGRAM IS DISTRIBUTED FREE OF CHARGE, THEREFORE THERE + IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY + APPLICABLE LAW. UNLESS OTHERWISE STATED THE PROGRAM IS PROVIDED + "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR + IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE + ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS + WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE + COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 7. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN + WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY + MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE + LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, + INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR + INABILITY TO USE THE PROGRAM, INCLUDING BUT NOT LIMITED TO LOSS + OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY + YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH + ANY OTHER PROGRAMS, EVEN IF SUCH HOLDER OR OTHER PARTY HAD + PREVIOUSLY BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + ____________________________________________________________ + + Copyright (c) 1998-2008, Brian Gladman, Worcester, UK. + All rights reserved. + + LICENSE TERMS + + The free distribution and use of this software is allowed (with + or without changes) provided that: + + 1. source code distributions include the above copyright + notice, this list of conditions and the following + disclaimer; + + 2. binary distributions include the above copyright notice, + this list of conditions and the following disclaimer in + their documentation; + + 3. the name of the copyright holder is not used to endorse + products built using this software without specific written + permission. + + DISCLAIMER + + This software is provided 'as is' with no explicit or implied + warranties in respect of its properties, including, but not + limited to, correctness and/or fitness for purpose. + ____________________________________________________________ + + Copyright (C) 2002-2004 Mark Adler, all rights reserved + version 1.8, 9 Jan 2004 + + This software is provided 'as-is', without any express or + implied warranty. In no event will the author be held liable + for any damages arising from the use of this software. + + Permission is granted to anyone to use this software for any + purpose, including commercial applications, and to alter it and + redistribute it freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you + must not claim that you wrote the original software. If you + use this software in a product, an acknowledgment in the + product documentation would be appreciated but is not + required. + 2. Altered source versions must be plainly marked as such, and + must not be misrepresented as being the original software. + 3. This notice may not be removed or altered from any source + distribution. + ____________________________________________________________ + +The Debian packaging is: + + Copyright (C) 2009-2011 Francis Russell <francis@unchartedbackwaters.co.uk> + Copyright (C) 2014 Mike Gabriel <sunweaver@debian.org> + +and is licensed under the GPL version 2, +see `/usr/share/common-licenses/GPL-2'. diff --git a/debian/patches/000-opencryptoki-2.2.8.patch b/debian/patches/000-opencryptoki-2.2.8.patch new file mode 100644 index 0000000..93b19e2 --- /dev/null +++ b/debian/patches/000-opencryptoki-2.2.8.patch @@ -0,0 +1,47 @@ +Description: Build against libopencryptoki 2.2.28 +Author: Francis Russell <francis@unchartedbackwaters.co.uk> +--- a/Common/SecurityToken.cpp 2009-11-08 01:24:41.000000000 +0000 ++++ b/Common/SecurityToken.cpp 2009-11-08 01:29:30.000000000 +0000 +@@ -657,9 +657,15 @@ + TC_TOKEN_ERR (CKR_CRYPTOKI_ALREADY_INITIALIZED) + TC_TOKEN_ERR (CKR_MUTEX_BAD) + TC_TOKEN_ERR (CKR_MUTEX_NOT_LOCKED) ++ ++ /* ++ These error codes do not exist in PKCS#11 v2.11. ++ Removing them simply causes the error description strings to be returned as hex. ++ + TC_TOKEN_ERR (CKR_NEW_PIN_MODE) + TC_TOKEN_ERR (CKR_NEXT_OTP) + TC_TOKEN_ERR (CKR_FUNCTION_REJECTED) ++ */ + + #undef TC_TOKEN_ERR + }; +--- a/Common/SecurityToken.h 2009-11-08 01:24:41.000000000 +0000 ++++ b/Common/SecurityToken.h 2009-11-08 01:27:01.000000000 +0000 +@@ -19,6 +19,15 @@ + #ifndef NULL_PTR + # define NULL_PTR 0 + #endif ++ ++#ifndef CK_TRUE ++# define CK_TRUE TRUE ++#endif ++ ++#ifndef CK_FALSE ++# define CK_FALSE FALSE ++#endif ++ + #define CK_PTR * + #define CK_CALLBACK_FUNCTION(RET_TYPE, NAME) RET_TYPE (* NAME) + +@@ -40,7 +49,7 @@ + # define CK_DECLARE_FUNCTION(RET_TYPE, NAME) RET_TYPE NAME + # define CK_DECLARE_FUNCTION_POINTER(RET_TYPE, NAME) RET_TYPE (* NAME) + +-# include <pkcs11.h> ++# include <opencryptoki/pkcs11.h> + + #endif // !TC_WINDOWS + diff --git a/debian/patches/001-user-guide-location.patch b/debian/patches/001-user-guide-location.patch new file mode 100644 index 0000000..38af4ff --- /dev/null +++ b/debian/patches/001-user-guide-location.patch @@ -0,0 +1,13 @@ +Description: rename user guide (not white spaces in filename) +Author: Francis Russell <francis@unchartedbackwaters.co.uk> +--- a/Main/GraphicUserInterface.cpp 2013-01-13 23:15:11.109850819 +0000 ++++ b/Main/GraphicUserInterface.cpp 2013-01-13 23:15:25.184237643 +0000 +@@ -1085,7 +1085,7 @@ + #elif defined (TC_MACOSX) + docPath += L"/../Resources/TrueCrypt User Guide.pdf"; + #elif defined (TC_UNIX) +- docPath = L"/usr/share/truecrypt/doc/TrueCrypt User Guide.pdf"; ++ docPath = L"/usr/share/doc/truecrypt/user_guide.pdf"; + #else + # error TC_RESOURCE_DIR undefined + #endif diff --git a/debian/patches/002-build-flags.patch b/debian/patches/002-build-flags.patch new file mode 100644 index 0000000..ee7d233 --- /dev/null +++ b/debian/patches/002-build-flags.patch @@ -0,0 +1,16 @@ +Description: Fill build flags directly in Makefile +Author: Francis Russell <francis@unchartedbackwaters.co.uk> +--- a/Makefile 2012-02-07 10:36:48.000000000 +0000 ++++ b/Makefile 2013-01-13 23:19:51.593631914 +0000 +@@ -50,6 +50,11 @@ + export WXCONFIG_CXXFLAGS := + WX_ROOT ?= .. + ++CPPFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS) ++CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) ++CXXFLAGS+=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) ++LFLAGS+=$(shell dpkg-buildflags --get LDFLAGS) ++ + + export TC_BUILD_CONFIG := Release + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ae33e1f --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +000-opencryptoki-2.2.8.patch +001-user-guide-location.patch +002-build-flags.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..56fb361 --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/buildvars.mk +include /usr/share/cdbs/1/class/makefile.mk + +DEB_MAKE_ENVVARS := PKCS11_INC=$(CURDIR)/debian/PKCS +DEB_MAKE_INVOKE := $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) + +debian/truecrypt.1:: + unset DISPLAY && Main/truecrypt --help 2>/dev/null | debian/truecrypt_help_to_troff.pl > debian/truecrypt.1 + +clean/truecrypt:: + rm -f debian/truecrypt.1 + +build/truecrypt:: debian/truecrypt.1 + +install/truecrypt:: + install -m 644 -D "Resources/Icons/TrueCrypt-48x48.xpm" debian/tmp/usr/share/pixmaps/truecrypt.xpm + install -m 644 -D "Release/Setup Files/TrueCrypt User Guide.pdf" debian/tmp/usr/share/doc/truecrypt/user_guide.pdf diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/truecrypt.default b/debian/truecrypt.default new file mode 100644 index 0000000..2fcd30f --- /dev/null +++ b/debian/truecrypt.default @@ -0,0 +1,6 @@ +# If enabled, the following option calls 'truecrypt -d' at shutdown. Although +# all filesystems are unmounted automatically at shutdown, only calling +# 'truecrypt -d' will stop the TrueCrypt processes and remove any device mappings. +# It probably isn't necessary to do this, but it shouldn't hurt. + +TRUECRYPT_SHUTDOWN_UNMOUNT="yes" diff --git a/debian/truecrypt.desktop b/debian/truecrypt.desktop new file mode 100644 index 0000000..7d9a51e --- /dev/null +++ b/debian/truecrypt.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=TrueCrypt +GenericName=TrueCrypt volume manager +Comment=Create and mount TrueCrypt encrypted volumes +Icon=/usr/share/pixmaps/truecrypt.xpm +Exec=/usr/bin/truecrypt +Categories=Security;Utility;Filesystem +Terminal=false diff --git a/debian/truecrypt.docs b/debian/truecrypt.docs new file mode 100644 index 0000000..8a291f5 --- /dev/null +++ b/debian/truecrypt.docs @@ -0,0 +1,3 @@ +Readme.txt +debian/README.source +debian/tmp/usr/share/doc/truecrypt/user_guide.pdf diff --git a/debian/truecrypt.init b/debian/truecrypt.init new file mode 100755 index 0000000..b0deb74 --- /dev/null +++ b/debian/truecrypt.init @@ -0,0 +1,54 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: truecrypt +# Required-Start: +# Required-Stop: $remote_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Remove remaining TrueCrypt device mappings. +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +TRUECRYPT_SHUTDOWN_UNMOUNT="yes" + +. /lib/lsb/init-functions + +[ -x /usr/bin/truecrypt ] || exit 0 + +if [ -r /etc/default/truecrypt ]; then + . /etc/default/truecrypt +fi + +case "${TRUECRYPT_SHUTDOWN_UNMOUNT}" in +[Nn]*) + exit 0 + ;; +esac + +do_stop() +{ + log_action_begin_msg "Removing TrueCrypt device mappings" + truecrypt -d + log_action_end_msg $? +} + +case "$1" in + start) + # No-op + ;; + restart|reload|force-reload) + # No-op + ;; + stop) + do_stop + ;; + *) + echo "Usage: $0 stop" >&2 + exit 3 + ;; +esac + +exit 0 diff --git a/debian/truecrypt.install b/debian/truecrypt.install new file mode 100644 index 0000000..6da70b0 --- /dev/null +++ b/debian/truecrypt.install @@ -0,0 +1,3 @@ +Main/truecrypt /usr/bin +debian/tmp/usr/share/pixmaps/truecrypt.xpm /usr/share/pixmaps/ +debian/truecrypt.desktop /usr/share/applications/ diff --git a/debian/truecrypt.manpages b/debian/truecrypt.manpages new file mode 100644 index 0000000..6ddaf9f --- /dev/null +++ b/debian/truecrypt.manpages @@ -0,0 +1 @@ +debian/truecrypt.1 diff --git a/debian/truecrypt.menu b/debian/truecrypt.menu new file mode 100644 index 0000000..95794a9 --- /dev/null +++ b/debian/truecrypt.menu @@ -0,0 +1,7 @@ +?package(truecrypt):\ + needs="X11"\ + section="Applications/System/Security"\ + title="TrueCrypt"\ + longtitle="Create and mount TrueCrypt encrypted volumes"\ + command="/usr/bin/truecrypt"\ + icon="/usr/share/pixmaps/truecrypt.xpm" diff --git a/debian/truecrypt.prerm b/debian/truecrypt.prerm new file mode 100755 index 0000000..27d12ff --- /dev/null +++ b/debian/truecrypt.prerm @@ -0,0 +1,24 @@ +#!/bin/sh +# prerm script for truecrypt + +set -e + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + (mount | grep truecrypt_aux_mnt > /dev/null) && + echo "Error: all TrueCrypt volumes must be unmounted before upgrade." && exit 1 + exit 0 + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/truecrypt_help_to_troff.pl b/debian/truecrypt_help_to_troff.pl new file mode 100755 index 0000000..79e5ce0 --- /dev/null +++ b/debian/truecrypt_help_to_troff.pl @@ -0,0 +1,63 @@ +#!/usr/bin/perl -w +use strict; + +open(OUT, ">&STDOUT") or die "Couldn't dup STDOUT: $!"; +open(IN, "<&STDIN" ) or die "Couldn't dup STDIN : $!"; + +print OUT ".TH TRUECRYPT 1\n"; +print OUT ".SH NAME\n"; +print OUT "truecrypt \\- create and mount TrueCrypt encrypted volumes\n"; + +my $section = ""; + +while(my $line = <IN>) +{ + if ($line =~ m/^([a-z_]+):$/i) + { + $section= lc($1); + } + + my $out = $line; + + if ($line =~ m/^[a-z_]+:$/i) + { + $line =~ s/://; + $line = ".SH " . $line; + + $out = uc($line); + } + elsif ($section eq "synopsis") + { + $line =~ s/([A-Z_]+)/\\fI$1\\fP/g; + $out = $line."\n"; + } + elsif ($section eq "examples") + { + if ($line =~ m/^.*:$/) + { + $out = ".PP\n.B $line"; + } + elsif ($line =~ m/.+/) + { + $out = ".nf\n$line.fi\n"; + } + } + elsif ($line =~ m/^-/) + { + $out = ".TP\n.B ".$line; + } + + # In general, the hyphen-minus is meant to be a minus. + $out =~ s/-/\\-/g; + print OUT $out +} + +print OUT ".SH COPYRIGHT\n"; +print OUT "TrueCrypt is \\(co 2012 TrueCrypt Developers Association. All rights reserved.\n"; + +print OUT ".PP\nThis manual page was automatically generated from the output of \\fBtruecrypt \\-\\-help\\fP\n"; +print OUT "as part of unofficial TrueCrypt Debian packaging from\n"; +print OUT "\\fIhttp://www.unchartedbackwaters.co.uk/pyblosxom/static/truecrypt_debian_packaging\\fP.\n"; + +close(IN); +close(OUT); |