1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

wkd: Install gpg-wks-client under bin and add wrapper for libexec

--

gpg-wks-client is a pretty useful command on the command line.
Thus we now install it at bin and provide a compatibility wrapper.
This commit is contained in:
Werner Koch 2021-02-19 12:11:38 +01:00
parent 5573ab714b
commit 4da91414e7
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
4 changed files with 22 additions and 14 deletions

3
NEWS
View File

@ -9,6 +9,9 @@ Noteworthy changes in version 2.3.0 (unreleased)
put "use-keyboxd" into gpg.conf and gpgsm.conf. Keys are stored
in a SQLite database and make key lookup much faster.
* The gpg-wks-client tool is now installed under bin; a wrapper for
its old location at libexec is also installed.
Changes also found in 2.2.27:

View File

@ -626,10 +626,10 @@ Section "GnuPG" SEC_gnupg
File "bin/gpg-connect-agent.exe"
File "bin/gpg-card.exe"
File "bin/gpgtar.exe"
File "bin/gpg-wks-client.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
SetOverwrite try

View File

@ -109,15 +109,6 @@ The command @option{--print-wkd-url} prints the URLs used to fetch the
key for the given user-ids from WKD. The meanwhile preferred format
with sub-domains is used here.
@command{gpg-wks-client} is not commonly invoked directly and thus it
is not installed in the bin directory. Here is an example how it can
be invoked manually to check for a Web Key Directory entry for
@file{foo@@example.org}:
@example
$(gpgconf --list-dirs libexecdir)/gpg-wks-client --check foo@@example.net
@end example
@mansect options
@noindent
@command{gpg-wks-client} understands these options:

View File

@ -43,17 +43,15 @@ else
gpg_wks_server =
endif
libexec_PROGRAMS = gpg-wks-client
bin_PROGRAMS = gpgconf gpg-connect-agent gpg-card
bin_PROGRAMS = gpgconf gpg-connect-agent gpg-card gpg-wks-client
if !HAVE_W32_SYSTEM
bin_PROGRAMS += watchgnupg gpgparsemail ${gpg_wks_server} gpgsplit
else
bin_PROGRAMS += gpgconf-w32
endif
libexec_PROGRAMS += gpg-check-pattern
libexec_PROGRAMS += gpg-pair-tool
libexec_PROGRAMS = gpg-check-pattern gpg-pair-tool
if !HAVE_W32CE_SYSTEM
noinst_PROGRAMS = clean-sat make-dns-cert
@ -191,6 +189,22 @@ gpg_pair_tool_LDADD = $(libcommon) \
$(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \
$(LIBINTL) $(LIBICONV) $(W32SOCKLIBS)
# Instead of a symlink we install a simple wrapper script for the new
# gpg-wks-client location. We assume bin is a sibling of libexec.
install-exec-local:
$(mkinstalldirs) $(DESTDIR)$(libexecdir)
(set -e ;\
if [ "$(libexecdir)" != "$(bindir)" ]; then \
printf '#!/bin/sh\nexec "$(bindir)/gpg-wks-client" "$$@"\n' \
> $(DESTDIR)$(libexecdir)/gpg-wks-client ;\
chmod +x $(DESTDIR)$(libexecdir)/gpg-wks-client ;\
fi )
uninstall-local:
(if [ "$(libexecdir)" != "$(bindir)" ]; then \
rm $(DESTDIR)$(libexecdir)/gpg-wks-client || true ;\
fi )
# Make sure that all libs are build before we use them. This is
# important for things like make -j2.
$(PROGRAMS): $(common_libs) $(pwquery_libs) ../common/libgpgrl.a