diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /app-crypt/pius/files | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'app-crypt/pius/files')
4 files changed, 204 insertions, 0 deletions
diff --git a/app-crypt/pius/files/pius-3.0.0-Fix-typo-in-readme-135.patch b/app-crypt/pius/files/pius-3.0.0-Fix-typo-in-readme-135.patch new file mode 100644 index 000000000000..bc67e97950b2 --- /dev/null +++ b/app-crypt/pius/files/pius-3.0.0-Fix-typo-in-readme-135.patch @@ -0,0 +1,25 @@ +From 5f24833c50ac6d831c03309e9bbb6b62224ac0ac Mon Sep 17 00:00:00 2001 +From: Ross Smith II <ross@smithii.com> +Date: Mon, 9 Mar 2020 16:45:29 -0700 +Subject: [PATCH] Fix typo in readme (#135) + +--- + README.md | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/README.md b/README.md +index 3ead858..4cb98ce 100644 +--- a/README.md ++++ b/README.md +@@ -91,7 +91,7 @@ docs](https://support.google.com/accounts/answer/185833?hl=en). + ## Other Platforms + + On non-UNIX platforms such as MacOS and Windows, the default gpg path will +-likley be incorrect, so you'll want to use `-b` to specify the path. ++likely be incorrect, so you'll want to use `-b` to specify the path. + + + ## Config File +-- +2.29.2 + diff --git a/app-crypt/pius/files/pius-3.0.0-Fix-typos-132.patch b/app-crypt/pius/files/pius-3.0.0-Fix-typos-132.patch new file mode 100644 index 000000000000..ed03995d34c2 --- /dev/null +++ b/app-crypt/pius/files/pius-3.0.0-Fix-typos-132.patch @@ -0,0 +1,43 @@ +From 6a92664fe0cfacffb03e6f3312c1c5fb4d785297 Mon Sep 17 00:00:00 2001 +From: Maxim Baz <github@maximbaz.com> +Date: Sat, 5 Oct 2019 23:52:17 +0200 +Subject: [PATCH] Fix typos (#132) + +--- + pius | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pius b/pius +index 7cf09b5..cc2333b 100755 +--- a/pius ++++ b/pius +@@ -25,7 +25,7 @@ from optparse import OptionParser + + from libpius import mailer as pmailer + from libpius import signer as psigner +-from libpius.util import PiusUtil, MyOption ++from libpius.util import PiusUtil, MyOption, check_email + from libpius.constants import ( + DEFAULT_GPG_PATH, + DEFAULT_KEYRING, +@@ -61,7 +61,7 @@ def check_options(parser, options, args): + + if options.debug == True: + print("Setting debug") +- util.DEBUG_ON = True ++ PiusUtil.DEBUG_ON = True + + if not os.path.exists(options.gpg_path): + parser.error("GnuPG binary not found at %s." % options.gpg_path) +@@ -288,7 +288,7 @@ def main(): + ) + if ans in ("y", "Y", "yes", "YES", "Yes"): + ans = input("What email address should we send from? ") +- util.check_email(parser, "-m", ans) ++ check_email(parser, "-m", ans) + options.mail = ans + print() + +-- +2.29.2 + diff --git a/app-crypt/pius/files/pius-3.0.0-Minor-fixes-for-pius-report-137.patch b/app-crypt/pius/files/pius-3.0.0-Minor-fixes-for-pius-report-137.patch new file mode 100644 index 000000000000..c77f26649ce6 --- /dev/null +++ b/app-crypt/pius/files/pius-3.0.0-Minor-fixes-for-pius-report-137.patch @@ -0,0 +1,78 @@ +From 19b61c3b0dc31ee60341b3ca708f8e459e44ce3f Mon Sep 17 00:00:00 2001 +From: Phil Dibowitz <phil@ipom.com> +Date: Mon, 23 Mar 2020 08:57:09 -0700 +Subject: [PATCH] Minor fixes for pius-report (#137) + +Signed-off-by: Phil Dibowitz <phil@ipom.com> +--- + libpius/mailer.py | 2 +- + pius-keyring-mgr | 4 +++- + pius-report | 5 +++-- + 3 files changed, 7 insertions(+), 4 deletions(-) + +diff --git a/libpius/mailer.py b/libpius/mailer.py +index ba6b50a..f5b097f 100644 +--- a/libpius/mailer.py ++++ b/libpius/mailer.py +@@ -403,7 +403,7 @@ class PiusMailer: + # BCC the user... + env_to = [msg["To"], self.mail] + +- smtp.sendmail(self.mail, env_to, msg.as_string()) ++ smtp.sendmail(self.mail, env_to, msg.as_string().encode('utf-8')) + smtp.quit() + except smtplib.SMTPException as emsg: + raise MailSendError(emsg) +diff --git a/pius-keyring-mgr b/pius-keyring-mgr +index fb0b46a..ec3528a 100755 +--- a/pius-keyring-mgr ++++ b/pius-keyring-mgr +@@ -1,4 +1,5 @@ + #!/usr/bin/env python3 ++ + """A utility to create and manage party keyrings.""" + + # vim:tw=80:ai:tabstop=4:expandtab:shiftwidth=4 +@@ -446,7 +447,7 @@ class KeyringBuilder: + # stolen from pius + def get_all_keyids(self, sort_keyring): + """Given a keyring, get all the KeyIDs from it.""" +- util.debug("extracting all keyids from keyring") ++ util.debug("extracting all keyids from keyring, sort: %s" % sort_keyring) + extra_opts = GPG_QUIET_OPTS + self.AUTO_OPTS + ["--fixed-list-mode"] + cmd = self.basecmd + extra_opts + ["--fingerprint"] + util.logcmd(cmd) +@@ -776,6 +777,7 @@ before distributing they keyring. + prune.add_option( + "--no-sort-keyring", + dest="sort_keyring", ++ default=True, + action="store_false", + help="Do not sort the keyring by name.", + ) +diff --git a/pius-report b/pius-report +index 47f57b5..744da35 100755 +--- a/pius-report ++++ b/pius-report +@@ -15,7 +15,8 @@ from optparse import OptionParser + from libpius import mailer as pmailer + from libpius import signer as psigner + from libpius.util import PiusUtil, MyOption +-from libpius.constants import DEFAULT_GPG_PATH, UID_RE, GPG_MIN_OPTS ++from libpius.constants import DEFAULT_GPG_PATH, UID_RE, GPG_MIN_OPTS, \ ++ GPG_BASE_OPTS + from libpius.exceptions import MailSendError + from libpius.state import SignState + +@@ -401,7 +402,7 @@ Generated by PIUS Report BETA (http://www.phildev.net/pius/). + + def refresh_keys(gpg, keys): + cmd = [gpg] + GPG_MIN_OPTS + ["--refresh-keys"] + keys +- PiusPiusUtil.logcmd(cmd) ++ PiusUtil.logcmd(cmd) + gpg = subprocess.Popen(cmd, stdout=subprocess.PIPE, close_fds=True) + gpg.wait() + +-- +2.29.2 + diff --git a/app-crypt/pius/files/pius-3.0.0-pius-keyring-mgr-Fix-constants-134.patch b/app-crypt/pius/files/pius-3.0.0-pius-keyring-mgr-Fix-constants-134.patch new file mode 100644 index 000000000000..20c43fcbdca4 --- /dev/null +++ b/app-crypt/pius/files/pius-3.0.0-pius-keyring-mgr-Fix-constants-134.patch @@ -0,0 +1,58 @@ +From f54adce7ba47ad8882441aec3b0583ee788ea8e1 Mon Sep 17 00:00:00 2001 +From: Phil Dibowitz <phil@ipom.com> +Date: Tue, 4 Feb 2020 09:33:40 -0800 +Subject: [PATCH] [pius-keyring-mgr] Fix constants (#134) + +The refactor of the code meant these constants are now in the +constants module, not in self. + +Fixes #133 + +Signed-off-by: Phil Dibowitz <phil@ipom.com> +--- + pius-keyring-mgr | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/pius-keyring-mgr b/pius-keyring-mgr +index 1daddeb..fb0b46a 100755 +--- a/pius-keyring-mgr ++++ b/pius-keyring-mgr +@@ -28,6 +28,8 @@ from libpius.constants import ( + GPG_BASE_OPTS, + GPG_QUIET_OPTS, + GPG_FD_OPTS, ++ FP_RE, ++ FIXFP_RE, + ) + + BADKEYS_RE = re.compile(r"00000000|12345678|no pgp key") +@@ -143,10 +145,10 @@ class PiusParser: + def parse_flatfile(self, filename): + with open(filename, "r") as fd: + contents = fd.read() +- matches = self.FP_RE.findall(contents) ++ matches = FP_RE.findall(contents) + keys = [] + for match in matches: +- flatfp = self.FIXFP_RE.sub("", match) ++ flatfp = FIXFP_RE.sub("", match) + keyid = flatfp[-8:] + keys.append( + { +@@ -199,11 +201,11 @@ class PiusParser: + tmp["key"] = match + keys.append(tmp) + continue +- matches = self.FP_RE.findall(decoded) ++ matches = FP_RE.findall(decoded) + if matches: + for match in matches: + num_fps = num_fps + 1 +- fp = self.FIXFP_RE.sub("", match) ++ fp = FIXFP_RE.sub("", match) + keyid = keyid_from_fp(fp) + tmp = data.copy() + tmp.update({"fingerprint": fp, "keyid": keyid}) +-- +2.29.2 + |