summaryrefslogtreecommitdiff
path: root/veracrypt
diff options
context:
space:
mode:
Diffstat (limited to 'veracrypt')
-rw-r--r--veracrypt/README.md16
-rw-r--r--veracrypt/credits.md2
-rw-r--r--veracrypt/debian/changelog59
-rw-r--r--veracrypt/debian/compat1
-rw-r--r--veracrypt/debian/control9
-rw-r--r--veracrypt/debian/gbp.conf1
-rw-r--r--veracrypt/debian/patches/001-indicator-support.patch194
-rw-r--r--veracrypt/debian/patches/001-user-guide-location.diff22
-rw-r--r--veracrypt/debian/patches/002-build-flags.diff34
-rw-r--r--veracrypt/debian/patches/004-fixup-install.diff52
-rw-r--r--veracrypt/debian/patches/series4
-rw-r--r--veracrypt/debian/patches/vc_devuan.patch2
-rw-r--r--veracrypt/debian/prerm2
-rw-r--r--veracrypt/debian/references1
-rwxr-xr-xveracrypt/debian/rules14
-rwxr-xr-xveracrypt/debian/scripts/mount.veracrypt23
-rwxr-xr-xveracrypt/debian/stackrpms-diff.sh3
-rw-r--r--veracrypt/debian/veracrypt+devuan.dsc14
-rw-r--r--veracrypt/debian/veracrypt.install1
-rw-r--r--veracrypt/debian/watch8
-rw-r--r--veracrypt/vc_fedora.patch2
-rw-r--r--veracrypt/veracrypt.spec18
22 files changed, 330 insertions, 152 deletions
diff --git a/veracrypt/README.md b/veracrypt/README.md
index 1efc9b5..de20d12 100644
--- a/veracrypt/README.md
+++ b/veracrypt/README.md
@@ -1,16 +1,19 @@
# VeraCrypt upstream
https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt_1.24.tar.gz
https://gitlab.com/bgstack15/big-sources/raw/master/veracrypt/VeraCrypt_1.24.tar.gz
-Spec file forked from https://copr-be.cloud.fedoraproject.org/results/scx/veracrypt/fedora-27-x86_64/00657099-veracrypt/veracrypt.spec
+Rpm spec forked from [scx copr](https://copr-be.cloud.fedoraproject.org/results/scx/veracrypt/fedora-27-x86_64/00657099-veracrypt/veracrypt.spec which also provides) which also provides the GTK2/3 options
+My dpkg is now an overlay on top of [Unit193 on salsa](https://salsa.debian.org/debian-edu-pkg-team/veracrypt)
# Reason for being in stackrpms
Fedora does not package veracrypt because its license is tricky. Devuan does not package the application either.
# Alternatives
-https://copr.fedorainfracloud.org/coprs/pmdpalma/bucket/build/712274/
-https://copr-be.cloud.fedoraproject.org/results/scx/veracrypt/fedora-27-x86_64/00657099-veracrypt/veracrypt-1.21-3.fc27.src.rpm
-https://copr.fedorainfracloud.org/coprs/cyfrost/packages/package/veracrypt/
-Additional references are available in [credits.md](credits.md)
+* pmdpalma
+ * [fedora copr](https://copr.fedorainfracloud.org/coprs/pmdpalma/bucket/build/712274/)
+ * [opensuse variant](https://build.opensuse.org/package/view_file/home:pmdpalma:bucket/veracrypt/veracrypt.spec?expand=1)
+* [scx](https://copr-be.cloud.fedoraproject.org/results/scx/veracrypt/fedora-27-x86_64/00657099-veracrypt/veracrypt-1.21-3.fc27.src.rpm)
+* [cyfrost](https://copr.fedorainfracloud.org/coprs/cyfrost/packages/package/veracrypt/)
+* [Unit193 on Launchpad (Ubuntu)](https://launchpad.net/~unit193/+archive/ubuntu/encryption/+packages)
# Reverse dependency matrix
Distro | VeraCrypt version
@@ -18,4 +21,5 @@ Distro | VeraCrypt version
All | 1.24
# Differences from upstream
-None
+##Dpkg
+stackrpms/veracrypt/debian/stackrpms-diff.sh | vi -
diff --git a/veracrypt/credits.md b/veracrypt/credits.md
deleted file mode 100644
index cc48934..0000000
--- a/veracrypt/credits.md
+++ /dev/null
@@ -1,2 +0,0 @@
-* Provides variable for wxGTK[23] https://copr-be.cloud.fedoraproject.org/results/scx/veracrypt/fedora-27-x86_64/00657099-veracrypt/veracrypt.spec
-* opensuse variant https://build.opensuse.org/package/view_file/home:pmdpalma:bucket/veracrypt/veracrypt.spec?expand=1
diff --git a/veracrypt/debian/changelog b/veracrypt/debian/changelog
index 884430d..fb2c98b 100644
--- a/veracrypt/debian/changelog
+++ b/veracrypt/debian/changelog
@@ -1,26 +1,61 @@
-veracrypt (1.24-1+devuan) obs; urgency=low
+veracrypt (1.24-Update7-1+devuan) obs; urgency=medium
- * New upstream version
+ * d/gbp.conf: Pass '--controlmaint' to dch.
- -- B Stack <bgstack15@gmail.com> Tue, 08 Oct 2019 11:31 -0400
+ -- Ben Stack <bgstack15@gmail.com> Tue, 11 Aug 2020 10:03:00 -0400
-veracrypt (1.23-2+devuan) manual; urgency=low
+veracrypt (1.24-Update4-1+devuan) obs; urgency=medium
- * Re-release to match current naming standard
+ * adapted for stackrpms
- -- B Stack <bgstack15@gmail.com> Sat, 29 Jun 2019 14:54 -0400
+ -- Ben Stack <bgstack15@gmail.com> Mon, 25 May 2020 10:23:50 -0400
-veracrypt (1.23-1devuan) manual; urgency=low
+veracrypt (1.24-Update4-0vanir1) unstable; urgency=medium
- * Initial release for devuan
+ * New upstream version 1.24-Update4
+ * Update Standards-Version to 4.5.0.
+ * d/compat, d/control:
+ - Drop d/compat in favor of debhelper-compat, bump to 12.
- -- B Stack <bgstack15@gmail.com> Wed, 30 Jan 2019 11:31:00 -0500
+ -- Unit 193 <unit193@ubuntu.com> Mon, 27 Jan 2020 18:31:30 -0500
-veracrypt (1.23-0vanir1~18.10) cosmic; urgency=medium
+veracrypt (1.24-Update2-0vanir1) unstable; urgency=medium
- * No-change backport to cosmic
+ * d/prerm: Send error messages to STDERR.
+ * New upstream version 1.24-Update2
+ - Drop upstream patches, refresh remaining.
- -- Unit 193 <unit193@ubuntu.com> Sat, 15 Sep 2018 19:15:42 -0400
+ -- Unit 193 <unit193@ubuntu.com> Thu, 19 Dec 2019 17:59:06 -0500
+
+veracrypt (1.24-Hotfix1-0vanir1) unstable; urgency=medium
+
+ * New upstream version 1.24-Hotfix1
+ - Refresh patches.
+ * d/p/002-Fix_compilation_on_non-x86_platforms.patch:
+ - Grab upstream commit to fix compilation on non-x86 platforms.
+ * d/p/003-Fix_compilation_error_if_type___u64_already_defined.patch:
+ - Fix compilation error if type __u64 is already defined by gcc.
+
+ -- Unit 193 <unit193@ubuntu.com> Wed, 30 Oct 2019 19:07:18 -0400
+
+veracrypt (1.24-0vanir1) unstable; urgency=medium
+
+ * New upstream version 1.24
+ - Drop patches applied upstream, refresh remaining patch.
+ * d/p/series, d/rules:
+ - Drop patch in favor of packing (C,CXX,LD)FLAGS into TC_EXTRA_$1.
+ * d/p/002-indicator-support.diff: Update to account for GTK3 wxgtk.
+ * d/control:
+ - Update build-depends for gtk3.
+ - Set R³ to no.
+ * d/rules:
+ - Derive ARCH from DEB_HOST_ARCH.
+ - Remove extra license file and veracrypt-uninstall.sh.
+ * d/scripts/mount.veracrypt, d/veracrypt.install:
+ - Add a script which allows use of VeraCrypt in fstab.
+ * Update Standards-Version to 4.4.1.
+
+ -- Unit 193 <unit193@ubuntu.com> Tue, 08 Oct 2019 01:27:02 -0400
veracrypt (1.23-0vanir1) unstable; urgency=medium
diff --git a/veracrypt/debian/compat b/veracrypt/debian/compat
deleted file mode 100644
index b4de394..0000000
--- a/veracrypt/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-11
diff --git a/veracrypt/debian/control b/veracrypt/debian/control
index 02fb1aa..3c964b9 100644
--- a/veracrypt/debian/control
+++ b/veracrypt/debian/control
@@ -2,13 +2,14 @@ Source: veracrypt
Section: non-free/utils
Priority: optional
Maintainer: B Stack <bgstack15@gmail.com>
-Build-Depends: debhelper (>= 11),
- libayatana-appindicator-dev | libappindicator-dev,
+Build-Depends: debhelper-compat (= 12),
+ libayatana-appindicator3-dev | libappindicator3-dev,
libfuse-dev,
- libwxgtk3.0-dev,
+ libwxgtk3.0-gtk3-dev,
pkg-config,
yasm [any-i386 any-amd64]
-Standards-Version: 4.2.1
+Rules-Requires-Root: no
+Standards-Version: 4.5.0
Homepage: https://veracrypt.fr/
Package: veracrypt
diff --git a/veracrypt/debian/gbp.conf b/veracrypt/debian/gbp.conf
index 5474c60..d1d6814 100644
--- a/veracrypt/debian/gbp.conf
+++ b/veracrypt/debian/gbp.conf
@@ -1,3 +1,4 @@
[DEFAULT]
pristine-tar = True
sign-tags = True
+dch-opt = ['--controlmaint']
diff --git a/veracrypt/debian/patches/001-indicator-support.patch b/veracrypt/debian/patches/001-indicator-support.patch
new file mode 100644
index 0000000..54414c7
--- /dev/null
+++ b/veracrypt/debian/patches/001-indicator-support.patch
@@ -0,0 +1,194 @@
+From: Stefan Sundin <stefan@stefansundin.com>, Unit 193 <unit193@ubuntu.com>
+Date: Fri, 06 July 2017
+Subject: Add support for Ubuntu and Ayatana application indicators.
+
+This patch adds compile-time support for application indicators.
+
+Forwarded: no
+
+Signed-off-by: Unit 193 <unit193@ubuntu.com>
+
+Index: veracrypt/src/Main/Forms/MainFrame.cpp
+===================================================================
+--- veracrypt.orig/src/Main/Forms/MainFrame.cpp
++++ veracrypt/src/Main/Forms/MainFrame.cpp
+@@ -46,6 +46,9 @@ namespace VeraCrypt
+ DEFINE_EVENT_TYPE(wxEVT_COMMAND_SHOW_WARNING)
+
+ MainFrame::MainFrame (wxWindow* parent) : MainFrameBase (parent),
++#ifdef HAVE_INDICATORS
++ indicator (NULL),
++#endif
+ ListItemRightClickEventPending (false),
+ SelectedItemIndex (-1),
+ SelectedSlotNumber (0),
+@@ -1557,6 +1560,32 @@ namespace VeraCrypt
+ }
+ }
+
++#ifdef HAVE_INDICATORS
++ 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);
++ }
++
++#endif
+ void MainFrame::ShowTaskBarIcon (bool show)
+ {
+ if (!show && mTaskBarIcon->IsIconInstalled())
+@@ -1566,8 +1595,47 @@ namespace VeraCrypt
+ else if (show && !mTaskBarIcon->IsIconInstalled())
+ {
+ #ifndef TC_MACOSX
++#ifndef HAVE_INDICATORS
+ mTaskBarIcon->SetIcon (Resources::GetVeraCryptIcon(), L"VeraCrypt");
+ #endif
++#endif
++#ifdef HAVE_INDICATORS
++ if (indicator == NULL) {
++ indicator = app_indicator_new ("veracrypt", "veracrypt", 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));
++ }
++#endif
+ }
+ }
+
+Index: veracrypt/src/Main/Forms/MainFrame.h
+===================================================================
+--- veracrypt.orig/src/Main/Forms/MainFrame.h
++++ veracrypt/src/Main/Forms/MainFrame.h
+@@ -13,6 +13,16 @@
+ #ifndef TC_HEADER_Main_Forms_MainFrame
+ #define TC_HEADER_Main_Forms_MainFrame
+
++#ifdef HAVE_INDICATORS
++#define GSocket GlibGSocket
++#ifdef UBUNTU_INDICATOR
++#include <libappindicator/app-indicator.h>
++#elif AYATANA_INDICATOR
++#include <libayatana-appindicator/app-indicator.h>
++#endif
++#undef GSocket
++#endif
++
+ #include "Forms.h"
+ #include "ChangePasswordDialog.h"
+ #ifdef TC_MACOSX
+@@ -38,6 +48,18 @@ namespace VeraCrypt
+ static FilePath GetShowRequestFifoPath () { return Application::GetConfigFilePath (L".show-request-queue", true); }
+ #endif
+
++ void MountAllFavorites ();
++
++#ifdef HAVE_INDICATORS
++ 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);
++
++#endif
+ protected:
+ enum
+ {
+@@ -71,7 +93,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
+@@ -1754,6 +1754,10 @@ namespace VeraCrypt
+ }
+
+ BackgroundMode = state;
++
++#ifdef HAVE_INDICATORS
++ gtk_menu_item_set_label ((GtkMenuItem*) ((MainFrame*) mMainFrame)->indicator_item_showhide, LangString[Gui->IsInBackgroundMode() ? "SHOW_TC" : "HIDE_TC"].mb_str());
++#endif
+ }
+
+ 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,21 @@ export WXCONFIG_CFLAGS :=
+ export WXCONFIG_CXXFLAGS :=
+ WX_ROOT ?= ..
+
++ifneq (,$(findstring gtk3,$(shell $(WX_CONFIG) --selected-config)))
++ INDICATOR_LIBRARY=appindicator3-0.1
++else
++ INDICATOR_LIBRARY=appindicator-0.1
++endif
++
++ifeq ($(shell pkg-config --exists $(INDICATOR_LIBRARY) && echo $$?),0)
++ export C_CXX_FLAGS += -DHAVE_INDICATORS -DUBUNTU_INDICATOR
++ export LIBS += $(shell pkg-config --libs $(INDICATOR_LIBRARY))
++ C_CXX_FLAGS += $(shell pkg-config --cflags $(INDICATOR_LIBRARY))
++else ifeq ($(shell pkg-config --exists ayatana-$(INDICATOR_LIBRARY) && echo $$?),0)
++ export C_CXX_FLAGS += -DHAVE_INDICATORS -DAYATANA_INDICATOR
++ export LIBS += $(shell pkg-config --libs ayatana-$(INDICATOR_LIBRARY))
++ C_CXX_FLAGS += $(shell pkg-config --cflags ayatana-$(INDICATOR_LIBRARY))
++endif
+
+ export TC_BUILD_CONFIG := Release
+
diff --git a/veracrypt/debian/patches/001-user-guide-location.diff b/veracrypt/debian/patches/001-user-guide-location.diff
deleted file mode 100644
index e7bddf2..0000000
--- a/veracrypt/debian/patches/001-user-guide-location.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-From: Francis Russell <francis@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
-===================================================================
---- a/src/Main/GraphicUserInterface.cpp 2017-06-29 17:10:39.000000000 -0400
-+++ b/src/Main/GraphicUserInterface.cpp 2017-06-30 16:30:20.842509262 -0400
-@@ -1309,7 +1309,7 @@
- #elif defined (TC_MACOSX)
- htmlPath += L"/../Resources/doc/HTML/";
- #elif defined (TC_UNIX)
-- htmlPath = L"/usr/share/veracrypt/doc/HTML/";
-+ htmlPath = L"/usr/share/doc/veracrypt/HTML/";
- #else
- localFile = false;
- #endif
diff --git a/veracrypt/debian/patches/002-build-flags.diff b/veracrypt/debian/patches/002-build-flags.diff
deleted file mode 100644
index 20c8362..0000000
--- a/veracrypt/debian/patches/002-build-flags.diff
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Stefan Sundin <stefan@stefansundin.com>
-Date: Fri, 12 Sept 2013
-Subject: Add build flags
-
-Forwarded: no
-
-Index: veracrypt/src/Makefile
-===================================================================
---- veracrypt.orig/src/Makefile
-+++ veracrypt/src/Makefile
-@@ -57,6 +57,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/veracrypt/debian/patches/004-fixup-install.diff b/veracrypt/debian/patches/004-fixup-install.diff
deleted file mode 100644
index 8257d10..0000000
--- a/veracrypt/debian/patches/004-fixup-install.diff
+++ /dev/null
@@ -1,52 +0,0 @@
-Description: Fixup the install target so it's usable.
- - Use a path that works from the top src dir.
- - Inverse 'doc' and 'veracrypt' in /usr/share/veracrypt/doc/
- - Don't install the uninstall script nor extra License.txt file.
- - Use our own veracrypt.desktop file.
-Author: Unit 193 <unit193@ubuntu.com>
-
-Origin: vendor
-Forwarded: no
-Last-Update: 2017-07-10
-
---- veracrypt-1.21.orig/src/Main/Main.make
-+++ veracrypt-1.21/src/Main/Main.make
-@@ -236,25 +236,25 @@ endif
-
- ifeq "$(PLATFORM)" "Linux"
- prepare: $(APPNAME)
-- rm -fr $(PWD)/Setup/Linux/usr
-- mkdir -p $(PWD)/Setup/Linux/usr/bin
-- mkdir -p $(PWD)/Setup/Linux/usr/share/$(APPNAME)/doc/HTML
-- cp $(PWD)/Main/$(APPNAME) $(PWD)/Setup/Linux/usr/bin/$(APPNAME)
-- cp $(PWD)/Setup/Linux/$(APPNAME)-uninstall.sh $(PWD)/Setup/Linux/usr/bin/$(APPNAME)-uninstall.sh
-- chmod +x $(PWD)/Setup/Linux/usr/bin/$(APPNAME)-uninstall.sh
-- cp $(PWD)/License.txt $(PWD)/Setup/Linux/usr/share/$(APPNAME)/doc/License.txt
-- cp $(PWD)/../doc/html/* "$(PWD)/Setup/Linux/usr/share/$(APPNAME)/doc/HTML"
-+ rm -fr $(CURDIR)/../Setup/Linux/usr
-+ mkdir -p $(CURDIR)/../Setup/Linux/usr/bin
-+ mkdir -p $(CURDIR)/../Setup/Linux/usr/share/doc/$(APPNAME)/HTML
-+ cp $(CURDIR)/$(APPNAME) $(CURDIR)/../Setup/Linux/usr/bin/$(APPNAME)
-+# cp $(CURDIR)/../Setup/Linux/$(APPNAME)-uninstall.sh $(CURDIR)/../Setup/Linux/usr/bin/$(APPNAME)-uninstall.sh
-+# chmod +x $(CURDIR)/../Setup/Linux/usr/bin/$(APPNAME)-uninstall.sh
-+# cp $(CURDIR)/../License.txt $(CURDIR)/../Setup/Linux/usr/share/doc/$(APPNAME)/License.txt
-+ cp $(CURDIR)/../../doc/html/* "$(CURDIR)/../Setup/Linux/usr/share/doc/$(APPNAME)/HTML"
-
- ifndef TC_NO_GUI
-- mkdir -p $(PWD)/Setup/Linux/usr/share/applications
-- mkdir -p $(PWD)/Setup/Linux/usr/share/pixmaps
-- cp $(PWD)/Resources/Icons/VeraCrypt-256x256.xpm $(PWD)/Setup/Linux/usr/share/pixmaps/$(APPNAME).xpm
-- cp $(PWD)/Setup/Linux/$(APPNAME).desktop $(PWD)/Setup/Linux/usr/share/applications/$(APPNAME).desktop
-+# mkdir -p $(CURDIR)/../Setup/Linux/usr/share/applications
-+ mkdir -p $(CURDIR)/../Setup/Linux/usr/share/pixmaps
-+ cp $(CURDIR)/../Resources/Icons/VeraCrypt-256x256.xpm $(CURDIR)/../Setup/Linux/usr/share/pixmaps/$(APPNAME).xpm
-+# cp $(CURDIR)/../Setup/Linux/$(APPNAME).desktop $(CURDIR)/../Setup/Linux/usr/share/applications/$(APPNAME).desktop
- endif
-
-
- install: prepare
-- cp -R $(CURDIR)/Setup/Linux/usr $(DESTDIR)/.
-+ cp -R $(CURDIR)/../Setup/Linux/usr $(DESTDIR)/
-
- ifeq "$(TC_BUILD_CONFIG)" "Release"
- package: prepare
diff --git a/veracrypt/debian/patches/series b/veracrypt/debian/patches/series
index 7e9c1bf..b3dc56a 100644
--- a/veracrypt/debian/patches/series
+++ b/veracrypt/debian/patches/series
@@ -1,4 +1,2 @@
-#001-user-guide-location.diff
-002-build-flags.diff
-#004-fixup-install.diff
+001-indicator-support.patch
vc_devuan.patch
diff --git a/veracrypt/debian/patches/vc_devuan.patch b/veracrypt/debian/patches/vc_devuan.patch
index b90f9f0..7a12b73 100644
--- a/veracrypt/debian/patches/vc_devuan.patch
+++ b/veracrypt/debian/patches/vc_devuan.patch
@@ -3,7 +3,7 @@ diff -x '*.rej' -x '*.orig' -Naur VeraCrypt_1.22/src/Common/Dlgcode.c VeraCrypt_
+++ VeraCrypt_1.22-1/src/Common/Dlgcode.c 2018-09-02 08:22:00.007030589 -0400
@@ -1280,7 +1280,7 @@
L"This software as a whole:\r\n"
- L"Copyright \xA9 2013-2019 IDRIX. All rights reserved.\r\n\r\n"
+ L"Copyright \xA9 2013-2020 IDRIX. All rights reserved.\r\n\r\n"
- L"An IDRIX Release");
+ L"Packaged for Devuan");
diff --git a/veracrypt/debian/prerm b/veracrypt/debian/prerm
index baa2e73..887e78f 100644
--- a/veracrypt/debian/prerm
+++ b/veracrypt/debian/prerm
@@ -5,7 +5,7 @@ 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
+ echo "Error: all VeraCrypt volumes must be unmounted before upgrade." >&2 && exit 1
exit 0
;;
diff --git a/veracrypt/debian/references b/veracrypt/debian/references
deleted file mode 100644
index a45addf..0000000
--- a/veracrypt/debian/references
+++ /dev/null
@@ -1 +0,0 @@
-https://launchpad.net/~unit193/+archive/ubuntu/encryption/+packages
diff --git a/veracrypt/debian/rules b/veracrypt/debian/rules
index 5cb3e9e..e96ca1b 100755
--- a/veracrypt/debian/rules
+++ b/veracrypt/debian/rules
@@ -4,19 +4,27 @@
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export TC_EXTRA_CFLAGS = $(CFLAGS) $(CPPFLAGS)
+export TC_EXTRA_CXXFLAGS = $(CXXFLAGS) $(CPPFLAGS)
+export TC_EXTRA_LFLAGS = $(LDFLAGS)
+
%:
dh $@ --sourcedirectory=src
override_dh_auto_build:
- dh_auto_build -- VERBOSE=1 NOSTRIP=1
- unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | debian/veracrypt_help_to_troff.pl > veracrypt.1
+ dh_auto_build -- VERBOSE=1 NOSTRIP=1 ARCH=$(DEB_HOST_ARCH)
+ unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | perl debian/veracrypt_help_to_troff.pl > veracrypt.1
override_dh_clean:
dh_clean veracrypt.1
+override_dh_install:
+ dh_install
+ rm -f debian/veracrypt/usr/share/doc/veracrypt/License.txt debian/veracrypt/usr/bin/veracrypt-uninstall.sh
+
override_dh_installinit:
dh_installinit --no-start -- stop 10 0 1 6 .
diff --git a/veracrypt/debian/scripts/mount.veracrypt b/veracrypt/debian/scripts/mount.veracrypt
new file mode 100755
index 0000000..499ad9b
--- /dev/null
+++ b/veracrypt/debian/scripts/mount.veracrypt
@@ -0,0 +1,23 @@
+#!/bin/bash
+DEV="$1"
+MNTPT="$2"
+VCOPTIONS=""
+OPTIONS=""
+
+shift 3
+IFS=','
+for arg in $*; do
+ case "$arg" in
+ truecrypt) VCOPTIONS=(${VCOPTIONS[*]} --truecrypt);;
+ system) VCOPTIONS=(${VCOPTIONS[*]} --mount-options=system);;
+ fs=*) VCOPTIONS=(${VCOPTIONS[*]} --filesystem=${arg#*=});;
+ keyfiles=*) VCOPTIONS=(${VCOPTIONS[*]} --keyfiles=${arg#*=});;
+ password=*) VCOPTIONS=(${VCOPTIONS[*]} --password=${arg#*=});;
+ pim=*) VCOPTIONS=(${VCOPTIONS[*]} --pim==${arg#*=});;
+ protect-hidden=*) VCOPTIONS=(${VCOPTIONS[*]} --protect-hidden=${arg#*=});;
+ slot=*) VCOPTIONS=(${VCOPTIONS[*]} --slot=${arg#*=});;
+ *) OPTIONS="${OPTIONS}${arg},";;
+ esac
+done
+
+/usr/bin/veracrypt --non-interactive --text ${VCOPTIONS[*]} --fs-options="${OPTIONS%,*}" ${DEV} ${MNTPT}
diff --git a/veracrypt/debian/stackrpms-diff.sh b/veracrypt/debian/stackrpms-diff.sh
new file mode 100755
index 0000000..42a70f6
--- /dev/null
+++ b/veracrypt/debian/stackrpms-diff.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Please make sure this salsa mirror is on branch upstream
+diff -x 'stackrpms-diff.sh' -x '.*swp' -Naur veracrypt/salsa/debian stackrpms/veracrypt/debian
diff --git a/veracrypt/debian/veracrypt+devuan.dsc b/veracrypt/debian/veracrypt+devuan.dsc
new file mode 100644
index 0000000..b69b761
--- /dev/null
+++ b/veracrypt/debian/veracrypt+devuan.dsc
@@ -0,0 +1,14 @@
+Format: 3.0 (quilt)
+Source: veracrypt
+Binary: veracrypt
+Architecture: any
+Version: 1.24-Update7-1+devuan
+Maintainer: B Stack <bgstack15@gmail.com>
+Homepage: https://veracrypt.fr/
+Standards-Version: 4.5.0
+Build-Depends: debhelper-compat (= 12), libayatana-appindicator3-dev | libappindicator3-dev, libfuse-dev, libwxgtk3.0-gtk3-dev, pkg-config, yasm [any-i386 any-amd64]
+Package-List:
+ veracrypt deb non-free/utils optional arch=any
+Files:
+ 00000000000000000000000000000000 1 veracrypt.orig.tar.gz
+ 00000000000000000000000000000000 1 veracrypt+devuan.debian.tar.xz
diff --git a/veracrypt/debian/veracrypt.install b/veracrypt/debian/veracrypt.install
index 779a946..bed2dba 100644
--- a/veracrypt/debian/veracrypt.install
+++ b/veracrypt/debian/veracrypt.install
@@ -1,4 +1,5 @@
debian/scripts/30veracrypt usr/lib/pm-utils/sleep.d/
debian/scripts/veracrypt lib/systemd/system-sleep/
+debian/scripts/mount.veracrypt usr/bin/
debian/veracrypt.desktop usr/share/applications/
debian/veracrypt.xml usr/share/mime/packages/
diff --git a/veracrypt/debian/watch b/veracrypt/debian/watch
index 01b9fd4..dc5a960 100644
--- a/veracrypt/debian/watch
+++ b/veracrypt/debian/watch
@@ -1,3 +1,5 @@
-version=3
-opts=pgpsigurlmangle=s/$/.sig/ \
-https://sf.net/veracrypt/[Vv]era[Cc]rypt_([\d\w\._-]+)_[Ss]ource\.tar\.(?:gz|bz2|xz)
+version=4
+#opts=pgpsigurlmangle=s/$/.sig/ \
+#https://sf.net/veracrypt/[Vv]era[Cc]rypt_([\d\w\._-]+)_[Ss]ource\.tar\.(?:gz|bz2|xz)
+https://www.veracrypt.fr/code/VeraCrypt/ \
+ snapshot/[Vv]era[Cc]rypt_@ANY_VERSION@(?:\.tar\.(?:gz|bz2|lzma|xz))
diff --git a/veracrypt/vc_fedora.patch b/veracrypt/vc_fedora.patch
index 3bd18ed..a2b7024 100644
--- a/veracrypt/vc_fedora.patch
+++ b/veracrypt/vc_fedora.patch
@@ -3,7 +3,7 @@ diff -x '*.rej' -x '*.orig' -Naur VeraCrypt_1.22/src/Common/Dlgcode.c VeraCrypt_
+++ VeraCrypt_1.22-1/src/Common/Dlgcode.c 2018-09-02 08:22:00.007030589 -0400
@@ -1280,7 +1280,7 @@
L"This software as a whole:\r\n"
- L"Copyright \xA9 2013-2019 IDRIX. All rights reserved.\r\n\r\n"
+ L"Copyright \xA9 2013-2020 IDRIX. All rights reserved.\r\n\r\n"
- L"An IDRIX Release");
+ L"A Fedora copr release");
diff --git a/veracrypt/veracrypt.spec b/veracrypt/veracrypt.spec
index 0e30987..2948353 100644
--- a/veracrypt/veracrypt.spec
+++ b/veracrypt/veracrypt.spec
@@ -1,6 +1,6 @@
%global pname VeraCrypt
%global dummy_package 0
-%global tarballdir %{pname}_%{version}
+%global tarballdir %{pname}_%{upstream_version}
%global srcdir %{tarballdir}/src
%global indocdir %{tarballdir}/doc
%define license_files %{srcdir}/License.txt
@@ -74,17 +74,19 @@
%endif
%endif
+%define upstream_version 1.24-Update7
+
Name: veracrypt
-Version: 1.24
+Version: %( echo %{upstream_version} | tr '-' '_' )
Release: 1
Summary: Disk encryption with strong security based on TrueCrypt
Group: Applications/File
License: Apache License 2.0 and TrueCrypt License 3.0
URL: https://www.veracrypt.fr/
-Source0: https://www.veracrypt.fr/code/%{pname}/snapshot/%{pname}_%{version}.tar.gz
-#Source0: https://gitlab.com/bgstack15/big-sources/raw/master/%%{name}/%%{pname}_%%{version}.tar.gz
-#Source0: https://launchpad.net/veracrypt/trunk/%%{version}/+download/VeraCrypt_%%{version}_Source.tar.bz2
+Source0: https://www.veracrypt.fr/code/%{pname}/snapshot/%{pname}_%{upstream_version}.tar.gz
+#Source0: https://gitlab.com/bgstack15/big-sources/raw/master/%%{name}/%%{pname}_%%{upstream_version}.tar.gz
+#Source0: https://launchpad.net/veracrypt/trunk/%%{upstream_version}/+download/VeraCrypt_%%{upstream_version}_Source.tar.bz2
Patch0: vc_fedora.patch
Patch1: vc_desktop.patch
@@ -112,7 +114,7 @@ VeraCrypt is a free open source disk encryption software for Windows, Mac OSX an
%setup -q -c
# change to that directory so the patch files do not need versioned directories to be updated
-pushd %{pname}_%{version}
+pushd %{tarballdir}
%patch0 -p1
%patch1 -p1
popd
@@ -232,6 +234,10 @@ fi
%{_datadir}/icons/hicolor/*/apps/*
%changelog
+* Tue Aug 11 2020 B Stack <bgstack15@gmail.com> 1.24_Update7-1
+- version bump
+- handle new version naming with dashes
+
* Tue Oct 08 2019 B Stack <bgstack15@gmail.com> 1.24-1
- version bump
bgstack15