Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2000 08:21:32 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/21615: Update port: print/pdq
Message-ID:  <20000928152132.5753A37B664@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         21615
>Category:       ports
>Synopsis:       Update port: print/pdq
>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:   Thu Sep 28 08:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.1.1-RELEASE i386
>Organization:
>Environment:
>Description:
- Update MASTER_SITES and WWW: line of pkg/DESCR
- Support PREFIX properly

No response from maintainer.

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/print/pdq/Makefile print/pdq/Makefile
--- /usr/ports/print/pdq/Makefile	Tue Jul 11 21:14:15 2000
+++ print/pdq/Makefile	Mon Sep 25 19:20:22 2000
@@ -8,7 +8,7 @@
 PORTNAME=	pdq
 PORTVERSION=	2.2.1
 CATEGORIES=	print
-MASTER_SITES=	ftp://feynman.tam.uiuc.edu/pub/pdq/
+MASTER_SITES=	http://pdq.sourceforge.net/ftp/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	yinjieh@csie.nctu.edu.tw
@@ -19,19 +19,17 @@
 GTK_CONFIG?=	${X11BASE}/bin/gtk12-config
 
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	GLIB_CONFIG="${GLIB_CONFIG}" \
+		GTK_CONFIG="${GTK_CONFIG}"
 CONFIGURE_ARGS=	--enable-pdqlibdir=${PREFIX}/etc/pdq
-CONFIGURE_ENV=	GTK_CONFIG="${GTK_CONFIG}" \
-		GLIB_CONFIG="${GLIB_CONFIG}"
 
 MAN1=		lpd_cancel.1 lpd_print.1 lpd_status.1 pdq.1 xpdq.1
 MAN5=		printrc.5
 
 post-install:
-	strip ${PREFIX}/bin/pdq
-	strip ${PREFIX}/bin/xpdq
-	strip ${PREFIX}/bin/lpd_cancel
-	strip ${PREFIX}/bin/lpd_print
-	strip ${PREFIX}/bin/lpd_status
-	@${SED} 's|%%PREFIX%%|${PREFIX}|g' pkg/MESSAGE
+.for file in lpd_cancel lpd_print lpd_status pdq xpdq
+	@strip ${PREFIX}/bin/${file}
+.endfor
+	@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -urN /usr/ports/print/pdq/files/md5 print/pdq/files/md5
--- /usr/ports/print/pdq/files/md5	Tue Jul 11 21:14:16 2000
+++ print/pdq/files/md5	Thu Jan  1 09:00:00 1970
@@ -1 +0,0 @@
-MD5 (pdq-2.2.1.tgz) = c72d076b4ba59bf206bc469c57201785
diff -urN /usr/ports/print/pdq/patches/patch-af print/pdq/patches/patch-af
--- /usr/ports/print/pdq/patches/patch-af	Mon May 17 19:32:40 1999
+++ print/pdq/patches/patch-af	Fri Aug 11 22:36:59 2000
@@ -1,12 +1,6 @@
---- src/xpdq_printer.c.orig	Sat May 15 07:19:13 1999
-+++ src/xpdq_printer.c	Sat May 15 11:43:47 1999
-@@ -29,23 +29,30 @@
- #include "printer.h"
- #include "argument.h"
- 
-+#define PRINTRC "/usr/local/etc/printrc"
-+
- void xpdq_add_printer (void) {
+--- src/xpdq_printer.c.orig	Sat Apr  1 05:36:30 2000
++++ src/xpdq_printer.c	Fri Aug 11 22:36:57 2000
+@@ -33,19 +33,24 @@
  
     pwizard_state *wizard;
     dl_list *list;
@@ -20,7 +14,7 @@
 +      error = malloc(256);
 +      sprintf (error, "There are no printer drivers defined in\n"
 +         "%s or ~/.printrc.  Without printer drivers,\n"
-+	 "the wizard cannot add printers.", PRINTRC);
++	 "the wizard cannot add printers.", PRINTRC_FILE);
 +      xpdq_error(error);
        return;
     }
@@ -32,7 +26,7 @@
 +      error = malloc(256);
 +      sprintf (error, "There are no printer drivers defined in\n"
 +         "%s or ~/.printrc.  Without printer drivers,\n"
-+	 "the wizard cannot add printers.", PRINTRC);
++	 "the wizard cannot add printers.", PRINTRC_FILE);
 +      xpdq_error(error);
        return;
     }
diff -urN /usr/ports/print/pdq/patches/patch-ag print/pdq/patches/patch-ag
--- /usr/ports/print/pdq/patches/patch-ag	Mon May 17 19:32:41 1999
+++ print/pdq/patches/patch-ag	Fri Aug 11 22:37:39 2000
@@ -1,15 +1,6 @@
---- src/xpdq_wizard.c.orig	Sat May 15 11:45:15 1999
-+++ src/xpdq_wizard.c	Sat May 15 11:50:44 1999
-@@ -29,6 +29,8 @@
- #include "printer.h"
- #include "argument.h"
- 
-+#define PRINTRC "/usr/local/etc/printrc"
-+
- pwizard_state *new_pwizard() {
- 
-    pwizard_state *wizard;
-@@ -315,6 +317,7 @@
+--- src/xpdq_wizard.c.orig	Sat Apr  1 05:36:30 2000
++++ src/xpdq_wizard.c	Fri Aug 11 22:37:29 2000
+@@ -315,6 +315,7 @@
     driver *d;
     int i, row;
     char *dname;
@@ -17,7 +8,7 @@
  
     panel = gtk_vbox_new (FALSE, 0);
     gtk_container_border_width (GTK_CONTAINER (panel), 10);
-@@ -348,9 +351,11 @@
+@@ -348,9 +349,11 @@
     gtk_clist_set_selection_mode (GTK_CLIST(widget), GTK_SELECTION_BROWSE);
     list = first_list_element (rc->driver_list);
     if (list == NULL) {
@@ -27,7 +18,7 @@
 +      error = malloc(256);
 +      sprintf(error, "This system has no drivers.  Please make sure\n"
 +         "that there are drivers defined in %s, ~/.printrc,\n"
-+	 "or in files included by %s or ~/.printrc.", PRINTRC, PRINTRC);
++	 "or in files included by %s or ~/.printrc.", PRINTRC_FILE, PRINTRC_FILE);
 +      xpdq_error(error);
     }
     while (list != NULL) {
diff -urN /usr/ports/print/pdq/pkg/DESCR print/pdq/pkg/DESCR
--- /usr/ports/print/pdq/pkg/DESCR	Mon May 17 19:32:43 1999
+++ print/pdq/pkg/DESCR	Wed Sep 20 21:34:05 2000
@@ -10,7 +10,7 @@
 o Custom command-line options.
 o Root privileges not required.
 
-WWW: http://feynman.tam.uiuc.edu/pdq/introduction.html
+WWW: http://pdq.sourceforge.net/
 
 - Yin-Jieh Chen
 yinjieh@csie.nctu.edu.tw


>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?20000928152132.5753A37B664>