From tkato@prontomail.ne.jp  Sat Feb 12 14:45:14 2000
Return-Path: <tkato@prontomail.ne.jp>
Received: from mailgw1.prontomail.com (mailgw1.prontomail.com [209.185.149.197])
	by builder.freebsd.org (Postfix) with ESMTP id 82CB13FFA
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 12 Feb 2000 14:45:14 -0800 (PST)
Received: from mail46.prontomail.com (209.185.149.146) by mailgw1.prontomail.com (NPlex 2.0.123) for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Feb 2000 14:45:12 -0800
Received: from web04 (209.185.149.204) by mail46.prontomail.com (NPlex 2.0.123) for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Feb 2000 14:45:01 -0800
Message-Id: <2F1CEF15431E3D11787300807CFDCBC0@tkato.prontomail.ne.jp>
Date: Sun, 13 Feb 2000 07:45:13 +0900
From: tkato@prontomail.ne.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Update port: print/ghostscript55

>Number:         16667
>Category:       ports
>Synopsis:       Update port: print/ghostscript55
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    andreas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 12 14:50:02 PST 2000
>Closed-Date:    Sun Feb 13 09:07:58 PST 2000
>Last-Modified:  Sun Feb 13 09:08:21 PST 2000
>Originator:     KATO Tsuguru
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
>Environment:

>Description:
- Disable encrypted PDF support by default (because of possible 
  export restrictions)
- tar -> TAR

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/print/ghostscript55/Makefile print/ghostscript55/Makefile
--- /usr/ports/print/ghostscript55/Makefile	Sat Nov 27 08:17:34 1999
+++ print/ghostscript55/Makefile	Mon Jan 31 04:21:00 2000
@@ -1,5 +1,5 @@
 # New ports collection makefile for:	ghostscript
-# Version required:	5.0
+# Version required:	5.50
 # Date created:		Tue Jun 10 21:58:54 CEST 1997
 # Whom:			Andreas Klemm <andreas@klemm.gtn.com>
 #
@@ -42,9 +42,6 @@
 # Additional driver HP 850, see http://www.erdw.ethz.ch/~bonk/hp850/hp850.html
 HP850_DRV=	hp8xxs13.zip
 
-# replacement for pdf_sec.ps, that allows you to read encrypted PDF files
-DECRYPT_PDF=	pdf_sec.ps
-
 .if defined(A4)
 CFLAGS+=	-DA4
 .endif
@@ -76,20 +73,28 @@
 pre-install:
 	@${MKDIR} ${PREFIX}/share/ghostscript ${PREFIX}/bin ${PREFIX}/man/man1
 	(cd ${PREFIX}/share/ghostscript ; \
-			tar -xzf ${DISTDIR}/${GS_FONTS_STD})
+			${TAR} -xzf ${DISTDIR}/${GS_FONTS_STD})
 	(cd ${PREFIX}/share/ghostscript/fonts ; \
-			tar -xzf ${DISTDIR}/${GS_FONTS_OTHER})
+			${TAR} -xzf ${DISTDIR}/${GS_FONTS_OTHER})
 
 # install the readme and license file of the hp8xxx driver as well
 post-install:
 	strip ${PREFIX}/bin/gs
 	${INSTALL_SCRIPT} ${WRKSRC}/unix-lpr.sh ${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/lprsetup.sh ${PREFIX}/bin
-	${INSTALL_DATA} ${DISTDIR}/${DECRYPT_PDF} \
-		${PREFIX}/share/ghostscript/5.50
 	${INSTALL_DATA} ${WRKSRC}/license.hp8 \
 		${PREFIX}/share/ghostscript/5.50/doc
 	${INSTALL_DATA} ${WRKSRC}/readme.hp8 \
 		${PREFIX}/share/ghostscript/5.50/doc
+.if defined(PDFENCRYPT)
+        ${INSTALL_DATA} ${DISTDIR}/pdf_sec.ps ${PREFIX}/share/ghostscript/5.50
+.endif
+
+# encrypted PDF support.  can't be packaged due to export control issues.
+.if defined(PDFENCRYPT)
+MASTER_SITES+=	http://www.ozemail.com.au/~geoffk/pdfencrypt/
+DISTFILES+=	pdf_sec.ps
+RESTRICTED=	"Crypto; export controlled, RC4 in PostScript code included"
+.endif
 
 .include <bsd.port.mk>


Sent by Japanese ProntoMail

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->andreas 
Responsible-Changed-By: taoka 
Responsible-Changed-When: Sun Feb 13 07:27:54 PST 2000 
Responsible-Changed-Why:  
Over to maintainer 
State-Changed-From-To: open->closed 
State-Changed-By: andreas 
State-Changed-When: Sun Feb 13 09:07:58 PST 2000 
State-Changed-Why:  
submitted changes, thanks ! 
>Unformatted:
