diff options
author | roy <roy@pkgsrc.org> | 2011-11-01 13:50:04 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2011-11-01 13:50:04 +0000 |
commit | 092f6e7e1a033c32e59d4c75315fe7691872ce29 (patch) | |
tree | 852d035a0bbebfe88fbd3c61442c8c8a7f096120 /print | |
parent | 7fa3afb95f089da9241e3a1aab1d39aed6d0bf3f (diff) | |
download | pkgsrc-092f6e7e1a033c32e59d4c75315fe7691872ce29.tar.gz |
import cups-pdf
CUPS-PDF is a PDF writer backend for CUPS.
It is designed to produce PDF files in a heterogeneous network by providing a
PDF printer on the central fileserver. It will convert files printed to its
queue in CUPS to PDF and put them in a per-user-based directory structure.
It can execute post-processing scripts, e.g. to allow mailing the results
to the user.
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 3 | ||||
-rw-r--r-- | print/cups-pdf/DESCR | 7 | ||||
-rw-r--r-- | print/cups-pdf/Makefile | 55 | ||||
-rw-r--r-- | print/cups-pdf/PLIST | 7 | ||||
-rw-r--r-- | print/cups-pdf/distinfo | 5 |
5 files changed, 76 insertions, 1 deletions
diff --git a/print/Makefile b/print/Makefile index c9e7ffc599e..c019cd9bc36 100644 --- a/print/Makefile +++ b/print/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.511 2011/10/29 14:32:43 ryoon Exp $ +# $NetBSD: Makefile,v 1.512 2011/11/01 13:50:04 roy Exp $ # COMMENT= Desktop publishing @@ -26,6 +26,7 @@ SUBDIR+= cjkutils SUBDIR+= cnprint SUBDIR+= cups SUBDIR+= cups-drivers-Magicolor5440DL +SUBDIR+= cups-pdf SUBDIR+= diffpdf SUBDIR+= dvidvi SUBDIR+= dviljk diff --git a/print/cups-pdf/DESCR b/print/cups-pdf/DESCR new file mode 100644 index 00000000000..2df3ec0b021 --- /dev/null +++ b/print/cups-pdf/DESCR @@ -0,0 +1,7 @@ +CUPS-PDF is a PDF writer backend for CUPS. + +It is designed to produce PDF files in a heterogeneous network by providing a +PDF printer on the central fileserver. It will convert files printed to its +queue in CUPS to PDF and put them in a per-user-based directory structure. +It can execute post-processing scripts, e.g. to allow mailing the results +to the user. diff --git a/print/cups-pdf/Makefile b/print/cups-pdf/Makefile new file mode 100644 index 00000000000..03e6683afa8 --- /dev/null +++ b/print/cups-pdf/Makefile @@ -0,0 +1,55 @@ +# $NetBSD: Makefile,v 1.1 2011/11/01 13:50:04 roy Exp $ + +COMMENT= PDF backend for CUPS + +DISTNAME= cups-pdf-2.6.1 +CATEGORIES= print + +HOMEPAGE= http://www.cups-pdf.de/ +MASTER_SITES= ${HOMEPAGE}src/ +DISTFILES= ${DISTNAME:S/pdf-/pdf_/}.tar.gz +LICENSE= gnu-gpl-v2 +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= cups:../../print/cups + +REPLACE_PERL+= contrib/cups-pdf-dispatch-0.1/cups-pdf-dispatch + +SUBST_CLASSES+= fix-paths +SUBST_STAGE.fix-paths= pre-configure +SUBST_MESSAGE.fix-paths=Fixing absolute paths +SUBST_FILES.fix-paths= src/cups-pdf.h extra/cups-pdf.conf +SUBST_SED.fix-paths= -e 's,CPCONFIG "/etc/,CPCONFIG "${PREFIX}/etc/,' +SUBST_SED.fix-paths+= -e 's,"/usr/bin/gs","${PREFIX}/bin/gs",' +SUBST_SED.fix-paths+= -e 's,\#GhostScript /usr/bin/gs,GhostScript ${PREFIX}/bin/gs,' + +CONF_FILES+= ${PREFIX}/share/examples/cups/cups-pdf.conf \ + ${PKG_SYSCONFDIR}/cups/cups-pdf.conf + +INSTALLATION_DIRS+= ${PREFIX}/bin \ + ${PREFIX}/libexec/cups/backend \ + ${PREFIX}/share/cups/model \ + ${PREFIX}/share/examples/cups + +do-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -o src/cups-pdf src/cups-pdf.c + +#pre-install: +# ${SUBST_CMD} ${WRKBUILD}/extra/cups-pdf.conf + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/cups-pdf \ + ${DESTDIR}${PREFIX}/libexec/cups/backend/cups-pdf + ${INSTALL_SCRIPT} ${WRKSRC}/contrib/cups-pdf-dispatch-0.1/cups-pdf-dispatch \ + ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/extra/CUPS-PDF.ppd \ + ${DESTDIR}${PREFIX}/share/cups/model/ + ${INSTALL_DATA} ${WRKSRC}/extra/cups-pdf.conf \ + ${DESTDIR}${PREFIX}/share/examples/cups/ + ${INSTALL_DATA} ${WRKSRC}/contrib/cups-pdf-dispatch-0.1/cups-pdf-dispatch.conf \ + ${DESTDIR}${PREFIX}/share/examples/cups/ + ${INSTALL_DATA} ${WRKSRC}/contrib/cups-pdf-dispatch-0.1/examples/cups-pdf-dispatch-ldap.conf \ + ${DESTDIR}${PREFIX}/share/examples/cups/ + +.include "../../mk/bsd.pkg.mk" diff --git a/print/cups-pdf/PLIST b/print/cups-pdf/PLIST new file mode 100644 index 00000000000..b8c2b191dd6 --- /dev/null +++ b/print/cups-pdf/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 2011/11/01 13:50:04 roy Exp $ +bin/cups-pdf-dispatch +libexec/cups/backend/cups-pdf +share/cups/model/CUPS-PDF.ppd +share/examples/cups/cups-pdf-dispatch-ldap.conf +share/examples/cups/cups-pdf-dispatch.conf +share/examples/cups/cups-pdf.conf diff --git a/print/cups-pdf/distinfo b/print/cups-pdf/distinfo new file mode 100644 index 00000000000..d0d05c4aaf7 --- /dev/null +++ b/print/cups-pdf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2011/11/01 13:50:04 roy Exp $ + +SHA1 (cups-pdf_2.6.1.tar.gz) = 6806f0004dfed5216625ab60cfe307ded23c2f6a +RMD160 (cups-pdf_2.6.1.tar.gz) = ebb7ed5192ff91201e2ef9d87d8f24c1c7a393cc +Size (cups-pdf_2.6.1.tar.gz) = 33315 bytes |