Package: gnupg2 Version: 2.1.18-8 Severity: wishlist Tags: patch Hi,
it would be nice to build and have packages for the gpg-wks-* tools. It seems there was already done some work in https://anonscm.debian.org/git/pkg-gnupg/gnupg2.git/log/?h=dev/wks I rebased that commit to the experimental branch, fixed some file names, modified some texts and added man pages. Upstream install gpg-wks-client to /usr/lib/gnupg/, but I moved it in the package to /usr/bin - I get that it was designed to be a backend tool for MUAs, but right now I guess most people installing it will have to use it manually. I builds fine for me (I didn't test it completely yet though). My own changes are in: 0001-wks-fix-debian-provide-man-pages-improve-texts.patch The complete patch (squashed with the dev/wks commit) is: 0001-create-WKS-server-and-client-packages.patch cheers, Stefan
From b0f3c201e648980f90bce6c9ab5e47f9b199a985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= <stbueh...@web.de> Date: Fri, 12 May 2017 12:22:39 +0200 Subject: [PATCH 1/1] create WKS server and client packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - install gpg-wks-client into /usr/bin (upstream installs in /usr/lib/gnupg/ which I consider not "convenient" for users). Based on work by Sandro Knauà <he...@debian.org>. --- debian/control | 45 +++++++++++++++++++++ debian/gnupg-wks-client.install | 1 + debian/gnupg-wks-client.manpages | 1 + debian/gnupg-wks-server.install | 1 + debian/gnupg-wks-server.manpages | 1 + debian/gpg-wks-client.1 | 86 ++++++++++++++++++++++++++++++++++++++++ debian/gpg-wks-server.1 | 80 +++++++++++++++++++++++++++++++++++++ debian/rules | 1 + 8 files changed, 216 insertions(+) create mode 100644 debian/gnupg-wks-client.install create mode 100644 debian/gnupg-wks-client.manpages create mode 100644 debian/gnupg-wks-server.install create mode 100644 debian/gnupg-wks-server.manpages create mode 100644 debian/gpg-wks-client.1 create mode 100644 debian/gpg-wks-server.1 diff --git a/debian/control b/debian/control index ac0b07907..2b9360477 100644 --- a/debian/control +++ b/debian/control @@ -72,6 +72,51 @@ Description: GNU privacy guard - cryptographic agent provides a passphrase cache, which is used by pre-2.1 versions of GnuPG for OpenPGP operations. +Package: gnupg-wks-server +Architecture: any +Multi-Arch: foreign +Depends: + gnupg (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: GNU privacy guard - Web Key Service server + GnuPG is GNU's tool for secure communication and data storage. + It can be used to encrypt data and to create digital signatures. + It includes an advanced key management facility and is compliant + with the proposed OpenPGP Internet standard as described in RFC4880. + . + This package provides the GnuPG server for the Web Key Service + protocol. + . + A Web Key Service is a service that allows users to upload keys per + mail to be verified over https as described in + https://tools.ietf.org/html/draft-koch-openpgp-webkey-service + . + For more information see: https://wiki.gnupg.org/WKS + +Package: gnupg-wks-client +Architecture: any +Multi-Arch: foreign +Depends: + dirmngr (= ${binary:Version}), + gnupg (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: GNU privacy guard - Web Key Service client + GnuPG is GNU's tool for secure communication and data storage. + It can be used to encrypt data and to create digital signatures. + It includes an advanced key management facility and is compliant + with the proposed OpenPGP Internet standard as described in RFC4880. + . + This package provides the GnuPG client for the Web Key Service + protocol. + . + A Web Key Service is a service that allows users to upload keys per + mail to be verified over https as described in + https://tools.ietf.org/html/draft-koch-openpgp-webkey-service + . + For more information see: https://wiki.gnupg.org/WKS + Package: scdaemon Architecture: any Multi-Arch: foreign diff --git a/debian/gnupg-wks-client.install b/debian/gnupg-wks-client.install new file mode 100644 index 000000000..3ec2ebcaa --- /dev/null +++ b/debian/gnupg-wks-client.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/gnupg/gpg-wks-client /usr/bin/ diff --git a/debian/gnupg-wks-client.manpages b/debian/gnupg-wks-client.manpages new file mode 100644 index 000000000..d2edd3e69 --- /dev/null +++ b/debian/gnupg-wks-client.manpages @@ -0,0 +1 @@ +debian/gpg-wks-client.1 diff --git a/debian/gnupg-wks-server.install b/debian/gnupg-wks-server.install new file mode 100644 index 000000000..c18c2e7fd --- /dev/null +++ b/debian/gnupg-wks-server.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/gpg-wks-server diff --git a/debian/gnupg-wks-server.manpages b/debian/gnupg-wks-server.manpages new file mode 100644 index 000000000..5bd206c91 --- /dev/null +++ b/debian/gnupg-wks-server.manpages @@ -0,0 +1 @@ +debian/gpg-wks-server.1 diff --git a/debian/gpg-wks-client.1 b/debian/gpg-wks-client.1 new file mode 100644 index 000000000..cb848bbd8 --- /dev/null +++ b/debian/gpg-wks-client.1 @@ -0,0 +1,86 @@ +.TH GPG\-WKS\-CLIENT "1" "May 2017" "gpg-wks-client (GnuPG) 2.1.20" "User Commands" + +.SH NAME +gpg\-wks\-client \- Client for the Web Key Service + +.SH SYNOPSIS +.B gpg\-wks\-client +.RB [ COMMAND ] +.RB [ OPTIONS ] +.RB [ ARGS ] + +.SH DESCRIPTION +Client for the Web Key Service + +.SH COMMANDS +.TP +.B \-\-supported USER-ID +Check whether provider supports WKS. +.TP +.B \-\-check USER-ID +Check whether a key is available. +.TP +.B \-\-create FINGERPRINT USER-ID +Create a publication request. +.TP +.B \-\-receive +Receive a MIME confirmation request. +.TP +.B \-\-read +Receive a plain text confirmation request. +.TP +.B \-\-version +Show program version and some meta information. +.TP +.BR \-h ", " \-\-help +Output a short usage information. +.TP +.B \-\-warranty +Print warranty information. +.TP +.B \-\-dump-options +Dump all available options and commands. + +.SH OPTIONS + +.TP +.BR \-v ", " \-\-verbose +Enable verbose output. +.TP +.BR \-q ", " \-\-quiet +Be somewhat more quiet. +.TP +.B \-\-send +Send the mail using sendmail. +.TP +.BR \-o ", " \-\-output " \fIFILE\fR" +Write the mail to FILE. +.TP +.BI \-\-status\-fd " FD" +Write status info to this FD. +.TP +.B \-\-debug +Set debugging flags. All flags are or-ed and flags may be given in C +syntax (e.g. 0x0042) or as a comma separated list of flag names. To get +a list of all supported flags the single word "help" can be used. +.TP +.BI \-\-gpg " GPG" +Use the specified command instead of +.BR gpg . +.TP +.BI \-\-fake\-submission\-addr " MAILADDR" +Send mail to MAILADDR instead of the submission address queried through +Web Key Service. + +.SH BUGS +Please report bugs to <https://bugs.gnupg.org>. + +.SH COPYRIGHT +Copyright \(co 2017 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +This manpage was written by \fBStefan Bühler\fR for the Debian +distribution (but may be used by others). diff --git a/debian/gpg-wks-server.1 b/debian/gpg-wks-server.1 new file mode 100644 index 000000000..727ecf7ab --- /dev/null +++ b/debian/gpg-wks-server.1 @@ -0,0 +1,80 @@ +.TH GPG\-WKS\-SERVER "1" "May 2017" "gpg-wks-server (GnuPG) 2.1.20" "User Commands" + +.SH NAME +gpg\-wks\-server \- Server for the Web Key Service + +.SH SYNOPSIS +.B gpg\-wks\-server +.RB [ COMMAND ] +.RB [ OPTIONS ] +.RB [ ARGS ] + +.SH DESCRIPTION +Server for the Web Key Service + +.SH COMMANDS + +.TP +.B \-\-receive +Receive a submission or confirmation. +.TP +.B \-\-cron +Run regular jobs. +.TP +.B \-\-list\-domains +List configured domains. +.TP +.B \-\-version +Show program version and some meta information. +.TP +.BR \-h ", " \-\-help +Output a short usage information. +.TP +.B \-\-warranty +Print warranty information. +.TP +.B \-\-dump-options +Dump all available options and commands. + +.SH OPTIONS + +.TP +.BR \-v ", " \-\-verbose +Enable verbose output. +.TP +.BR \-q ", " \-\-quiet +Be somewhat more quiet. +.TP +.B \-\-send +Send the mail using sendmail. +.TP +.BR \-o ", " \-\-output " \fIFILE\fR" +Write the mail to FILE. +.TP +.BI \-\-from " ADDR" +Use ADDR as the default sender. +.TP +.BI \-\-header " NAME=VALUE" +Add "NAME: VALUE" as header to all mails. +.TP +.B \-\-debug +Set debugging flags. All flags are or-ed and flags may be given in C +syntax (e.g. 0x0042) or as a comma separated list of flag names. To get +a list of all supported flags the single word "help" can be used. +.TP +.BI \-\-gpg " GPG" +Use the specified command instead of +.BR gpg . + +.SH BUGS +Please report bugs to <https://bugs.gnupg.org>. + +.SH COPYRIGHT +Copyright \(co 2017 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +This manpage was written by \fBStefan Bühler\fR for the Debian +distribution (but may be used by others). diff --git a/debian/rules b/debian/rules index 8a9f76138..51dabdb1a 100755 --- a/debian/rules +++ b/debian/rules @@ -35,6 +35,7 @@ override_dh_auto_configure: $(foreach x, $(GPGV_UDEB_UNNEEDED), --disable-$(x)) dh_auto_configure --builddirectory=build -- --libexecdir=\$${prefix}/lib/gnupg \ --enable-gpg2-is-gpg \ + --enable-wks-tools \ --enable-symcryptrun --enable-large-secmem override_dh_auto_build-arch: -- 2.11.0
From a080935e7de5083215ce9bf27cec9dcf86f6a874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= <stbueh...@web.de> Date: Fri, 12 May 2017 12:23:03 +0200 Subject: [PATCH 1/1] [wks] fix debian/, provide man pages, improve texts - install gpg-wks-client into /usr/bin (upstream installs in /usr/lib/gnupg/ which I consider not "convenient" for users). --- debian/control | 32 ++++---- debian/gnupg-wks-client.install | 1 + debian/gnupg-wks-client.manpages | 1 + ...wks-server.install => gnupg-wks-server.install} | 0 debian/gnupg-wks-server.manpages | 1 + debian/gpg-wks-client.1 | 86 ++++++++++++++++++++++ debian/gpg-wks-client.install | 1 - debian/gpg-wks-server.1 | 80 ++++++++++++++++++++ 8 files changed, 187 insertions(+), 15 deletions(-) create mode 100644 debian/gnupg-wks-client.install create mode 100644 debian/gnupg-wks-client.manpages rename debian/{gpg-wks-server.install => gnupg-wks-server.install} (100%) create mode 100644 debian/gnupg-wks-server.manpages create mode 100644 debian/gpg-wks-client.1 delete mode 100644 debian/gpg-wks-client.install create mode 100644 debian/gpg-wks-server.1 diff --git a/debian/control b/debian/control index 970ac6b76..2b9360477 100644 --- a/debian/control +++ b/debian/control @@ -79,18 +79,20 @@ Depends: gnupg (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, -Description: GNU privacy guard - Web Key Service Server +Description: GNU privacy guard - Web Key Service server GnuPG is GNU's tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880. . - This package contains the server of Web Key Service. - A Web Key Service is a service that allows users to upload keys per mail - as described in the: - https://tools.ietf.org/id/draft-koch-openpgp-webkey-service-02.txt - more informations see: - https://wiki.gnupg.org/WKS + This package provides the GnuPG server for the Web Key Service + protocol. + . + A Web Key Service is a service that allows users to upload keys per + mail to be verified over https as described in + https://tools.ietf.org/html/draft-koch-openpgp-webkey-service + . + For more information see: https://wiki.gnupg.org/WKS Package: gnupg-wks-client Architecture: any @@ -100,18 +102,20 @@ Depends: gnupg (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}, -Description: GNU privacy guard - Web Key Service Client +Description: GNU privacy guard - Web Key Service client GnuPG is GNU's tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. It includes an advanced key management facility and is compliant with the proposed OpenPGP Internet standard as described in RFC4880. . - This package contains the client of Web Key Service. - A Web Key Service is a service that allows users to upload keys per mail - as described in the: - https://tools.ietf.org/id/draft-koch-openpgp-webkey-service-02.txt - more informations see: - https://wiki.gnupg.org/WKS + This package provides the GnuPG client for the Web Key Service + protocol. + . + A Web Key Service is a service that allows users to upload keys per + mail to be verified over https as described in + https://tools.ietf.org/html/draft-koch-openpgp-webkey-service + . + For more information see: https://wiki.gnupg.org/WKS Package: scdaemon Architecture: any diff --git a/debian/gnupg-wks-client.install b/debian/gnupg-wks-client.install new file mode 100644 index 000000000..3ec2ebcaa --- /dev/null +++ b/debian/gnupg-wks-client.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/gnupg/gpg-wks-client /usr/bin/ diff --git a/debian/gnupg-wks-client.manpages b/debian/gnupg-wks-client.manpages new file mode 100644 index 000000000..d2edd3e69 --- /dev/null +++ b/debian/gnupg-wks-client.manpages @@ -0,0 +1 @@ +debian/gpg-wks-client.1 diff --git a/debian/gpg-wks-server.install b/debian/gnupg-wks-server.install similarity index 100% rename from debian/gpg-wks-server.install rename to debian/gnupg-wks-server.install diff --git a/debian/gnupg-wks-server.manpages b/debian/gnupg-wks-server.manpages new file mode 100644 index 000000000..5bd206c91 --- /dev/null +++ b/debian/gnupg-wks-server.manpages @@ -0,0 +1 @@ +debian/gpg-wks-server.1 diff --git a/debian/gpg-wks-client.1 b/debian/gpg-wks-client.1 new file mode 100644 index 000000000..cb848bbd8 --- /dev/null +++ b/debian/gpg-wks-client.1 @@ -0,0 +1,86 @@ +.TH GPG\-WKS\-CLIENT "1" "May 2017" "gpg-wks-client (GnuPG) 2.1.20" "User Commands" + +.SH NAME +gpg\-wks\-client \- Client for the Web Key Service + +.SH SYNOPSIS +.B gpg\-wks\-client +.RB [ COMMAND ] +.RB [ OPTIONS ] +.RB [ ARGS ] + +.SH DESCRIPTION +Client for the Web Key Service + +.SH COMMANDS +.TP +.B \-\-supported USER-ID +Check whether provider supports WKS. +.TP +.B \-\-check USER-ID +Check whether a key is available. +.TP +.B \-\-create FINGERPRINT USER-ID +Create a publication request. +.TP +.B \-\-receive +Receive a MIME confirmation request. +.TP +.B \-\-read +Receive a plain text confirmation request. +.TP +.B \-\-version +Show program version and some meta information. +.TP +.BR \-h ", " \-\-help +Output a short usage information. +.TP +.B \-\-warranty +Print warranty information. +.TP +.B \-\-dump-options +Dump all available options and commands. + +.SH OPTIONS + +.TP +.BR \-v ", " \-\-verbose +Enable verbose output. +.TP +.BR \-q ", " \-\-quiet +Be somewhat more quiet. +.TP +.B \-\-send +Send the mail using sendmail. +.TP +.BR \-o ", " \-\-output " \fIFILE\fR" +Write the mail to FILE. +.TP +.BI \-\-status\-fd " FD" +Write status info to this FD. +.TP +.B \-\-debug +Set debugging flags. All flags are or-ed and flags may be given in C +syntax (e.g. 0x0042) or as a comma separated list of flag names. To get +a list of all supported flags the single word "help" can be used. +.TP +.BI \-\-gpg " GPG" +Use the specified command instead of +.BR gpg . +.TP +.BI \-\-fake\-submission\-addr " MAILADDR" +Send mail to MAILADDR instead of the submission address queried through +Web Key Service. + +.SH BUGS +Please report bugs to <https://bugs.gnupg.org>. + +.SH COPYRIGHT +Copyright \(co 2017 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +This manpage was written by \fBStefan Bühler\fR for the Debian +distribution (but may be used by others). diff --git a/debian/gpg-wks-client.install b/debian/gpg-wks-client.install deleted file mode 100644 index fa0be02e3..000000000 --- a/debian/gpg-wks-client.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/bin/gpg-wks-client diff --git a/debian/gpg-wks-server.1 b/debian/gpg-wks-server.1 new file mode 100644 index 000000000..727ecf7ab --- /dev/null +++ b/debian/gpg-wks-server.1 @@ -0,0 +1,80 @@ +.TH GPG\-WKS\-SERVER "1" "May 2017" "gpg-wks-server (GnuPG) 2.1.20" "User Commands" + +.SH NAME +gpg\-wks\-server \- Server for the Web Key Service + +.SH SYNOPSIS +.B gpg\-wks\-server +.RB [ COMMAND ] +.RB [ OPTIONS ] +.RB [ ARGS ] + +.SH DESCRIPTION +Server for the Web Key Service + +.SH COMMANDS + +.TP +.B \-\-receive +Receive a submission or confirmation. +.TP +.B \-\-cron +Run regular jobs. +.TP +.B \-\-list\-domains +List configured domains. +.TP +.B \-\-version +Show program version and some meta information. +.TP +.BR \-h ", " \-\-help +Output a short usage information. +.TP +.B \-\-warranty +Print warranty information. +.TP +.B \-\-dump-options +Dump all available options and commands. + +.SH OPTIONS + +.TP +.BR \-v ", " \-\-verbose +Enable verbose output. +.TP +.BR \-q ", " \-\-quiet +Be somewhat more quiet. +.TP +.B \-\-send +Send the mail using sendmail. +.TP +.BR \-o ", " \-\-output " \fIFILE\fR" +Write the mail to FILE. +.TP +.BI \-\-from " ADDR" +Use ADDR as the default sender. +.TP +.BI \-\-header " NAME=VALUE" +Add "NAME: VALUE" as header to all mails. +.TP +.B \-\-debug +Set debugging flags. All flags are or-ed and flags may be given in C +syntax (e.g. 0x0042) or as a comma separated list of flag names. To get +a list of all supported flags the single word "help" can be used. +.TP +.BI \-\-gpg " GPG" +Use the specified command instead of +.BR gpg . + +.SH BUGS +Please report bugs to <https://bugs.gnupg.org>. + +.SH COPYRIGHT +Copyright \(co 2017 Free Software Foundation, Inc. +License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html> + +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. + +This manpage was written by \fBStefan Bühler\fR for the Debian +distribution (but may be used by others). -- 2.11.0