Browse Source

n/gnupg2: Patched to print ownertrust in TOFU+PGP model.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent
commit
1c5f82e2ec
  1. 17
      n/gnupg2/gnupg-2.1.10-tofu-ownertrust.patch
  2. 4
      n/gnupg2/gnupg2.SlackBuild

17
n/gnupg2/gnupg-2.1.10-tofu-ownertrust.patch

@ -0,0 +1,17 @@
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 0a4766e..d958db8 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -3233,9 +3233,10 @@ show_key_with_all_names (ctrl_t ctrl, estream_t fp,
opt.legacy_list_mode?
((int) keystrlen () + 13):5, "");
/* Ownertrust is only meaningful for the PGP or
- classic trust models */
+ classic trust models, or PGP combined with TOFU */
if (opt.trust_model == TM_PGP
- || opt.trust_model == TM_CLASSIC)
+ || opt.trust_model == TM_CLASSIC
+ || opt.trust_model == TM_TOFU_PGP)
{
int width = 14 - strlen (otrust);
if (width <= 0)

4
n/gnupg2/gnupg2.SlackBuild

@ -35,7 +35,7 @@ WGET=${WGET:-ftp://ftp.gnupg.org/gcrypt/gnupg/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-gnupg2}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -86,6 +86,8 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Fix display of ownertrust in PGP+TOFU trust model
patch -p 1 < $CWD/gnupg-2.1.10-tofu-ownertrust.patch
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \

Loading…
Cancel
Save