[debian-edu-commits] debian-edu/pkg-team/ 01/10: Import Debian packaging as found at https://launchpad.net/~unit193/+archive/ubuntu/encryption/+packages (2016-02-10).

Mike Gabriel sunweaver at debian.org
Mon Feb 15 11:11:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository veracrypt.

commit 6d0b84cb9963ea8fa761ee575fc8c8505de2f786
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Feb 10 17:22:43 2016 +0100

    Import Debian packaging as found at https://launchpad.net/~unit193/+archive/ubuntu/encryption/+packages (2016-02-10).
---
 debian/README.Debian                        |  26 ++
 debian/changelog                            |  70 ++++
 debian/compat                               |   1 +
 debian/control                              |  31 ++
 debian/copyright                            | 606 ++++++++++++++++++++++++++++
 debian/gbp.conf                             |   3 +
 debian/patches/001-user-guide-location.diff |  22 +
 debian/patches/002-build-flags.diff         |  34 ++
 debian/patches/003-indicator-support.diff   | 176 ++++++++
 debian/patches/series                       |   3 +
 debian/prerm                                |  20 +
 debian/rules                                |  29 ++
 debian/source/format                        |   1 +
 debian/upstream/signing-key.asc             |  49 +++
 debian/veracrypt.default                    |   6 +
 debian/veracrypt.desktop                    |  21 +
 debian/veracrypt.doc-base                   |   8 +
 debian/veracrypt.docs                       |   2 +
 debian/veracrypt.init                       |  56 +++
 debian/veracrypt.install                    |   3 +
 debian/veracrypt.manpages                   |   1 +
 debian/veracrypt.menu                       |   7 +
 debian/veracrypt_help_to_troff.pl           |  61 +++
 debian/watch                                |   3 +
 24 files changed, 1239 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..7642a48
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,26 @@
+VeraCrypt for Debian
+--------------------
+
+This file is part of an unofficial Debian packaging for VeraCrypt. It is
+unrelated to either Debian or VeraCrypt. 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 VeraCrypt Ubuntu/Debian packaging in at least
+these ways:
+
+- This package provides an init script that calls 'veracrypt -d' on shutdown. At
+  the point it is called, all filesystems (except root) should already have been
+  unmounted, but the VeraCrypt service processes and device mappings may still
+  be active. Calling 'veracrypt -d' is probably better than the system sending
+  the VeraCrypt service kill signals. It can be disabled by editing
+  /etc/default/veracrypt.
+
+- A Perl script transforms the output of 'veracrypt --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 VeraCrypt package only adds itself to the latter.
+
+- The user manual is installed in /usr/share/doc/veracrypt as opposed to
+  /usr/share/veracrypt/doc.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..88227d0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,70 @@
+veracrypt (1.14-0vanir1~15.10) wily; urgency=medium
+
+  * No-change backport to wily
+
+ -- Unit 193 <unit193 at ubuntu.com>  Sat, 19 Sep 2015 17:35:40 -0400
+
+veracrypt (1.14-0vanir1) unstable; urgency=medium
+
+  * Imported Upstream version 1.14.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Sat, 19 Sep 2015 16:53:59 -0400
+
+veracrypt (1.12-0vanir1) unstable; urgency=medium
+
+  * Imported Upstream version 1.12.
+    - Remove upstream commits.
+      + d/p/004-Correct-wxWidgets-assert-warnings-when-displaying-about.diff
+    - Refresh remaining patches.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Thu, 06 Aug 2015 20:52:40 -0400
+
+veracrypt (1.0f-2-0vanir3) unstable; urgency=medium
+
+  * d/p/004-Correct-wxWidgets-assert-warnings-when-displaying-about.diff:
+    - Add patch from upstream to fix assert when opening about dialog.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Mon, 20 Apr 2015 18:20:18 -0400
+
+veracrypt (1.0f-2-0vanir2) unstable; urgency=medium
+
+  * d/control:
+    - Drop version deps on e2fsprogs and mount.
+    - Replace module-init-tools with kmod.
+    - Drop dep on xterm.
+    - Bump xdg-utils down to recommends.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Mon, 13 Apr 2015 17:44:29 -0400
+
+veracrypt (1.0f-2-0vanir1) unstable; urgency=medium
+
+  * Imported Upstream version 1.0f-2
+    - Drop 003-file-manager.diff and 004-no-preference-x.diff, fixed upstream.
+    - Refresh remaining patches.
+  * Remove all references to opencryptoki.
+  * d/rules: Enable verbose build.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Mon, 06 Apr 2015 16:58:55 -0400
+
+veracrypt (1.0f-1-0vanir1) unstable; urgency=medium
+
+  * New upstream release.
+    - Refresh patches.
+  * d/watch: Pick up releases with underscores and dashes too.
+
+ -- Unit 193 <unit193 at ubuntu.com>  Thu, 08 Jan 2015 04:45:50 -0500
+
+veracrypt (1.0f-0vanir1) unstable; urgency=medium
+
+  * New upstream release.
+    - Refreshed patches.
+  * d/watch: Update for tar.gz, bz2 and xz.
+  * d/copyright: Update years.
+
+ -- Unit 193 <unit193 at ninthfloor.org>  Sat, 03 Jan 2015 04:11:10 -0500
+
+veracrypt (1.0e-0vanir1) unstable; urgency=medium
+
+  * Initial release.
+
+ -- Unit 193 <unit193 at ninthfloor.org>  Sun, 09 Nov 2014 15:36:54 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cf7b782
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: veracrypt
+Section: non-free/utils
+Priority: optional
+Maintainer: Unit 193 <unit193 at ninthfloor.org>
+Build-Depends: debhelper (>= 9),
+               imagemagick,
+               libappindicator-dev,
+               libfuse-dev,
+               libwxgtk3.0-dev,
+               makeself,
+               nasm (>= 2.08.01) [any-i386 any-amd64],
+               pkg-config
+Standards-Version: 3.9.6
+Homepage: https://veracrypt.codeplex.com/
+
+Package: veracrypt
+Architecture: any
+Depends: dmsetup,
+         dosfstools,
+         kmod,
+         sudo,
+         ${misc:Depends},
+         ${shlibs:Depends}
+Recommends: xdg-utils
+Description: Cross-platform on-the-fly encryption
+ VeraCrypt 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,
+ VeraCrypt supports "hidden volumes" - unidentifiable volumes present in the
+ free-space of a VeraCrypt volume.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec03ba8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,606 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: veracrypt
+Source: http://sourceforge.net/projects/truecrypt/
+
+Files: *
+Copyright: 2003-2011, TrueCrypt Developers Association
+	   2013-2014, IDRIX
+License: TC-3.0 or Ms-PL
+
+Files: 	src/Common/Apidrvr.h
+	src/Common/Cache.*
+	src/Common/Cmdline.*
+	src/Common/Combo.*
+	src/Common/Crc.*
+	src/Common/Crypto.*
+	src/Common/Dlgcode.*
+	src/Common/Endian.*
+	src/Common/Fat.*
+	src/Common/Format.*
+	src/Common/Password.*
+	src/Common/Pkcs5.*
+	src/Common/Progress.*
+	src/Common/Random.*
+	src/Common/Tcdefs.h
+	src/Common/Tests.*
+	src/Common/Volumes.*
+	src/Core/FatFormatter.cpp
+	src/Driver/Ntdriver.*
+	src/Driver/Ntvol.*
+	src/Format/Tcformat.*
+	src/Mount/Mount.*
+	src/Setup/Dir.*
+	src/Setup/Setup.*
+	src/Setup/Wizard.*
+Copyright: 1998-2000, Paul Le Roux
+License: E4M
+
+Files:	src/Common/GfMul.c
+	src/Common/GfMul.h
+	src/Crypto/Aescrypt.c
+	src/Crypto/Aes.h
+	src/Crypto/Aeskey.c
+	src/Crypto/Aesopt.h
+	src/Crypto/AesSmall.c
+	src/Crypto/AesSmall.h
+	src/Crypto/AesSmall_x86.asm
+	src/Crypto/Aestab.c
+	src/Crypto/Aestab.h
+	src/Crypto/Aes_x64.asm
+	src/Crypto/Aes_x86.asm
+	src/Crypto/Sha2.c
+	src/Crypto/Sha2.h
+	src/Crypto/Twofish.c
+Copyright: 1998-2007, Brian Gladman, Worcester, UK
+License: BSD-3-Clause
+
+Files: src/Boot/Windows/Decompressor.c
+Copyright: 2002-2004, Mark Adler
+License: zlib
+
+Files: debian/*
+Copyright: 2013-2015, Unit 193 <unit193 at ninthfloor.org>
+License: BSD-3-Clause
+
+
+
+License: TC-3.0
+ 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
+ 0. 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 at 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 at 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.
+
+
+License: Ms-PL
+ This license governs use of the accompanying software. If you use the 
+ software, you accept this license. If you do not accept the license, do not 
+ use the software.
+ .
+ 1. Definitions
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" 
+ have the same meaning here as under U.S. copyright law.
+ A "contribution" is the original software, or any additions or changes to 
+ the software.
+ A "contributor" is any person that distributes its contribution under this 
+ license.
+ "Licensed patents" are a contributor's patent claims that read directly on its 
+ contribution.
+ .
+ 2. Grant of Rights
+ (A) Copyright Grant- Subject to the terms of this license, including the 
+ license conditions and limitations in section 3, each contributor grants you 
+ a non-exclusive, worldwide, royalty-free copyright license to reproduce its 
+ contribution, prepare derivative works of its contribution, and distribute 
+ its contribution or any derivative works that you create.
+ (B) Patent Grant- Subject to the terms of this license, including the license 
+ conditions and limitations in section 3, each contributor grants you a 
+ non-exclusive, worldwide, royalty-free license under its licensed patents to 
+ make, have made, use, sell, offer for sale, import, and/or otherwise dispose 
+ of its contribution in the software or derivative works of the 
+ contribution in the software.
+ .
+ 3. Conditions and Limitations
+ (A) No Trademark License- This license does not grant you rights to use any 
+ contributors' name, logo, or trademarks.
+ (B) If you bring a patent claim against any contributor over patents that you 
+ claim are infringed by the software, your patent license from such 
+ contributor to the software ends automatically.
+ (C) If you distribute any portion of the software, you must retain all 
+ copyright, patent, trademark, and attribution notices that are present in the 
+ software.
+ (D) If you distribute any portion of the software in source code form, you may 
+ do so only under this license by including a complete copy of this license 
+ with your distribution. If you distribute any portion of the software in 
+ compiled or object code form, you may only do so under a license that complies 
+ with this license.
+ (E) The software is licensed "as-is." You bear the risk of using it. The 
+ contributors give no express warranties, guarantees or conditions. You may 
+ have additional consumer rights under your local laws which this license 
+ cannot change. To the extent permitted under your local laws, the contributors 
+ exclude the implied warranties of merchantability, fitness for a particular 
+ purpose and non-infringement.
+
+
+License: E4M
+ 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 at 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.
+
+
+License: BSD-3-clause
+ 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.
+
+
+License: zlib
+ 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.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..5474c60
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+pristine-tar = True
+sign-tags = True
diff --git a/debian/patches/001-user-guide-location.diff b/debian/patches/001-user-guide-location.diff
new file mode 100644
index 0000000..f4d6905
--- /dev/null
+++ b/debian/patches/001-user-guide-location.diff
@@ -0,0 +1,22 @@
+From: Francis Russell <francis at unchartedbackwaters.co.uk>
+Date: Mon, 14 Jan 2013 11:44 
+Subject: Move manual
+
+The user manual is installed in /usr/share/doc/veracrypt as opposed to
+/usr/share/veracrypt/doc.
+
+Forwarded: no
+
+Index: veracrypt/src/Main/GraphicUserInterface.cpp
+===================================================================
+--- veracrypt.orig/src/Main/GraphicUserInterface.cpp
++++ veracrypt/src/Main/GraphicUserInterface.cpp
+@@ -1217,7 +1217,7 @@ namespace VeraCrypt
+ #elif defined (TC_MACOSX)
+ 			docPath += L"/../Resources/VeraCrypt User Guide.pdf";
+ #elif defined (TC_UNIX)
+-			docPath = L"/usr/share/veracrypt/doc/VeraCrypt User Guide.pdf";
++			docPath = L"/usr/share/doc/veracrypt/user_guide.pdf";
+ #else
+ #	error TC_RESOURCE_DIR undefined
+ #endif
diff --git a/debian/patches/002-build-flags.diff b/debian/patches/002-build-flags.diff
new file mode 100644
index 0000000..25f3e69
--- /dev/null
+++ b/debian/patches/002-build-flags.diff
@@ -0,0 +1,34 @@
+From: Stefan Sundin <stefan at stefansundin.com>
+Date: Fri, 12 Sept 2013 
+Subject: Add build flags
+
+Forwarded: no
+
+Index: veracrypt/src/Makefile
+===================================================================
+--- veracrypt.orig/src/Makefile
++++ veracrypt/src/Makefile
+@@ -54,6 +54,10 @@ export WXCONFIG_CFLAGS :=
+ export WXCONFIG_CXXFLAGS :=
+ WX_ROOT ?= ..
+ 
++CPPFLAGS+=$(shell dpkg-buildflags --get CPPFLAGS)
++CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -Wno-sequence-point
++CXXFLAGS+=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) -Wno-narrowing
++LFLAGS+=$(shell dpkg-buildflags --get LDFLAGS)
+ 
+ export TC_BUILD_CONFIG := Release
+ 
+Index: veracrypt/src/Build/Include/Makefile.inc
+===================================================================
+--- veracrypt.orig/src/Build/Include/Makefile.inc
++++ veracrypt/src/Build/Include/Makefile.inc
+@@ -14,7 +14,7 @@ $(NAME): $(NAME).a
+ 
+ clean:
+ 	@echo Cleaning $(NAME)
+-	rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJSEX) $(OBJS:.o=.d) *.gch
++	rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJS:.o=.d) *.gch $(RESOURCES) SystemPrecompiled.d
+ 
+ %.o: %.c
+ 	@echo Compiling $(<F)
diff --git a/debian/patches/003-indicator-support.diff b/debian/patches/003-indicator-support.diff
new file mode 100644
index 0000000..4e83780
--- /dev/null
+++ b/debian/patches/003-indicator-support.diff
@@ -0,0 +1,176 @@
+From: Stefan Sundin <stefan at stefansundin.com>
+Date: Fri, 12 Sept 2013
+Subject: Switch from systray to application indicator
+
+This patch replaces the system tray icon with an application indicator applet.
+
+Forwarded: no
+
+Signed-off-by: Unit 193 <unit193 at ninthfloor.org>
+
+Index: veracrypt/src/Main/Main.make
+===================================================================
+--- veracrypt.orig/src/Main/Main.make
++++ veracrypt/src/Main/Main.make
+@@ -132,7 +132,7 @@ endif
+ 
+ $(APPNAME): $(LIBS) $(OBJS)
+ 	@echo Linking $@
+-	$(CXX) -o $(APPNAME) $(OBJS) $(LIBS) $(FUSE_LIBS) $(WX_LIBS) $(LFLAGS)
++	$(CXX) -o $(APPNAME) $(OBJS) $(LIBS) $(FUSE_LIBS) $(WX_LIBS) $(LFLAGS) $(shell pkg-config --libs appindicator-0.1)
+ 
+ ifeq "$(TC_BUILD_CONFIG)" "Release"
+ ifndef NOSTRIP
+Index: veracrypt/src/Main/Forms/MainFrame.cpp
+===================================================================
+--- veracrypt.orig/src/Main/Forms/MainFrame.cpp
++++ veracrypt/src/Main/Forms/MainFrame.cpp
+@@ -46,6 +46,7 @@ namespace VeraCrypt
+ 	DEFINE_EVENT_TYPE(wxEVT_COMMAND_SHOW_WARNING)
+ 
+ 	MainFrame::MainFrame (wxWindow* parent) : MainFrameBase (parent),
++		indicator (NULL),
+ 		ListItemRightClickEventPending (false),
+ 		SelectedItemIndex (-1),
+ 		SelectedSlotNumber (0),
+@@ -1552,6 +1553,30 @@ namespace VeraCrypt
+ 		}
+ 	}
+ 
++	void MainFrame::SetBusy (bool busy)
++	{
++		gtk_widget_set_sensitive(indicator_item_mountfavorites, !busy);
++		gtk_widget_set_sensitive(indicator_item_dismountall, !busy);
++		gtk_widget_set_sensitive(indicator_item_prefs, !busy);
++		gtk_widget_set_sensitive(indicator_item_exit, !busy /*&& CanExit()*/);
++	}
++
++	static void IndicatorOnShowHideMenuItemSelected (GtkWidget *widget, MainFrame *self) { Gui->SetBackgroundMode (!Gui->IsInBackgroundMode()); }
++	static void IndicatorOnMountAllFavoritesMenuItemSelected (GtkWidget *widget, MainFrame *self) { self->SetBusy(true); self->MountAllFavorites (); self->SetBusy(false); }
++	static void IndicatorOnDismountAllMenuItemSelected (GtkWidget *widget, MainFrame *self) { self->SetBusy(true); Gui->DismountAllVolumes(); self->SetBusy(false); }
++	static void IndicatorOnPreferencesMenuItemSelected (GtkWidget *widget, MainFrame *self) {
++		self->SetBusy(true);
++		PreferencesDialog dialog (self);
++		dialog.ShowModal();
++		self->SetBusy(false);
++	}
++	static void IndicatorOnExitMenuItemSelected (GtkWidget *widget, MainFrame *self) {
++		self->SetBusy(true);
++		if (Core->GetMountedVolumes().empty() || Gui->AskYesNo (LangString ["CONFIRM_EXIT"], false, true))
++			self->Close (true);
++		self->SetBusy(false);
++	}
++
+ 	void MainFrame::ShowTaskBarIcon (bool show)
+ 	{
+ 		if (!show && mTaskBarIcon->IsIconInstalled())
+@@ -1561,8 +1586,43 @@ namespace VeraCrypt
+ 		else if (show && !mTaskBarIcon->IsIconInstalled())
+ 		{
+ #ifndef TC_MACOSX
+-			mTaskBarIcon->SetIcon (Resources::GetVeraCryptIcon(), L"VeraCrypt");
++			//mTaskBarIcon->SetIcon (Resources::GetVeraCryptIcon(), L"VeraCrypt");
+ #endif
++			if (indicator == NULL) {
++				indicator = app_indicator_new ("veracrypt", "veracrypt-indicator", APP_INDICATOR_CATEGORY_APPLICATION_STATUS);
++				app_indicator_set_status (indicator, APP_INDICATOR_STATUS_ACTIVE);
++
++				GtkWidget *menu = gtk_menu_new();
++
++				indicator_item_showhide = gtk_menu_item_new_with_label (LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"].mb_str());
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), indicator_item_showhide);
++				g_signal_connect (indicator_item_showhide, "activate", G_CALLBACK (IndicatorOnShowHideMenuItemSelected), this);
++
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), gtk_separator_menu_item_new());
++
++				indicator_item_mountfavorites = gtk_menu_item_new_with_label ("Mount All Favorite Volumes");
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), indicator_item_mountfavorites);
++				g_signal_connect (indicator_item_mountfavorites, "activate", G_CALLBACK (IndicatorOnMountAllFavoritesMenuItemSelected), this);
++
++				indicator_item_dismountall = gtk_menu_item_new_with_label ("Dismount All Mounted Volumes");
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), indicator_item_dismountall);
++				g_signal_connect (indicator_item_dismountall, "activate", G_CALLBACK (IndicatorOnDismountAllMenuItemSelected), this);
++
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), gtk_separator_menu_item_new());
++
++				indicator_item_prefs = gtk_menu_item_new_with_label ("Preferences...");
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), indicator_item_prefs);
++				g_signal_connect (indicator_item_prefs, "activate", G_CALLBACK (IndicatorOnPreferencesMenuItemSelected), this);
++
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), gtk_separator_menu_item_new());
++
++				indicator_item_exit = gtk_menu_item_new_with_label ("Exit");
++				gtk_menu_shell_append (GTK_MENU_SHELL (menu), indicator_item_exit);
++				g_signal_connect (indicator_item_exit, "activate", G_CALLBACK (IndicatorOnExitMenuItemSelected), this);
++
++				gtk_widget_show_all (menu);
++				app_indicator_set_menu (indicator, GTK_MENU (menu));
++			}
+ 		}
+ 	}
+ 
+Index: veracrypt/src/Main/Forms/MainFrame.h
+===================================================================
+--- veracrypt.orig/src/Main/Forms/MainFrame.h
++++ veracrypt/src/Main/Forms/MainFrame.h
+@@ -13,6 +13,10 @@
+ #ifndef TC_HEADER_Main_Forms_MainFrame
+ #define TC_HEADER_Main_Forms_MainFrame
+ 
++#define GSocket GlibGSocket
++#include <libappindicator/app-indicator.h>
++#undef GSocket
++ 
+ #include "Forms.h"
+ #include "ChangePasswordDialog.h"
+ 
+@@ -35,6 +39,16 @@ namespace VeraCrypt
+ 		static FilePath GetShowRequestFifoPath () { return Application::GetConfigFilePath (L".show-request-queue", true); }
+ #endif
+ 
++		void MountAllFavorites ();
++
++		AppIndicator *indicator;
++		GtkWidget *indicator_item_showhide;
++		GtkWidget *indicator_item_mountfavorites;
++		GtkWidget *indicator_item_dismountall;
++		GtkWidget *indicator_item_prefs;
++		GtkWidget *indicator_item_exit;
++		void SetBusy (bool busy);
++
+ 	protected:
+ 		enum
+ 		{
+@@ -68,7 +82,6 @@ namespace VeraCrypt
+ 		void LoadFavoriteVolumes ();
+ 		void LoadPreferences ();
+ 		void MountAllDevices ();
+-		void MountAllFavorites ();
+ 		void MountVolume ();
+ 		void OnAboutMenuItemSelected (wxCommandEvent& event);
+ 		void OnQuit(wxCommandEvent& event) { Close(true); }
+Index: veracrypt/src/Main/GraphicUserInterface.cpp
+===================================================================
+--- veracrypt.orig/src/Main/GraphicUserInterface.cpp
++++ veracrypt/src/Main/GraphicUserInterface.cpp
+@@ -1628,6 +1628,8 @@ namespace VeraCrypt
+ 		}
+ 
+ 		BackgroundMode = state;
++
++		gtk_menu_item_set_label ((GtkMenuItem*) ((MainFrame*) mMainFrame)->indicator_item_showhide, LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"].mb_str());
+ 	}
+ 
+ 	void GraphicUserInterface::SetListCtrlColumnWidths (wxListCtrl *listCtrl, list <int> columnWidthPermilles, bool hasVerticalScrollbar) const
+Index: veracrypt/src/Makefile
+===================================================================
+--- veracrypt.orig/src/Makefile
++++ veracrypt/src/Makefile
+@@ -58,6 +58,7 @@ CPPFLAGS+=$(shell dpkg-buildflags --get
+ CFLAGS+=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) -Wno-sequence-point
+ CXXFLAGS+=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) -Wno-narrowing
+ LFLAGS+=$(shell dpkg-buildflags --get LDFLAGS)
++C_CXX_FLAGS += $(shell pkg-config --cflags appindicator-0.1)
+ 
+ export TC_BUILD_CONFIG := Release
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2694b0b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+001-user-guide-location.diff
+002-build-flags.diff
+003-indicator-support.diff
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..baa2e73
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    remove|upgrade|deconfigure|failed-upgrade)
+        (mount | grep -q veracrypt_aux_mnt) &&
+        echo "Error: all VeraCrypt volumes must be unmounted before upgrade." && exit 1
+        exit 0
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7980c2a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh  $@ --sourcedirectory=src
+
+override_dh_auto_build:
+	dh_auto_build -- VERBOSE=1
+	unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | debian/veracrypt_help_to_troff.pl > veracrypt.1
+	convert -resize 32x32 src/Resources/Icons/VeraCrypt-48x48.xpm veracrypt.xpm
+
+override_dh_clean:
+	dh_clean veracrypt.1 user_guide.pdf veracrypt.xpm
+
+override_dh_install:
+	cp "src/Release/Setup Files/VeraCrypt User Guide.pdf" user_guide.pdf
+	dh_install
+
+override_dh_compress:
+	dh_compress -Xuser_guide.pdf
+
+override_dh_installinit:
+	dh_installinit --no-start -- stop 10 0 1 6 .
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/upstream/signing-key.asc b/debian/upstream/signing-key.asc
new file mode 100644
index 0000000..225054f
--- /dev/null
+++ b/debian/upstream/signing-key.asc
@@ -0,0 +1,49 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+
+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
+Xa+RNJ4=
+=MCe9
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/debian/veracrypt.default b/debian/veracrypt.default
new file mode 100644
index 0000000..c5fdad7
--- /dev/null
+++ b/debian/veracrypt.default
@@ -0,0 +1,6 @@
+# If enabled, the following option calls 'veracrypt -d' at shutdown. Although
+# all filesystems are unmounted automatically at shutdown, only calling
+# 'veracrypt -d' will stop the VeraCrypt processes and remove any device mappings.
+# It probably isn't necessary to do this, but it shouldn't hurt.
+
+VERACRYPT_SHUTDOWN_UNMOUNT="yes"
diff --git a/debian/veracrypt.desktop b/debian/veracrypt.desktop
new file mode 100644
index 0000000..6a09151
--- /dev/null
+++ b/debian/veracrypt.desktop
@@ -0,0 +1,21 @@
+[Desktop Entry]
+Type=Application
+Name=VeraCrypt
+GenericName=VeraCrypt volume manager
+Comment=Create and mount VeraCrypt encrypted volumes
+Icon=veracrypt
+Exec=veracrypt
+Categories=Security;Utility;Filesystem
+Terminal=false
+X-Ayatana-Desktop-Shortcuts=MountFavorites;DismountAll
+
+[MountFavorites Shortcut Group]
+Name=Mount All Favorite Volumes
+Exec=/usr/bin/veracrypt --auto-mount=favorites
+TargetEnvironment=Unity
+
+[DismountAll Shortcut Group]
+Name=Dismount All Mounted Volumes
+Exec=/usr/bin/veracrypt --dismount
+TargetEnvironment=Unity
+
diff --git a/debian/veracrypt.doc-base b/debian/veracrypt.doc-base
new file mode 100644
index 0000000..9ed13cb
--- /dev/null
+++ b/debian/veracrypt.doc-base
@@ -0,0 +1,8 @@
+Document: veracrypt
+Title: VeraCrypt User's Guide
+Author: TrueCrypt Foundation
+Abstract: This is the user manual for VeraCrypt, an encryption tool.
+Section: System/Security
+
+Format: PDF
+Files: /usr/share/doc/veracrypt/user_guide.pdf
diff --git a/debian/veracrypt.docs b/debian/veracrypt.docs
new file mode 100644
index 0000000..594fc03
--- /dev/null
+++ b/debian/veracrypt.docs
@@ -0,0 +1,2 @@
+src/Readme.txt
+user_guide.pdf
diff --git a/debian/veracrypt.init b/debian/veracrypt.init
new file mode 100644
index 0000000..b7ee031
--- /dev/null
+++ b/debian/veracrypt.init
@@ -0,0 +1,56 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: veracrypt
+# Required-Start:   
+# Required-Stop: $remote_fs
+# Should-Start:      
+# Should-Stop:
+# Default-Start:
+# Default-Stop: 0 1 6
+# Short-Description: Remove remaining VeraCrypt device mappings.
+# Description:       This init script will dismount mounted VeraCrypt partitions before shutdown.
+### END INIT INFO
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+VERACRYPT_SHUTDOWN_UNMOUNT="yes"
+
+. /lib/lsb/init-functions
+
+[ -x /usr/bin/veracrypt ] || exit 0
+
+if [ -r /etc/default/veracrypt ]; then
+        . /etc/default/veracrypt
+fi
+
+case "${veracrypt_SHUTDOWN_UNMOUNT}" in
+[Nn]*)
+        exit 0
+        ;;
+esac
+
+do_stop()
+{
+  log_action_begin_msg "Removing VeraCrypt device mappings"
+  veracrypt -d
+  log_action_end_msg $?
+}
+
+case "$1" in
+  start)
+        # No-op
+        ;;
+  status)
+        veracrypt --list
+        ;;
+  restart|reload|force-reload)
+        # No-op
+        ;;
+  stop)
+        do_stop
+        ;;
+  *)
+        echo "Usage: $0 stop|status" >&2
+        exit 3
+        ;;
+esac
+
diff --git a/debian/veracrypt.install b/debian/veracrypt.install
new file mode 100644
index 0000000..5654e04
--- /dev/null
+++ b/debian/veracrypt.install
@@ -0,0 +1,3 @@
+src/Main/veracrypt               usr/bin
+debian/veracrypt.desktop         usr/share/applications
+veracrypt.xpm                    usr/share/pixmaps/
diff --git a/debian/veracrypt.manpages b/debian/veracrypt.manpages
new file mode 100644
index 0000000..d91cfd4
--- /dev/null
+++ b/debian/veracrypt.manpages
@@ -0,0 +1 @@
+veracrypt.1
diff --git a/debian/veracrypt.menu b/debian/veracrypt.menu
new file mode 100644
index 0000000..3e39d43
--- /dev/null
+++ b/debian/veracrypt.menu
@@ -0,0 +1,7 @@
+?package(veracrypt):\
+  needs="X11"\
+  section="Applications/System/Security"\
+  title="VeraCrypt"\
+  longtitle="Create and mount VeraCrypt encrypted volumes"\
+  command="/usr/bin/veracrypt"\
+  icon="/usr/share/pixmaps/veracrypt.xpm"
diff --git a/debian/veracrypt_help_to_troff.pl b/debian/veracrypt_help_to_troff.pl
new file mode 100755
index 0000000..359158d
--- /dev/null
+++ b/debian/veracrypt_help_to_troff.pl
@@ -0,0 +1,61 @@
+#!/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 VERACRYPT 1\n";
+print OUT ".SH NAME\n";
+print OUT "veracrypt \\- create and mount VeraCrypt 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 "VeraCrypt is \\(co 2012 TrueCrypt Developers Association. All rights reserved.\n";
+
+print OUT ".PP\nThis manual page was automatically generated from the output of \\fBveracrypt \\-\\-help\\fP\n";
+
+close(IN);
+close(OUT);
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a4dc1be
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=pgpsigurlmangle=s/$/.sig/ \
+http://sf.net/veracrypt/veracrypt_([\d\w\._-]+)_Source\.tar\.(?:gz|bz2|xz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/veracrypt.git



More information about the debian-edu-commits mailing list