ports/76833: [MAINTAINER] print/cups-pdf: update to 1.6.5
Mark Daniel Reidel
ports at mark.reidel.info
Sat Jan 29 22:20:18 UTC 2005
>Number: 76833
>Category: ports
>Synopsis: [MAINTAINER] print/cups-pdf: update to 1.6.5
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 29 22:20:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Mark Daniel Reidel
>Release: FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD raffi.reidel.info 5.3-STABLE FreeBSD 5.3-STABLE #1: Thu Nov 11 09:01:17 CET 2004
>Description:
- Update to 1.6.5
>How-To-Repeat:
>Fix:
--- cups-pdf-1.6.5.patch begins here ---
diff -ruN --exclude=CVS /tmp/portbk/print/cups-pdf/Makefile /usr/ports/print/cups-pdf/Makefile
--- /tmp/portbk/print/cups-pdf/Makefile Thu Jun 17 22:00:24 2004
+++ /usr/ports/print/cups-pdf/Makefile Sat Jan 29 22:51:15 2005
@@ -6,27 +6,28 @@
#
PORTNAME= cups-pdf
-PORTVERSION= 1.4.2
+PORTVERSION= 1.6.5
CATEGORIES= print
MASTER_SITES= http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
-DISTNAME= ${PORTNAME}_${PORTVERSION}a
+DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports at mark.reidel.info
COMMENT= A virtual printer for CUPS to produce PDF files
RUN_DEPENDS= ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}a
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.include <bsd.port.pre.mk>
-GNU_CONFIGURE= yes
USE_REINPLACE= yes
USE_GHOSTSCRIPT_RUN= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS+= --with-backenddir=${LOCALBASE}/libexec/cups/backend
-SUBST_CMD= -e "s,/usr/bin/gs,${LOCALBASE}/bin/gs,"
+SUBST_CMD= -e "s,/usr/bin/gs,${LOCALBASE}/bin/gs," \
+ -e 's,-s /bin/sh,,' \
+ -e 's,/bin/su,/usr/bin/su,' \
+ -e 's,"lp","daemon",' \
+ -e 's,/var/spool/cups-pdf/SPOOL,/var/spool/cups-pdf,'
.ifdef(PDF_VERSION)
.if ${PDF_VERSION} == 1.2
@@ -40,10 +41,10 @@
.endif
.ifdef(HOME_SUBDIR)
-SUBST_CMD+= -e 's,/var/spool/cups-pdf,$$HOME,' -e 's,CPHOMESUB "cups-pdf",CPHOMESUB "${HOME_SUBDIR}",'
+SUBST_CMD+= -e 's,CPOUT "/var/spool/cups-pdf",CPOUT "$$HOME",' -e 's,CPHOMESUB "cups-pdf",CPHOMESUB "${HOME_SUBDIR}",'
.else
.ifdef(OUTPUT_DIRECTORY)
-SUBST_CMD+= -e "s,/var/spool/cups-pdf,${OUTPUT_DIRECTORY},"
+SUBST_CMD+= -e 's,CPOUT "/var/spool/cups-pdf",CPOUT "${OUTPUT_DIRECTORY}",'
.endif
.endif
@@ -73,6 +74,9 @@
post-configure:
@${REINPLACE_CMD} ${SUBST_CMD} ${WRKSRC}/src/cups-pdf.h
@${GUNZIP_CMD} ${WRKSRC}/extra/PostscriptColor.ppd.gz
+
+do-build:
+ cd ${WRKSRC}/src; gcc ${CFLAGS} -o cups-pdf cups-pdf.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend
diff -ruN --exclude=CVS /tmp/portbk/print/cups-pdf/distinfo /usr/ports/print/cups-pdf/distinfo
--- /tmp/portbk/print/cups-pdf/distinfo Thu Jun 17 22:00:24 2004
+++ /usr/ports/print/cups-pdf/distinfo Sat Jan 29 16:55:06 2005
@@ -1,2 +1,2 @@
-MD5 (cups-pdf_1.4.2a.tar.gz) = 39a207ad22ce1d1b3cae7ee853c53b7f
-SIZE (cups-pdf_1.4.2a.tar.gz) = 114018
+MD5 (cups-pdf_1.6.5.tar.gz) = 5b5aba6fc29836aabab5268d8f1d2c91
+SIZE (cups-pdf_1.6.5.tar.gz) = 16506
--- cups-pdf-1.6.5.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list