Commit a81b9514 authored by Vitaly Lipatov's avatar Vitaly Lipatov

20240223-eter2

- winetricks: added cades installation (eterbug #17080) (github #2197)
parent 05139fa1
From a5ff44cdc421d368f1427b42a537ed13746268e8 Mon Sep 17 00:00:00 2001
From: Iviv <iviv@etersoft.ru>
Date: Tue, 5 Mar 2024 19:32:34 +0300
Subject: [PATCH] winetricks: added cades installation
To: wine-devel <wine-devel@winehq.org>
---
src/winetricks | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/src/winetricks b/src/winetricks
index 05b6683..97a9ced 100755
--- a/src/winetricks
+++ b/src/winetricks
@@ -19299,6 +19299,33 @@ load_remove_mono()
}
+#----------------------------------------------------------------
+
+w_metadata cades dlls \
+ title="CAdES Plugin" \
+ publisher="CryptoPro" \
+ year="2024" \
+ media="download" \
+ file1="cades-win32.msi" \
+ installed_file1="${W_SYSTEM32_DLLS_WIN}/cades.dll"
+
+
+load_cades()
+{
+ w_download https://cryptopro.ru/sites/default/files/products/cades/release_2_0_13642/cades-win32.msi d3c1f5d4e24d5b3011166c4bea7054eca91fa2477c312bac64312c86b72d6d38
+ w_try_cd "${W_CACHE}/${W_PACKAGE}"
+ w_try "${WINE}" msiexec /i cades-win32.msi ${W_OPT_UNATTENDED:+/q}
+ w_try_cp_dll "${W_WINDIR_UNIX}/winsxs/x86_cryptopro.pki.cades_a6d31b994cfcddc4_2.0.13742.0_none_deadbeef/cades.dll" "${W_SYSTEM32_DLLS}/cades.dll"
+ case "${W_ARCH}" in
+ win64)
+ #Also install 64-bit version
+ w_download https://cryptopro.ru/sites/default/files/products/cades/release_2_0_13642/cades-x64.msi f02bf53d3501fa0839870bb440c53d5a846af43c142effd0fb8531dd0ed6c7cf
+ w_try "${WINE}" msiexec /i cades-x64.msi ${W_OPT_UNATTENDED:+/q}
+ w_try_cp_dll "${W_WINDIR_UNIX}/winsxs/amd64_cryptopro.pki.cades_a6d31b994cfcddc4_2.0.13635.0_none_deadbeef/cades.dll" "${W_SYSTEM64_DLLS}/cades.dll"
+ ;;
+ esac
+}
+
#----------------------------------------------------------------
w_metadata sandbox settings \
--
2.42.1
%define oname winetricks
Name: wine-etersoft-winetricks
Version: 20240223
Release: eter1
Release: eter2
Summary: Work around common problems in Wine
......@@ -20,6 +20,7 @@ Patch2: 0001-winetricks-try-use-xvt-as-terminal.patch
Patch10: 0001-Remove-unuseful-binary-arch-detection.patch
Patch11: 0002-add-w_expand_env32-and-w_expand_env64-and-using-them.patch
Patch12: 0003-Rename-w_try_regsvr-to-w_try_regsvr32.patch
Patch13: 0004-winetricks-added-cades-installation.patch
BuildArch: noarch
......@@ -57,6 +58,7 @@ or tweak various Wine settings individually.
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
# fix req. Disable autoreq at all?
%__subst 's|fusermount|a= fusermount|' src/winetricks
......@@ -91,6 +93,9 @@ desktop-file-validate %buildroot%_desktopdir/%oname.desktop
#exclude %_datadir/appdata/%name.appdata.xml
%changelog
* Fri Mar 22 2024 Vitaly Lipatov <lav@altlinux.ru> 20240223-eter2
- winetricks: added cades installation (eterbug #17080) (github #2197)
* Mon Mar 04 2024 Vitaly Lipatov <lav@altlinux.ru> 20240223-eter1
- new version (20240223) from commit f87bf9e6a7c67a0648
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment