pgp 2.6.3ia (international) and 2.6.3a (us)

This commit is contained in:
marc 1998-03-20 04:05:10 +00:00
parent eaf09734ad
commit 57fab70436
5 changed files with 171 additions and 0 deletions

121
security/pgp/Makefile Normal file
View File

@ -0,0 +1,121 @@
# OpenBSD makefile for: pgp
# Version required:
# Date created: 19 Mar 1998
# Whom: marc@OpenBSD.ORG
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/03/20 04:05:10 marc Exp $
DISTNAME= pgp263is
PKGNAME= pgp-2.6.3
CATEGORIES= security
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/ \
ftp://ftp.dk.pgpi.com/mirrors/ftp.ifi.uio.no/pub/pgp/2.x/src/
MAINTAINER= ports@openbsd.org
RESTRICTED= "Crypto; export-controlled"
IS_INTERACTIVE= YES
WRKSRC= ${WRKDIR}/src
# Need to add rsaref for US residents
#
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
MASTER_SITES= \
ftp://ftp.ifi.uio.no/pub/pgp/2.x/src/ \
ftp://ftp.dk.pgpi.com/mirrors/ftp.ifi.uio.no/pub/pgp/2.x/src/ \
ftp://nic.funet.fi/pub/crypt/mirrors/ftp.dsi.unimi.it/applied-crypto/ \
ftp://idea.dsi.unimi.it/pub/security/crypt/math/
DISTFILES= \
${DISTNAME}${EXTRACT_SUFX} \
rsaref2.tar.gz
.endif
fetch-depends:
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
@${ECHO}
@${ECHO} You must set variable USA_RESIDENT to YES if you are a USA
@${ECHO} resident or NO otherwise. USA residents must obtain the
@${ECHO} RSAREF2 library to generate this program. \(RSA Inc. holds
@${ECHO} a patent on RSA and public key cypto in general - using RSA
@${ECHO} implementations other than RSAREF will violate the US patent
@${ECHO} law\).
@${ECHO} ""
@${ECHO} RSAREF2 will be automatically obtained and used to generate
@${ECHO} this program when given the command \"make USA_RESIDENT=YES\"
@${ECHO} ""
@${FALSE}
.endif
# 2nd level extract required
#
post-extract:
@if ! ( cd ${WRKDIR} && ${EXTRACT_CMD} -xf pgp263ii.tar ); then \
exit 1; \
fi
# common C flags
#
CFLAGS= -O2 -DUNIX -DPORTABLE -DMERIT -DIDEA32 -DMAX_NAMELEN=255
# RSAREF parameters
#
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
RSAOBJS= rsaglue2.o
RSADIR= ../rsaref2
RSAINCDIR= -I$(RSADIR)/source -I$(RSADIR)/test
RSALIBDIR= $(RSADIR)/install/unix
RSALIBS= $(RSALIBDIR)/rsaref.a
CFLAGS+= -DUSA ${RSAINCDIR}
.else
RSAOBJS= rsaglue1.o
.endif
# Before the build figure out if we are on a big endian machine or not
#
pre-build:
@if { grep -q 4321 /usr/include/machine/endian.h; } then \
echo -DHIGHFIRST > ${WRKDIR}/.endian; \
else \
${CP} /dev/null ${WRKDIR}/.endian; \
fi
# Build rsaref (if USA) then pgp
#
do-build:
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
@(cd ${WRKDIR}/rsaref2/install/unix && \
${SETENV} ${MAKE_ENV} ${MAKE} -f makefile rsaref.a)
.endif
@(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE} -f makefile all \
RSAOBJS="${RSAOBJS}" RSADIR="${RSADIR}" RSAINCDIR="${RSAINCDIR}" \
RSALIBDIR="${RSALIBDIR}" RSALIBS="${RSALIBS}" \
CFLAGS="${CFLAGS} `cat ${WRKDIR}/.endian`" )
# library and doc files to install
#
LIBFILES= config.txt de.hlp en.hlp es.hlp fr.hlp keys.asc \
language.txt pgp.hlp
DOCFILES= appnote.doc blurb.txt changes.doc faq.txt keyserv.doc \
mitlicen.txt pgformat.doc pgp262i.dif pgp263i.dif \
pgp_vms.hlp pgpdoc1.txt pgpdoc2.txt politic.doc przon26i.asc
# install pgp and related doc
#
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/pgp ${PREFIX}/bin
@${INSTALL_MAN} ${WRKDIR}/doc/pgp.1 ${PREFIX}/man/man1
@${MKDIR} -p ${PREFIX}/lib/pgp
.for libfile in ${LIBFILES}
@${INSTALL_DATA} ${WRKDIR}/${libfile} ${PREFIX}/lib/pgp
.endfor
@${MKDIR} -p ${PREFIX}/share/doc/pgp
@${INSTALL_DATA} ${WRKDIR}/setup.doc ${PREFIX}/share/doc/pgp
.for docfile in ${DOCFILES}
@${INSTALL_DATA} ${WRKDIR}/doc/${docfile} ${PREFIX}/share/doc/pgp
.endfor
.include <bsd.port.mk>

2
security/pgp/files/md5 Normal file
View File

@ -0,0 +1,2 @@
MD5 (pgp263is.tar.gz) = 73bbb87b8c77debcf9de3b9d49902892
MD5 (rsaref2.tar.gz) = 0b474c97bf1f1c0d27e5a95f1239c08d

1
security/pgp/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
Pretty Good Privacy 2.6.3a (usa) and 2.6.3ia (international)

20
security/pgp/pkg/DESCR Normal file
View File

@ -0,0 +1,20 @@
Pretty Good Privacy version 2.6.3ia (international)
Pretty Good Privacy version 2.6.3a (united states)
PGP 2.6.3[i]a is not an official PGP version. It is based on the source
code for MIT PGP 2.6.2 and has been modified for international use. PGP
2.6.3i (international) is probably illegal to use within the USA, but is
fine in almost every other country in the world. PGP 2.6.3a can be
compiled from the same source and is legal even inside the USA.
All changes in the source that are not applicable within the USA are
enclosed in #ifdef's, thus enabling you to compile a PGP version that is
legal to use within the USA. This is accomplished by adding the -DUSA
option when building the program, and by linking it with the RSAREF
library (rsaglue2) rather than MPILIB (rsaglue1). When compiled this
way PGP will identify itself as 2.6.3a.
For a more thorough installation and usage guide, refer to the file
setup.doc and the documentation for PGP 2.6.2, which is included
unmodified in the doc/ subdirectory that is created when you unpack the
distribution archive and installed in /usr/local/share/doc.

27
security/pgp/pkg/PLIST Normal file
View File

@ -0,0 +1,27 @@
bin/pgp
man/man1/pgp.1
lib/pgp/config.txt
lib/pgp/de.hlp
lib/pgp/en.hlp
lib/pgp/es.hlp
lib/pgp/fr.hlp
lib/pgp/keys.asc
lib/pgp/language.txt
lib/pgp/pgp.hlp
share/doc/pgp/appnote.doc
share/doc/pgp/blurb.txt
share/doc/pgp/changes.doc
share/doc/pgp/faq.txt
share/doc/pgp/keyserv.doc
share/doc/pgp/mitlicen.txt
share/doc/pgp/pgformat.doc
share/doc/pgp/pgp262i.dif
share/doc/pgp/pgp263i.dif
share/doc/pgp/pgp_vms.hlp
share/doc/pgp/pgpdoc1.txt
share/doc/pgp/pgpdoc2.txt
share/doc/pgp/politic.doc
share/doc/pgp/przon26i.asc
share/doc/pgp/setup.doc
@dirrm lib/pgp
@dirrm share/doc/pgp