summaryrefslogtreecommitdiff
path: root/security/pgp2
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-03-18 01:51:14 +0000
committertv <tv@pkgsrc.org>1998-03-18 01:51:14 +0000
commitbbbf9719931eafea8cd433668b665173bcc13020 (patch)
treecb81db56cb6a3655d7d8989b672608e932869582 /security/pgp2
parent1b483b4bfb17bbd5ddd5d9ea004998f7cd34127a (diff)
downloadpkgsrc-bbbf9719931eafea8cd433668b665173bcc13020.tar.gz
Import of my version of FreeBSD's pgp 2.6 pkg, reengineered. Differences
from FreeBSD port: - uses our rsaref pkg if USE_RSAREF2 is YES - doesn't use USA_RESIDENT; instead uses USE_RSAREF2 since MIT students and staff may legally use mpilib instead of rsaref - builds 2.6.3a with rsaref as well as 2.6.3ia without (all based on the same sources) - uses asm routines on i386, sparc, and m68k
Diffstat (limited to 'security/pgp2')
-rw-r--r--security/pgp2/Makefile88
-rw-r--r--security/pgp2/files/md51
-rw-r--r--security/pgp2/patches/patch-aa48
-rw-r--r--security/pgp2/pkg/COMMENT1
-rw-r--r--security/pgp2/pkg/DESCR5
-rw-r--r--security/pgp2/pkg/PLIST13
6 files changed, 156 insertions, 0 deletions
diff --git a/security/pgp2/Makefile b/security/pgp2/Makefile
new file mode 100644
index 00000000000..22a9071c46f
--- /dev/null
+++ b/security/pgp2/Makefile
@@ -0,0 +1,88 @@
+# New ports collection makefile for: pgp
+# Version required: 2.6.3(i)a
+# International PGP homepage is http://www.ifi.uio.no/pgp/
+#
+# Date created: 8 Jul 1995 (ache@FreeBSD.ORG)
+# Whom: tv@NetBSD.ORG
+#
+# $NetBSD: Makefile,v 1.1.1.1 1998/03/18 01:51:14 tv Exp $
+# FreeBSD Id: Makefile,v 1.20 1997/08/27 13:06:01 ache Exp
+#
+
+.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
+PKGNAME= pgp-2.6.3a
+LIB_DEPENDS+= rsaref.2.:${PORTSDIR}/security/rsaref
+RSAINC= -I${PREFIX}/include
+RSALIBS= -L${PREFIX}/lib -lrsaref
+RSAOBJS= rsaglue2.o
+CFLAGS= -DUSA
+.else
+PKGNAME= pgp-2.6.3ia
+RSAINC=
+RSALIBS=
+RSAOBJS= rsaglue1.o
+CFLAGS=
+.endif
+
+CATEGORIES= security
+DISTNAME= pgp263is
+MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/ \
+ ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/
+WRKSRC= ${WRKDIR}/src
+RESTRICTED= "Cryptographic software"
+PGPLIB= ${PREFIX}/lib/pgp
+CFLAGS+= -DPGP_SYSTEM_DIR=\\\"${PGPLIB}/\\\"
+IS_INTERACTIVE= yes
+
+MAINTAINER= packages@NetBSD.ORG
+
+MAN1= pgp.1
+
+.if ${MACHINE_ARCH} == "i386"
+OBJS_EXT= _80386.o _zmatch.o
+ASMFLAG= -DASM
+.elif ${MACHINE_ARCH} == "m68k"
+OBJS_EXT= mc68020.o
+ASMFLAG=
+.elif ${MACHINE_ARCH} == "sparc"
+OBJS_EXT= sparc.o
+ASMFLAG=
+.else
+OBJS_EXT=
+ASMFLAG= -DPORTABLE -DMPORTABLE
+.endif
+
+.if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
+pre-fetch:
+ @echo
+ @echo The variable USE_RSAREF2 must be set to either YES or NO
+ @echo in order to build this package. USA residents not at the
+ @echo Massachusetts Institute of Technology MUST set this
+ @echo variable to YES. Users outside the USA MUST set this
+ @echo variable to NO. People at MIT may choose -- NO is faster.
+ @false
+.endif
+
+post-extract:
+ cd ${WRKDIR} && $(EXTRACT_CMD) -xf pgp263ii.tar && rm -f pgp263ii.tar
+
+do-build:
+ cd ${WRKSRC} && ${MAKE} all CC=${CC} LD=${CC} OBJS_EXT="${OBJS_EXT}" \
+ CFLAGS="${CFLAGS} ${RSAINC} ${ASMFLAG} -O2 -DUNIX -DIDEA32 -DMAX_NAMELEN=255" \
+ RSALIBS="${RSALIBS}" RSAOBJS="${RSAOBJS}"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pgp ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKDIR}/doc/pgp.1 ${PREFIX}/man/man1
+ -${MKDIR} ${PGPLIB}
+ cd ${WRKDIR}/doc && ${INSTALL_DATA} pgpdoc1.txt pgpdoc2.txt ${PGPLIB}
+ cd ${WRKDIR} && \
+ ${INSTALL_DATA} de.hlp en.hlp es.hlp fr.hlp pgp.hlp ${PGPLIB}
+ [ -f ${PGPLIB}/language.txt ] || \
+ ${INSTALL_DATA} ${WRKDIR}/language.txt ${PGPLIB}
+ [ -f ${PGPLIB}/config.txt ] || \
+ ${INSTALL_DATA} ${WRKDIR}/config.txt ${PGPLIB}
+ [ -f ${PGPLIB}/pgp.hlp ] || \
+ ${INSTALL_DATA} ${WRKDIR}/en.hlp ${PGPLIB}/pgp.hlp
+
+.include <bsd.port.mk>
diff --git a/security/pgp2/files/md5 b/security/pgp2/files/md5
new file mode 100644
index 00000000000..fd9280e3c21
--- /dev/null
+++ b/security/pgp2/files/md5
@@ -0,0 +1 @@
+MD5 (pgp263is.tar.gz) = 73bbb87b8c77debcf9de3b9d49902892
diff --git a/security/pgp2/patches/patch-aa b/security/pgp2/patches/patch-aa
new file mode 100644
index 00000000000..367037d5fec
--- /dev/null
+++ b/security/pgp2/patches/patch-aa
@@ -0,0 +1,48 @@
+--- fileio.h.orig Sat Jan 6 14:46:36 1996
++++ fileio.h Tue Feb 17 19:49:06 1998
+@@ -21,15 +21,6 @@
+ #define FOPWPBIN "w+b","ctx=stm"
+ #else
+ #ifdef UNIX
+-/*
+- * Directory for system-wide files. Must end in a /, ready for
+- * dumb appending of the filename. (If not defined, it's not used.)
+- */
+-#ifdef LINUX
+-# define PGP_SYSTEM_DIR "/var/lib/pgp/"
+-#else
+-# define PGP_SYSTEM_DIR "/usr/local/lib/pgp/"
+-#endif
+ #define FOPRBIN "r"
+ #define FOPRTXT "r"
+ #define FOPWBIN "w"
+--- pgp.h.orig Mon Jan 15 15:19:29 1996
++++ pgp.h Tue Feb 17 19:24:28 1998
+@@ -12,6 +12,13 @@
+ #ifndef PGP_H
+ #define PGP_H
+
++#ifdef __NetBSD__
++#include <machine/ansi.h>
++#if BYTE_ORDER == BIG_ENDIAN
++#define HIGHFIRST
++#endif
++#endif
++
+ #include "usuals.h"
+ #include "more.h"
+ #include "armor.h"
+--- rsaglue2.c.orig Tue Jan 2 09:17:27 1996
++++ rsaglue2.c Tue Feb 17 19:24:28 1998
+@@ -52,9 +52,8 @@
+ Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc.\n\
+ Distributed by the Massachusetts Institute of Technology.\n");
+
+-#include <global.h>
+-#include <rsaref.h>
+-#include <rsa.h>
++#include <rsaref/rsaref.h>
++#include <rsaref/rsa.h>
+ /*
+ * The functions we call in rsa.h are:
+ *
diff --git a/security/pgp2/pkg/COMMENT b/security/pgp2/pkg/COMMENT
new file mode 100644
index 00000000000..76960df3574
--- /dev/null
+++ b/security/pgp2/pkg/COMMENT
@@ -0,0 +1 @@
+PGP MIT or International version - Public-Key encryption for the masses
diff --git a/security/pgp2/pkg/DESCR b/security/pgp2/pkg/DESCR
new file mode 100644
index 00000000000..b298a0bbd92
--- /dev/null
+++ b/security/pgp2/pkg/DESCR
@@ -0,0 +1,5 @@
+PGP (Pretty Good Privacy) is a public key encryption package to protect
+E-mail and data files. It lets you communicate securely with people
+you've never met, with no secure channels needed for prior exchange of
+keys. It's well featured and fast, with sophisticated key management,
+digital signatures, data compression, and good ergonomic design.
diff --git a/security/pgp2/pkg/PLIST b/security/pgp2/pkg/PLIST
new file mode 100644
index 00000000000..753c1ef97ee
--- /dev/null
+++ b/security/pgp2/pkg/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/03/18 01:51:14 tv Exp $
+bin/pgp
+man/man1/pgp.1.gz
+lib/pgp/de.hlp
+lib/pgp/en.hlp
+lib/pgp/es.hlp
+lib/pgp/fr.hlp
+lib/pgp/pgp.hlp
+lib/pgp/pgpdoc1.txt
+lib/pgp/pgpdoc2.txt
+lib/pgp/language.txt
+lib/pgp/config.txt
+@dirrm lib/pgp