Date: 15 Jun 2004 07:49:41 -0000 From: Mark Daniel Reidel <ports@mark.reidel.info> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/67961: [NEW PORT] print/cups-pdf: A virtual printer for CUPS to produce PDF files Message-ID: <20040615074941.31887.qmail@karm.dyndns.org> Resent-Message-ID: <200406150750.i5F7oE3L054349@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 67961 >Category: ports >Synopsis: [NEW PORT] print/cups-pdf: A virtual printer for CUPS to produce PDF files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 15 07:50:14 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Mark Daniel Reidel >Release: FreeBSD 4.10-PRERELEASE i386 >Organization: >Environment: System: FreeBSD raffi.reidel.info 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #26: Wed Apr 28 22:28:32 CEST 2004 >Description: CUPS-PDF is designed to produce PDF files in a heterogeneous network by providing a PDF printer on the central fileserver. After restarting CUPS, you will be able to choose "Virtual Printer (PDF Printer)" when setting up a new printer in CUPS. Once you print to the new device all converted PDF files will be placed in the specified directory. WWW: http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/ >How-To-Repeat: >Fix: --- cups-pdf-1.4.2a.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cups-pdf # cups-pdf/Makefile # cups-pdf/distinfo # cups-pdf/pkg-plist # cups-pdf/pkg-descr # echo c - cups-pdf mkdir -p cups-pdf > /dev/null 2>&1 echo x - cups-pdf/Makefile sed 's/^X//' >cups-pdf/Makefile << 'END-of-cups-pdf/Makefile' X# New ports collection makefile for: cups-pdf X# Date created: Jun 15 2004 X# Whom: Mark Reidel <ports@mark.reidel.info> X# X# $FreeBSD$ X# X XPORTNAME= cups-pdf XPORTVERSION= 1.4.2a XCATEGORIES= print XMASTER_SITES= http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/ XDISTNAME= ${PORTNAME}_${PORTVERSION} X XMAINTAINER= ports@mark.reidel.info XCOMMENT= A virtual printer for CUPS to produce PDF files X XRUN_DEPENDS= ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base X XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} X X.include <bsd.port.pre.mk> X XGNU_CONFIGURE= yes XUSE_REINPLACE=yes XUSE_GHOSTSCRIPT_RUN=yes X XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} XCONFIGURE_ARGS+= --with-backenddir=${LOCALBASE}/libexec/cups/backend XSUBST_CMD= -e "s,/usr/bin/gs,${LOCALBASE}/bin/gs," X X.ifdef(PDF_VERSION) X.if ${PDF_VERSION} == 1.2 X.elif ${PDF_VERSION} == 1.3 X.elif ${PDF_VERSION} == 1.4 X.elif ${PDF_VERSION} == 1.5 X.else XBROKEN= "unsupported PDF-Version selected: ${PDF_VERSION}" X.endif XSUBST_CMD+= -e 's,CPPDFVER "1.4",CPPDFVER "${PDF_VERSION}",' X.endif X X.ifdef(HOME_SUBDIR) XSUBST_CMD+= -e 's,/var/spool/cups-pdf,$$HOME,' -e 's,CPHOMESUB "cups-pdf",CPHOMESUB "${HOME_SUBDIR}",' X.else X.ifdef(OUTPUT_DIRECTORY) XSUBST_CMD+= -e "s,/var/spool/cups-pdf,${OUTPUT_DIRECTORY}," X.endif X.endif X X.ifdef(LOG_DIRECTORY) XSUBST_CMD+= -e "s,/var/log/cups,${LOG_DIRECTORY}," X.endif X Xpre-fetch: X @${ECHO_MSG} "" X @${ECHO_MSG} "You may use the following build options:" X @${ECHO_MSG} "" X.if !defined(PDF_VERSION) X @${ECHO_MSG} "PDF_VERSION=1.2|1.3|1.4|1.5 PDF-version of PDF-files produced" X.endif X.if !defined(HOME_SUBDIR) X @${ECHO_MSG} "HOME_SUBDIR=<subdir> Place produced PDF-files in the" X @${ECHO_MSG} " directory ~/<subdir>/" X.endif X.if !defined(OUTPUT_DIRECTORY) X @${ECHO_MSG} "OUTPUT_DIRECTORY=<dir> Place produced PDF-files in the" X @${ECHO_MSG} " directory <dir>/" X.endif X.if !defined(LOG_DIRECTORY) X @${ECHO_MSG} "LOG_DIRECTORY=<dir> Place logfile into <dir>/cups-pdf_log" X.endif X Xpost-configure: X @${REINPLACE_CMD} ${SUBST_CMD} ${WRKSRC}/src/cups-pdf.h X @${GUNZIP_CMD} ${WRKSRC}/extra/PostscriptColor.ppd.gz X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf ${LOCALBASE}/libexec/cups/backend X ${INSTALL_DATA} ${WRKSRC}/extra/PostscriptColor.ppd ${LOCALBASE}/share/cups/model X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ X.endif X X.include <bsd.port.post.mk> END-of-cups-pdf/Makefile echo x - cups-pdf/distinfo sed 's/^X//' >cups-pdf/distinfo << 'END-of-cups-pdf/distinfo' XMD5 (cups-pdf_1.4.2a.tar.gz) = 39a207ad22ce1d1b3cae7ee853c53b7f XSIZE (cups-pdf_1.4.2a.tar.gz) = 114018 END-of-cups-pdf/distinfo echo x - cups-pdf/pkg-plist sed 's/^X//' >cups-pdf/pkg-plist << 'END-of-cups-pdf/pkg-plist' Xlibexec/cups/backend/cups-pdf Xshare/cups/model/PostscriptColor.ppd X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-cups-pdf/pkg-plist echo x - cups-pdf/pkg-descr sed 's/^X//' >cups-pdf/pkg-descr << 'END-of-cups-pdf/pkg-descr' XCUPS-PDF is designed to produce PDF files in a heterogeneous network by Xproviding a PDF printer on the central fileserver. X XAfter restarting CUPS, you will be able to choose X"Virtual Printer (PDF Printer)" when setting up a new printer in CUPS. X XOnce you print to the new device all converted PDF files will be placed in Xthe specified directory. X XWWW: http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/ END-of-cups-pdf/pkg-descr exit --- cups-pdf-1.4.2a.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040615074941.31887.qmail>