pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mhpgp mhpgp: Import mhpgp-20070530 as mail/mhpgp



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9090a0e9d73
branches:  trunk
changeset: 334575:c9090a0e9d73
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri May 31 17:09:01 2019 +0000

description:
mhpgp: Import mhpgp-20070530 as mail/mhpgp

Script to assist using gnupg for signing, encrypting, verifying,
decrypting pgp mail with mh/nmh.

diffstat:

 mail/mhpgp/DESCR                |   2 +
 mail/mhpgp/Makefile             |  29 ++++++++++++++++++
 mail/mhpgp/PLIST                |   5 +++
 mail/mhpgp/distinfo             |   8 +++++
 mail/mhpgp/patches/patch-mhpgp  |  31 ++++++++++++++++++++
 mail/mhpgp/patches/patch-mhsign |  63 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 138 insertions(+), 0 deletions(-)

diffs (164 lines):

diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/DESCR  Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,2 @@
+Script to assist using gnupg for signing, encrypting, verifying,
+decrypting pgp mail with mh/nmh.
diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/Makefile       Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2019/05/31 17:09:01 leot Exp $
+
+DISTNAME=      gnupg-scripts-for-mh
+PKGNAME=       mhpgp-20070530
+CATEGORIES=    mail
+MASTER_SITES=  http://faculty.cs.niu.edu/~rickert/mh/
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+
+MAINTAINER=    leot%NetBSD.org@localhost
+HOMEPAGE=      http://faculty.cs.niu.edu/~rickert/mh/
+COMMENT=       MH scripts to assist PGP operations on emails
+LICENSE=       public-domain
+
+DEPENDS+=      gnupg2-[0-9]*:../../security/gnupg2
+DEPENDS+=      nmh-[0-9]*:../../mail/nmh
+
+USE_LANGUAGES= # none
+
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/mhpgp ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/mhpgp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_SCRIPT} ${WRKSRC}/mhsign ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKSRC}/mhsign.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/PLIST  Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2019/05/31 17:09:01 leot Exp $
+bin/mhpgp
+bin/mhsign
+man/man1/mhpgp.1
+man/man1/mhsign.1
diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/distinfo       Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2019/05/31 17:09:01 leot Exp $
+
+SHA1 (mhpgp-20070530/gnupg-scripts-for-mh.tar.gz) = 4d6d8204f418bb756ce78e3117340724317de060
+RMD160 (mhpgp-20070530/gnupg-scripts-for-mh.tar.gz) = 80c85b96308d177a326945c862f23fbe752eb36b
+SHA512 (mhpgp-20070530/gnupg-scripts-for-mh.tar.gz) = a4d153a25835a0517d9bc50ce6e4bd2f1e4cf4e5370a2742421dabf4ce4115c0b4a3ad5036c7cf77b6c2769b69befcef6947fbe8578ce6dbe2fda7b49f5b6a75
+Size (mhpgp-20070530/gnupg-scripts-for-mh.tar.gz) = 7736 bytes
+SHA1 (patch-mhpgp) = 7d89bc6dfbe3c27b273cce90c0d7da1afe85e947
+SHA1 (patch-mhsign) = 6a83e3aa4ec044b6853d01c024bd147f08aff98e
diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/patches/patch-mhpgp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/patches/patch-mhpgp    Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-mhpgp,v 1.1 2019/05/31 17:09:01 leot Exp $
+
+Use gpg2.
+
+--- mhpgp.orig 2007-05-30 15:12:22.000000000 +0000
++++ mhpgp
+@@ -86,7 +86,7 @@ case "$mt" in
+  "")  echo "I can't find a PGP message there" >&2
+       exit 1 ;;
+  ms)  ;;      ## postpone this one
+- ps)  gpg --verify $FILE
++ ps)  gpg2 --verify $FILE
+       exit ;;
+  me|pe)       ### we can cheat, and combine these
+       sed -n -e ':a
+@@ -99,7 +99,7 @@ case "$mt" in
+               b x
+               :y
+               n
+-              b y' $FILE | gpg --output $TEMP/msg --decrypt
++              b y' $FILE | gpg2 --output $TEMP/msg --decrypt
+       X=`tail -1c $TEMP/msg`
+       if [ "$X" != "" ] ; then echo >> $TEMP/msg ; fi # make sure trailing \n
+       if [ "$outfile" = "" ] ; then
+@@ -158,5 +158,5 @@ sed -e '/^--'"$xbdry"'[ 
        ]*$/,$d' \
+ sed -e '1,/^--'"$xbdry"'[ 
        ]*$/d' $TEMP/body |
