From f5a81953e172a7bb4d02f2dc0e398f379c39ec84 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 4 Nov 2020 16:11:10 +0100 Subject: speedo,w32: Install gpg-check-pattern and example profiles. * doc/examples/vsnfd.prf: Rename to VS-NfD.prf. * doc/examples/Automatic.prf: New. * doc/Makefile.am (examples): Adjust. * build-aux/speedo/w32/inst.nsi: Install gpg-check-pattern.exe and 3 example files. * build-aux/speedo/w32/wixlib.wxs: Add new files. -- Note that we renamed the existing example profile so that kleopatra shows a nicer name. In fact the gpg4win installer just copies of theses file but it is better to maintain them here. gpg-check-pattern.exe can no be installed because we meanwhile have a regex lib which works also on Windows. Signed-off-by: Werner Koch --- build-aux/speedo/w32/inst.nsi | 12 ++++++++++++ build-aux/speedo/w32/wixlib.wxs | 11 ++++++++++- doc/Makefile.am | 3 ++- doc/examples/Automatic.prf | 15 +++++++++++++++ doc/examples/VS-NfD.prf | 24 ++++++++++++++++++++++++ doc/examples/vsnfd.prf | 24 ------------------------ 6 files changed, 63 insertions(+), 26 deletions(-) create mode 100644 doc/examples/Automatic.prf create mode 100644 doc/examples/VS-NfD.prf delete mode 100644 doc/examples/vsnfd.prf diff --git a/build-aux/speedo/w32/inst.nsi b/build-aux/speedo/w32/inst.nsi index f130a4eda..9ccc0e188 100644 --- a/build-aux/speedo/w32/inst.nsi +++ b/build-aux/speedo/w32/inst.nsi @@ -628,6 +628,7 @@ Section "GnuPG" SEC_gnupg File "bin/gpgtar.exe" File "libexec/dirmngr_ldap.exe" File "libexec/gpg-preset-passphrase.exe" + File "libexec/gpg-check-pattern.exe" File "libexec/gpg-wks-client.exe" ClearErrors @@ -658,6 +659,11 @@ Section "GnuPG" SEC_gnupg File "share/gnupg/distsigkey.gpg" File "share/gnupg/sks-keyservers.netCA.pem" + SetOutPath "$INSTDIR\share\gnupg\examples" + File "share/gnupg/examples/VS-NfD.prf" + File "share/gnupg/examples/Automatic.prf" + File "share/gnupg/examples/pwpattern.txt" + SetOutPath "$INSTDIR\share\locale\ca\LC_MESSAGES" File share/locale/ca/LC_MESSAGES/gnupg2.mo SetOutPath "$INSTDIR\share\locale\cs\LC_MESSAGES" @@ -1317,8 +1323,14 @@ Section "-un.gnupg" Delete "$INSTDIR\bin\gpg-card.exe" Delete "$INSTDIR\bin\dirmngr_ldap.exe" Delete "$INSTDIR\bin\gpg-preset-passphrase.exe" + Delete "$INSTDIR\bin\gpg-check-pattern.exe" Delete "$INSTDIR\bin\gpg-wks-client.exe" + Delete "$INSTDIR\share\gnupg\examples\VS-NfD.prf" + Delete "$INSTDIR\share\gnupg\examples\Automatic.prf" + Delete "$INSTDIR\share\gnupg\examples\pwpattern.txt" + RMDir "$INSTDIR\share\gnupg\examples" + Delete "$INSTDIR\share\gnupg\sks-keyservers.netCA.pem" Delete "$INSTDIR\share\gnupg\dirmngr-conf.skel" Delete "$INSTDIR\share\gnupg\distsigkey.gpg" diff --git a/build-aux/speedo/w32/wixlib.wxs b/build-aux/speedo/w32/wixlib.wxs index 733ae552c..b751c4306 100644 --- a/build-aux/speedo/w32/wixlib.wxs +++ b/build-aux/speedo/w32/wixlib.wxs @@ -64,6 +64,9 @@ and then manually edited: + + + @@ -155,7 +158,13 @@ and then manually edited: - + + + + + + + diff --git a/doc/Makefile.am b/doc/Makefile.am index 65105139e..1ad86e5b7 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -22,7 +22,8 @@ AM_CPPFLAGS = include $(top_srcdir)/am/cmacros.am examples = examples/README examples/scd-event examples/trustlist.txt \ - examples/vsnfd.prf examples/debug.prf examples/qualified.txt \ + examples/VS-NfD.prf examples/Automatic.prf \ + examples/debug.prf examples/qualified.txt \ examples/systemd-user/README \ examples/systemd-user/dirmngr.service \ examples/systemd-user/dirmngr.socket \ diff --git a/doc/examples/Automatic.prf b/doc/examples/Automatic.prf new file mode 100644 index 000000000..41f9bea0c --- /dev/null +++ b/doc/examples/Automatic.prf @@ -0,0 +1,15 @@ +# Automatic.prf - Configure options for a more automatic mode -*- conf -*- +# +# The options for each tool are configured in a section ("[TOOL]"); +# see the respective man page for a description of these options and +# the gpgconf manpage for a description of this file's syntax. + +[gpg] +auto-key-locate local,wkd,dane +auto-key-retrieve +trust-model tofu+pgp$\r$\n' + +[gpg-agent] +default-cache-ttl 900 +max-cache-ttl 3600 +min-passphrase-nonalpha 0 diff --git a/doc/examples/VS-NfD.prf b/doc/examples/VS-NfD.prf new file mode 100644 index 000000000..edb9e018e --- /dev/null +++ b/doc/examples/VS-NfD.prf @@ -0,0 +1,24 @@ +# VS-NfD.prf - Configure options for the VS-NfD mode -*- conf -*- +# +# The options for each tool are configured in a section ("[TOOL]"); +# see the respective man page for a description of these options and +# the gpgconf manpage for a description of this file's syntax. + +[gpg] +compliance de-vs + +[gpgsm] +compliance de-vs +enable-crl-checks + +[gpg-agent] +default-cache-ttl 900 +max-cache-ttl 3600 +no-allow-mark-trusted +no-allow-external-cache +enforce-passphrase-constraints +min-passphrase-len 9 +min-passphrase-nonalpha 0 + +[dirmngr] +allow-ocsp diff --git a/doc/examples/vsnfd.prf b/doc/examples/vsnfd.prf deleted file mode 100644 index 7224e7566..000000000 --- a/doc/examples/vsnfd.prf +++ /dev/null @@ -1,24 +0,0 @@ -# vsnfd.prf - Configure options for the VS-NfD mode -*- conf -*- -# -# The options for each tool are configured in a section ("[TOOL]"); -# see the respective man page for a description of these options and -# the gpgconf manpage for a description of this file's syntax. - -[gpg] -compliance de-vs - -[gpgsm] -compliance de-vs -enable-crl-checks - -[gpg-agent] -default-cache-ttl 900 -max-cache-ttl 3600 -no-allow-mark-trusted -no-allow-external-cache -enforce-passphrase-constraints -min-passphrase-len 9 -min-passphrase-nonalpha 0 - -[dirmngr] -allow-ocsp -- cgit v1.2.3