Date: Tue, 22 Jun 1999 13:46:36 +0800 (CST) From: hsw@acm.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/12337: xpdf encryption patch Message-ID: <199906220546.NAA69864@hsw.generalresources.com>
next in thread | raw e-mail | index | archive | help
>Number: 12337 >Category: ports >Synopsis: xpdf cannot handle encrypted pdf files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 21 22:50:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Christopher Hall >Release: FreeBSD 3.2-STABLE i386 >Organization: >Environment: 3.2-STABLE FreeBSD 3.2-STABLE #0: Thu May 27 16:25:27 CST 1999 >Description: xpdf-0.80 does not handle some pdf files, says they are encrypted gv-3.5.8 can handle the same files, but very slowly. >How-To-Repeat: $ xpdf 7kj1r1.pdf xpdf version 0.80 Copyright 1996-1998 Derek B. Noonburg Error: PDF file is encrypted and cannot be displayed Error: * Decryption support is currently not included in xpdf Error: * due to legal restrictions: the U.S.A. still has bogus Error: * export controls on cryptography software. Error: Couldn't read xref table $ gv 7kj1r1.pdf this works >Fix: The xpdf web site lists a patch that fixes this. However I don't know how to properly incorporate this into the make file given that it is cryptography. I have tried to make it so that package building would create the non-crypo version; since I assume the the crypto version could not be distributed as a package on CDROM. Here is my attempt at a patch: [hsw:/usr/ports/graphics]# diff -urN -x CVS xpdf.orig xpdf diff -urN -x CVS xpdf.orig/Makefile xpdf/Makefile --- xpdf.orig/Makefile Wed Dec 23 09:11:52 1998 +++ xpdf/Makefile Tue Jun 22 13:23:59 1999 @@ -13,6 +13,15 @@ ftp://ftp.cdrom.com/pub/tex/ctan/support/xpdf/ EXTRACT_SUFX= .tgz +.if defined(USA_RESIDENT) && !defined(PACKAGE_BUILDING) +RESTRICTED= "Contains cryptography" + +PATCH_SITES= ftp://ftp.sci.usq.edu.au/pub/linux/xpdf/ +PATCHFILES= xpdf-0.80-decrypt.patch +PATCH_DIST_ARGS=-p0 -E -d ${WRKDIR} --quiet +.endif + + MAINTAINER= chuckr@glue.umd.edu LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm diff -urN -x CVS xpdf.orig/files/md5 xpdf/files/md5 --- xpdf.orig/files/md5 Wed Dec 23 09:12:41 1998 +++ xpdf/files/md5 Tue Jun 22 11:58:25 1999 @@ -1 +1,2 @@ MD5 (xpdf-0.80.tgz) = 91d49cfaf1e555a26a9bcd0b57e51f8a +MD5 (xpdf-0.80-decrypt.patch) = 97d6648022fcd9633917f8dc96d25fa2 diff -urN -x CVS xpdf.orig/pkg/DESCR xpdf/pkg/DESCR --- xpdf.orig/pkg/DESCR Wed Mar 11 11:08:18 1998 +++ xpdf/pkg/DESCR Tue Jun 22 12:36:13 1999 @@ -5,3 +5,5 @@ Xpdf is designed to be small and efficient. It does not use the Motif or Xt libraries. It uses standard X fonts. Xpdf is quite usable on a 486-66 PC running FreeBSD. + +WWW: http://www.foolabs.com/xpdf/ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906220546.NAA69864>