Import package vendor original specs for necessary manipulations.

Fri, 16 Jan 2009 20:52:12 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 20:52:12 +0100
changeset 95
c15febc142b1
parent 94
0bb9d0584d2a
child 96
af66192d4e85

Import package vendor original specs for necessary manipulations.

pgp2/language.idx file | annotate | diff | comparison | revisions
pgp2/pgp2.patch file | annotate | diff | comparison | revisions
pgp2/pgp2.spec file | annotate | diff | comparison | revisions
     1.1 Binary file pgp2/language.idx has changed
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pgp2/pgp2.patch	Fri Jan 16 20:52:12 2009 +0100
     2.3 @@ -0,0 +1,101 @@
     2.4 +--- src/system.c.orig	Tue Aug 27 12:53:39 2002
     2.5 ++++ src/system.c	Tue Aug 27 12:53:38 2002
     2.6 +@@ -344,7 +344,7 @@
     2.7 + #if (defined(MACH) || defined(SVR2) || defined(_BSD)) && !defined(NEXT) \
     2.8 + && !defined(AUX) && !defined(__MACHTEN__) || (defined(sun) && defined(i386))
     2.9 + int remove(name)
    2.10 +-char *name;
    2.11 ++const char *name;
    2.12 + {
    2.13 + 	return unlink(name);
    2.14 + }
    2.15 +--- src/mpilib.h.orig	Tue Aug 29 05:03:30 1995
    2.16 ++++ src/mpilib.h	Fri Oct  6 09:08:35 2000
    2.17 +@@ -321,7 +321,15 @@
    2.18 + #endif /* mp_smul */
    2.19 + 
    2.20 + #define MIN_KEY_BITS  384
    2.21 ++#ifdef USA
    2.22 + #define MAX_KEY_BITS 2048
    2.23 ++#else  /* USA */
    2.24 ++/*
    2.25 ++ * MAX_KEY_BITS changed from 2048 to 4096
    2.26 ++ * by Rich Wales <richw@webcom.com>, 06oct2000
    2.27 ++ */
    2.28 ++#define MAX_KEY_BITS 4096
    2.29 ++#endif /* USA */
    2.30 + 
    2.31 + /*	MAX_BIT_PRECISION is upper limit that assembly primitives can handle.
    2.32 + 	It must be less than 32704 bits, or 4088 bytes.  It should be an
    2.33 +--- src/randpool.h.orig	Fri Jul 15 05:59:32 1994
    2.34 ++++ src/randpool.h	Fri Oct  6 09:08:38 2000
    2.35 +@@ -1,7 +1,15 @@
    2.36 + #include "usuals.h"
    2.37 + 
    2.38 + /* Set this to whatever you need (must be > 512) */
    2.39 ++#ifdef USA
    2.40 + #define RANDPOOLBITS 3072
    2.41 ++#else  /* USA */
    2.42 ++/*
    2.43 ++ * RANDPOOLBITS changed from 3072 to 10240
    2.44 ++ * by Rich Wales <richw@webcom.com>, 06oct2000
    2.45 ++ */
    2.46 ++#define RANDPOOLBITS 10240
    2.47 ++#endif /* USA */
    2.48 + 
    2.49 + void randPoolStir(void);
    2.50 + void randPoolAddBytes(byte const *buf, unsigned len);
    2.51 +--- src/pgp.c.orig	Wed Apr 24 10:34:19 1996
    2.52 ++++ src/pgp.c	Fri Oct  6 09:09:59 2000
    2.53 +@@ -101,6 +101,7 @@
    2.54 +    Version 2.6.2i - 7 May 95
    2.55 +    Version 2.6.3(i) - 18 Jan 96
    2.56 +    Version 2.6.3(i)a - 4 Mar 96
    2.57 ++   Version 2.6.3(i)a+4K - 6 Oct 00 - richw@webcom.com
    2.58 + 
    2.59 +  */
    2.60 + 
    2.61 +@@ -193,7 +194,7 @@
    2.62 +         " Amiga 68000 version by Rob Knop <rknop@mop.caltech.edu>";
    2.63 + #  endif
    2.64 + #else
    2.65 +-static const char __DOSVer[] = "$VER: PGP 2.6.3ia (04.03.96)"
    2.66 ++static const char __DOSVer[] = "$VER: PGP 2.6.3ia+4K (06.10.00)"
    2.67 + #  ifdef _M68020
    2.68 +         " Amiga 68020 version by Peter Simons <simons@peti.rhein.de>";
    2.69 + #  else
    2.70 +@@ -205,10 +206,11 @@
    2.71 + /* Global filenames and system-wide file extensions... */
    2.72 + #ifdef USA
    2.73 + char rel_version[] = _LANG("2.6.3a");	/* release version */
    2.74 +-#else
    2.75 +-char rel_version[] = _LANG("2.6.3ia");	/* release version */
    2.76 +-#endif
    2.77 + char rel_date[] = "1996-03-04";		/* release date */
    2.78 ++#else  /* USA */
    2.79 ++char rel_version[] = _LANG("2.6.3ia+4K");	/* release version */
    2.80 ++char rel_date[] = "2000-10-06";		/* release date */
    2.81 ++#endif /* USA */
    2.82 + char PGP_EXTENSION[] = ".pgp";
    2.83 + char ASC_EXTENSION[] = ".asc";
    2.84 + char SIG_EXTENSION[] = ".sig";
    2.85 +@@ -390,13 +392,15 @@
    2.86 + #ifdef USA
    2.87 +     fputs(LANG(signon_legalese), stderr);
    2.88 + #endif
    2.89 +-    fputs(
    2.90 + #ifdef USA
    2.91 ++    fputs(
    2.92 + LANG("Export of this software may be restricted by the U.S. government.\n"),
    2.93 +-#else
    2.94 +-LANG("International version - not for use in the USA. Does not use RSAREF.\n"),
    2.95 +-#endif
    2.96 ++    /*
    2.97 ++     * Non-RSAREF warning removed (now that RSA patent has expired)
    2.98 ++     * by Rich Wales <richw@webcom.com>, 06oct2000
    2.99 ++     */
   2.100 + 	  stderr);
   2.101 ++#endif
   2.102 + 
   2.103 +     get_timestamp((byte *) & tstamp);	/* timestamp points to tstamp */
   2.104 +     fprintf(pgpout, LANG("Current time: %s\n"), ctdate(&tstamp));
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/pgp2/pgp2.spec	Fri Jan 16 20:52:12 2009 +0100
     3.3 @@ -0,0 +1,128 @@
     3.4 +##
     3.5 +##  pgp2.spec -- OpenPKG RPM Specification
     3.6 +##  Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
     3.7 +##  Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
     3.8 +##  Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
     3.9 +##
    3.10 +##  Permission to use, copy, modify, and distribute this software for
    3.11 +##  any purpose with or without fee is hereby granted, provided that
    3.12 +##  the above copyright notice and this permission notice appear in all
    3.13 +##  copies.
    3.14 +##
    3.15 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    3.16 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    3.17 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    3.18 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    3.19 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    3.20 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    3.21 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    3.22 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    3.23 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    3.24 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    3.25 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    3.26 +##  SUCH DAMAGE.
    3.27 +##
    3.28 +
    3.29 +#   package version
    3.30 +%define       V_short 2.x
    3.31 +%define       V_long  2.6.3i
    3.32 +%define       V_strip 263
    3.33 +
    3.34 +#   package information
    3.35 +Name:         pgp2
    3.36 +Summary:      Pretty Good Privacy
    3.37 +URL:          http://www.pgpi.org/
    3.38 +Vendor:       Philip Zimmerman
    3.39 +Packager:     The OpenPKG Project
    3.40 +Distribution: OpenPKG [PLUS]
    3.41 +Group:        Cryptography
    3.42 +License:      GPL
    3.43 +Version:      %{V_long}
    3.44 +Release:      20040916
    3.45 +
    3.46 +#   list of sources
    3.47 +Source0:      ftp://ftp.pgpi.org/pub/pgp/%{V_short}/src/pgp%{V_strip}is.tar.gz
    3.48 +Source1:      language.idx
    3.49 +Patch0:       pgp2.patch
    3.50 +
    3.51 +#   build information
    3.52 +Prefix:       %{l_prefix}
    3.53 +BuildRoot:    %{l_buildroot}
    3.54 +BuildPreReq:  OpenPKG, openpkg >= 20030909, gcc
    3.55 +PreReq:       OpenPKG, openpkg >= 20030909
    3.56 +AutoReq:      no
    3.57 +AutoReqProv:  no
    3.58 +
    3.59 +%description
    3.60 +    PGP (Pretty Good Privacy) is a public key encryption program originally
    3.61 +    written by Phil Zimmermann in 1991. This is version %{V_long}, considered
    3.62 +    a classic PGP by some and outdated by others. However, this version of PGP
    3.63 +    is absent of questionable security features implemented in more current
    3.64 +    releases. Because of this, some paranoid PGP users prefer this classic
    3.65 +    version. An article http://senderek.de/security/key-experiments.html
    3.66 +    explains the questionable security features of newer versions of PGP, and
    3.67 +    the reasons that PGP %{V_long} might be the most secure version to date.
    3.68 +
    3.69 +    This version includes '4k' patch code from Rich WALES. It will not display
    3.70 +    warnings regarding RSA patent rights, and allows key generation and
    3.71 +    processing of up to 4096 bits in length. For more information, please see
    3.72 +    http://www.richw.org/pgp/263i-4k-patch.
    3.73 +
    3.74 +%prep
    3.75 +    #   extract distribution
    3.76 +    %setup -c -n pgp-%{V_long}
    3.77 +    %{l_tar} -xf pgp%{V_strip}ii.tar
    3.78 +    %patch -p0
    3.79 +
    3.80 +    #   patch distribution
    3.81 +    %{l_shtool} subst \
    3.82 +        -e 's;\/usr\/local\/lib\/pgp;%{l_prefix}\/etc\/pgp2;' \
    3.83 +        src/fileio.h
    3.84 +
    3.85 +%build
    3.86 +    #   build program
    3.87 +    cd src
    3.88 +    CC="%{l_cc}"
    3.89 +    CFLAGS="%{l_cflags -O} -fno-strength-reduce"
    3.90 +    CFLAGS="$CFLAGS -DUNIX -DPORTABLE"
    3.91 +    case "%{l_platform -t}" in
    3.92 +        sparc*     ) CFLAGS="$CFLAGS -DHIGHFIRST" ;;
    3.93 +        i?86*      ) CFLAGS="$CFLAGS -DIDEA32"    ;;
    3.94 +    esac
    3.95 +    case "%{l_platform -t}" in
    3.96 +        *-freebsd* ) CFLAGS="$CFLAGS -DMAX_NAMELEN=255" ;;
    3.97 +        *-linux*   ) CFLAGS="$CFLAGS -DLINUX"           ;;
    3.98 +        *-sunos*   ) CFLAGS="$CFLAGS -DSOLARIS"         ;;
    3.99 +    esac
   3.100 +    %{l_make} %{l_mflags} \
   3.101 +        CC="$CC" CFLAGS="$CFLAGS" pgp
   3.102 +
   3.103 +%install
   3.104 +    rm -rf $RPM_BUILD_ROOT
   3.105 +    %{l_shtool} mkdir -f -p -m 755 \
   3.106 +        $RPM_BUILD_ROOT%{l_prefix}/bin \
   3.107 +        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
   3.108 +        $RPM_BUILD_ROOT%{l_prefix}/etc/pgp2
   3.109 +
   3.110 +    #   install program and manpage files
   3.111 +    %{l_shtool} install -c -s -m 755 \
   3.112 +        src/pgp $RPM_BUILD_ROOT%{l_prefix}/bin/pgp2
   3.113 +    %{l_shtool} install -c -m 644 \
   3.114 +        doc/pgp.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/pgp2.1
   3.115 +
   3.116 +    #   install configuration, language, and help files
   3.117 +    %{l_shtool} install -c -m 644 \
   3.118 +        config.txt *.hlp doc/pgpdoc[12].txt \
   3.119 +        language.txt %{SOURCE language.idx} \
   3.120 +        $RPM_BUILD_ROOT%{l_prefix}/etc/pgp2/
   3.121 +
   3.122 +    #   determine installation files and mark configs
   3.123 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   3.124 +        %{l_files_std} \
   3.125 +        '%config %{l_prefix}/etc/pgp2/config.txt'
   3.126 +
   3.127 +%files -f files
   3.128 +
   3.129 +%clean
   3.130 +    rm -rf $RPM_BUILD_ROOT
   3.131 +

mercurial