+       sed -n -e '/BEGIN PGP /,/END PGP /p' > $TEMP/msg.asc
+ 
+-gpg --verify $TEMP/msg.asc
++gpg2 --verify $TEMP/msg.asc
+ 
diff -r 1c29be0e7a09 -r c9090a0e9d73 mail/mhpgp/patches/patch-mhsign
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mhpgp/patches/patch-mhsign   Fri May 31 17:09:01 2019 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-mhsign,v 1.1 2019/05/31 17:09:01 leot Exp $
+
+Use gpg2.
+
+--- mhsign.orig        2007-05-30 15:12:22.000000000 +0000
++++ mhsign
+@@ -117,7 +117,7 @@ trap "rm -rf $TEMP" 0 1 2 15
+ 
+       ### lookupkeyring address -- lookup one address in keyring
+       lookupkeyring(){
+-              key=`gpg --list-keys "$1" 2>/dev/null`
++              key=`gpg2 --list-keys "$1" 2>/dev/null`
+               if [ $? = 0 ] ; then
+                       echo "$key" | sed -n -e "/^pub/s=^[^/]*/\([^    ]*\).*=0x\1=p" |
+                               head -1
+@@ -212,11 +212,11 @@ trap "rm -rf $TEMP" 0 1 2 15
+       detachsign(){
+               case "$mimefixbody" in
+                y)
+-                      gpg -u "$userid" --armor $pgp2opts --textmode \
++                      gpg2 -u "$userid" --armor $pgp2opts --textmode \
+                        --detach-sign < $TEMP/body > $TEMP/body.asc
+                       ;;
+                *)
+-                      gpg -u "$userid" --armor $pgp2opts --no-textmode \
++                      gpg2 -u "$userid" --armor $pgp2opts --no-textmode \
+                        --detach-sign < $TEMP/body > $TEMP/body.asc
+                       ;;
+               esac
+@@ -224,7 +224,7 @@ trap "rm -rf $TEMP" 0 1 2 15
+ 
+       ### sign --- inline signature for $TEMP/body, output in $TEMP/body.asc
+       sign(){
+-              gpg -u "$userid" --armor $pgp2opts --textmode --clearsign \
++              gpg2 -u "$userid" --armor $pgp2opts --textmode --clearsign \
+                       < $TEMP/body > $TEMP/body.asc
+       }
+ 
+@@ -238,19 +238,19 @@ trap "rm -rf $TEMP" 0 1 2 15
+ 
+               if [ "$keytype" = R ] ; then    ## pgp2 compatible
+                status=1
+-               gpg --no-options --no-secmem-warning --pgp2 -b \
++               gpg2 --no-options --no-secmem-warning --pgp2 -b \
+                       -u "$userid" $TEMP/body
+-               gpg --store -z 0 --output $TEMP/body.lit $TEMP/body
++               gpg2 --store -z 0 --output $TEMP/body.lit $TEMP/body
+                cat $TEMP/body.sig $TEMP/body.lit |
+-                gpg --no-options --no-literal --store \
++                gpg2 --no-options --no-literal --store \
+                  --no-secmem-warning --compress-algo 1 \
+                  --output $TEMP/body.z
+-               gpg --no-encrypt-to --pgp2 --cipher-algo idea --no-literal \
++               gpg2 --no-encrypt-to --pgp2 --cipher-algo idea --no-literal \
+                 --always-trust --encrypt -r "$userid" $R \
+                 -o $TEMP/body.asc --armor $TEMP/body.z
+                status=$?
+               else
+-               gpg --no-encrypt-to --pgp6 -u "$userid" --armor --textmode \
++               gpg2 --no-encrypt-to --pgp6 -u "$userid" --armor --textmode \
+                 --always-trust --output $TEMP/body.asc -r "$userid" $R \
+                 --sign --encrypt $TEMP/body
+                status=$?



Home | Main Index | Thread Index | Old Index