aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-10-12 15:12:29 +0000
committerWerner Koch <[email protected]>2021-10-12 15:12:39 +0000
commit10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc (patch)
tree8dc7f346aa2c6b86e4a874847e554c99a54320b1
parenttests: New way to make use of gpgconf.ctl in tests. (diff)
downloadgnupg-10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc.tar.gz
gnupg-10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc.zip
speedo: Put the keyboxd into the Windows installer
* build-aux/speedo/w32/inst.nsi: Install keyboxd. * Makefile.am (sign-release): Sign the wixlib only if generated. * autogen.rc: Remove meanwhile obsolete option --with-regex.
-rw-r--r--Makefile.am8
-rw-r--r--autogen.rc1
-rw-r--r--build-aux/speedo/w32/inst.nsi15
3 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 0a0c7d4de..ca5e189d3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -243,7 +243,7 @@ release:
echo "/* Build finished at $$(date -uIseconds) */" ;\
echo "/*" ;\
echo " * Please run the final step interactively:" ;\
- echo " * make sign-release" ;\
+ echo " * make sign-release $${WITH_MSI:+WITH_MSI=1}" ;\
echo " */" ;\
) 2>&1 | tee "$(RELEASE_NAME).buildlog"
@@ -280,8 +280,10 @@ sign-release:
gpg -sbu $$mysignkey $${release_w32_name}.tar.xz ;\
echo "/* Signing the W32 installer ..." ;\
gpg -sbu $$mysignkey $${release_w32_name}.exe ;\
- echo "/* Signing the Wixlib ..." ;\
- gpg -sbu $$mysignkey $${wixlibfile} ;\
+ if [ -e $${wixlibfile} ]; then \
+ echo "/* Signing the Wixlib ..." ;\
+ gpg -sbu $$mysignkey $${wixlibfile} ;\
+ fi; \
cat $(RELEASE_NAME).swdb >swdb.snippet;\
echo '#+macro: gnupg24_branch STABLE-BRANCH-2-4' >>swdb.snippet;\
cat $${release_w32_name}.exe.swdb >>swdb.snippet;\
diff --git a/autogen.rc b/autogen.rc
index d10a540fc..a1eb96931 100644
--- a/autogen.rc
+++ b/autogen.rc
@@ -18,7 +18,6 @@ case "$myhost" in
w32)
configure_opts="
--with-zlib=@SYSROOT@
- --with-regex=@SYSROOT@
--disable-g13
--disable-tpm2d
"
diff --git a/build-aux/speedo/w32/inst.nsi b/build-aux/speedo/w32/inst.nsi
index 6267b644a..bac898ccf 100644
--- a/build-aux/speedo/w32/inst.nsi
+++ b/build-aux/speedo/w32/inst.nsi
@@ -1,5 +1,5 @@
# inst.nsi - Installer for GnuPG on Windows. -*- coding: latin-1; -*-
-# Copyright (C) 2005, 2014 g10 Code GmbH
+# Copyright (C) 2005, 2014, 2019-2021 g10 Code GmbH
# 2017 Intevation GmbH
#
# This file is part of GnuPG.
@@ -43,7 +43,7 @@
!define PRETTY_PACKAGE "GNU Privacy Guard"
!define PRETTY_PACKAGE_SHORT "GnuPG"
!define COMPANY "The GnuPG Project"
-!define COPYRIGHT "Copyright (C) 2017 The GnuPG Project"
+!define COPYRIGHT "Copyright (C) 2021 g10 Code GmbH"
!define DESCRIPTION "GnuPG: The GNU Privacy Guard for Windows"
!define INSTALL_DIR "GnuPG"
@@ -600,6 +600,7 @@ Section "-gnupginst"
ifFileExists "$INSTDIR\bin\gpgconf.exe" 0 no_gpgconf
nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "dirmngr"'
nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "gpg-agent"'
+ nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "keyboxd"'
no_gpgconf:
@@ -655,6 +656,14 @@ Section "GnuPG" SEC_gnupg
File /oname=scdaemon.exe.tmp "libexec/scdaemon.exe"
Rename /REBOOTOK scdaemon.exe.tmp scdaemon.exe
+ ClearErrors
+ SetOverwrite try
+ File "libexec/keyboxd.exe"
+ SetOverwrite lastused
+ ifErrors 0 +3
+ File /oname=keyboxd.exe.tmp "libexec/keyboxd.exe"
+ Rename /REBOOTOK keyboxd.exe.tmp keyboxd.exe
+
SetOutPath "$INSTDIR\share\gnupg"
File "share/gnupg/distsigkey.gpg"
File "share/gnupg/sks-keyservers.netCA.pem"
@@ -1059,6 +1068,7 @@ Section "-un.gnupglast"
ifFileExists "$INSTDIR\bin\gpgconf.exe" 0 no_gpgconf
nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "gpg-agent"'
nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "dirmngr"'
+ nsExec::ExecToLog '"$INSTDIR\bin\gpgconf" "--kill" "keyboxd"'
no_gpgconf:
SectionEnd
@@ -1316,6 +1326,7 @@ Section "-un.gnupg"
Delete "$INSTDIR\bin\gpgsm.exe"
Delete "$INSTDIR\bin\gpg-agent.exe"
Delete "$INSTDIR\bin\scdaemon.exe"
+ Delete "$INSTDIR\bin\keyboxd.exe"
Delete "$INSTDIR\bin\dirmngr.exe"
Delete "$INSTDIR\bin\gpgconf.exe"
Delete "$INSTDIR\bin\gpg-connect-agent.exe"