michael@95: ## michael@95: ## pgp2.spec -- OpenPKG RPM Specification michael@95: ## Copyright (c) 2000-2005 The OpenPKG Project michael@95: ## Copyright (c) 2000-2005 Ralf S. Engelschall michael@95: ## Copyright (c) 2000-2005 Cable & Wireless michael@95: ## michael@95: ## Permission to use, copy, modify, and distribute this software for michael@95: ## any purpose with or without fee is hereby granted, provided that michael@95: ## the above copyright notice and this permission notice appear in all michael@95: ## copies. michael@95: ## michael@95: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@95: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@95: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@95: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@95: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@95: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@95: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@95: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@95: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@95: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@95: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@95: ## SUCH DAMAGE. michael@95: ## michael@95: michael@95: # package version michael@95: %define V_short 2.x michael@95: %define V_long 2.6.3i michael@95: %define V_strip 263 michael@95: michael@95: # package information michael@95: Name: pgp2 michael@95: Summary: Pretty Good Privacy michael@95: URL: http://www.pgpi.org/ michael@95: Vendor: Philip Zimmerman michael@95: Packager: The OpenPKG Project michael@95: Distribution: OpenPKG [PLUS] michael@95: Group: Cryptography michael@95: License: GPL michael@95: Version: %{V_long} michael@96: Release: 20090106 michael@95: michael@95: # list of sources michael@95: Source0: ftp://ftp.pgpi.org/pub/pgp/%{V_short}/src/pgp%{V_strip}is.tar.gz michael@95: Source1: language.idx michael@95: Patch0: pgp2.patch michael@95: michael@95: # build information michael@95: Prefix: %{l_prefix} michael@95: BuildRoot: %{l_buildroot} michael@95: BuildPreReq: OpenPKG, openpkg >= 20030909, gcc michael@95: PreReq: OpenPKG, openpkg >= 20030909 michael@95: AutoReq: no michael@95: AutoReqProv: no michael@95: michael@95: %description michael@95: PGP (Pretty Good Privacy) is a public key encryption program originally michael@95: written by Phil Zimmermann in 1991. This is version %{V_long}, considered michael@95: a classic PGP by some and outdated by others. However, this version of PGP michael@95: is absent of questionable security features implemented in more current michael@95: releases. Because of this, some paranoid PGP users prefer this classic michael@95: version. An article http://senderek.de/security/key-experiments.html michael@95: explains the questionable security features of newer versions of PGP, and michael@95: the reasons that PGP %{V_long} might be the most secure version to date. michael@95: michael@95: This version includes '4k' patch code from Rich WALES. It will not display michael@95: warnings regarding RSA patent rights, and allows key generation and michael@95: processing of up to 4096 bits in length. For more information, please see michael@95: http://www.richw.org/pgp/263i-4k-patch. michael@95: michael@95: %prep michael@95: # extract distribution michael@95: %setup -c -n pgp-%{V_long} michael@95: %{l_tar} -xf pgp%{V_strip}ii.tar michael@95: %patch -p0 michael@95: michael@95: # patch distribution michael@95: %{l_shtool} subst \ michael@96: -e 's;\/usr\/local\/lib\/pgp;%{l_prefix}\/etc\/pgp;' \ michael@95: src/fileio.h michael@95: michael@95: %build michael@95: # build program michael@95: cd src michael@95: CC="%{l_cc}" michael@95: CFLAGS="%{l_cflags -O} -fno-strength-reduce" michael@95: CFLAGS="$CFLAGS -DUNIX -DPORTABLE" michael@95: case "%{l_platform -t}" in michael@95: sparc* ) CFLAGS="$CFLAGS -DHIGHFIRST" ;; michael@95: i?86* ) CFLAGS="$CFLAGS -DIDEA32" ;; michael@95: esac michael@95: case "%{l_platform -t}" in michael@95: *-freebsd* ) CFLAGS="$CFLAGS -DMAX_NAMELEN=255" ;; michael@95: *-linux* ) CFLAGS="$CFLAGS -DLINUX" ;; michael@95: *-sunos* ) CFLAGS="$CFLAGS -DSOLARIS" ;; michael@95: esac michael@95: %{l_make} %{l_mflags} \ michael@95: CC="$CC" CFLAGS="$CFLAGS" pgp michael@95: michael@95: %install michael@95: rm -rf $RPM_BUILD_ROOT michael@95: %{l_shtool} mkdir -f -p -m 755 \ michael@95: $RPM_BUILD_ROOT%{l_prefix}/bin \ michael@95: $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ michael@96: $RPM_BUILD_ROOT%{l_prefix}/etc/pgp michael@95: michael@95: # install program and manpage files michael@95: %{l_shtool} install -c -s -m 755 \ michael@96: src/pgp $RPM_BUILD_ROOT%{l_prefix}/bin/pgp michael@95: %{l_shtool} install -c -m 644 \ michael@96: doc/pgp.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/pgp.1 michael@95: michael@95: # install configuration, language, and help files michael@95: %{l_shtool} install -c -m 644 \ michael@95: config.txt *.hlp doc/pgpdoc[12].txt \ michael@95: language.txt %{SOURCE language.idx} \ michael@96: $RPM_BUILD_ROOT%{l_prefix}/etc/pgp/ michael@95: michael@95: # determine installation files and mark configs michael@95: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ michael@95: %{l_files_std} \ michael@96: '%config %{l_prefix}/etc/pgp/config.txt' michael@95: michael@95: %files -f files michael@95: michael@95: %clean michael@95: rm -rf $RPM_BUILD_ROOT michael@95: