diff options
author | Sebastien Ballet <phenixi@aliceadsl.fr> | 2010-05-11 22:55:06 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:55:06 +0200 |
commit | 94b0c45351adbeadd332d7e2108fe1bb3cc65eb8 (patch) | |
tree | 75180c6ea4f704a33b5ce625c146674d9cae91b8 /office/cups-pdf | |
parent | a7b71748136541f11f947f596fbec6e458c063ee (diff) |
office/cups-pdf: Added to 12.1 repository
Diffstat (limited to 'office/cups-pdf')
-rw-r--r-- | office/cups-pdf/README | 4 | ||||
-rw-r--r-- | office/cups-pdf/README.SBo | 102 | ||||
-rw-r--r-- | office/cups-pdf/cups-pdf.SlackBuild | 52 | ||||
-rw-r--r-- | office/cups-pdf/cups-pdf.info | 8 | ||||
-rw-r--r-- | office/cups-pdf/slack-desc | 19 |
5 files changed, 185 insertions, 0 deletions
diff --git a/office/cups-pdf/README b/office/cups-pdf/README new file mode 100644 index 000000000000..773eae8a314f --- /dev/null +++ b/office/cups-pdf/README @@ -0,0 +1,4 @@ +cups-pdf is designed to produce PDF files by providing a PDF +printer. + +See README.SBo for setup information. diff --git a/office/cups-pdf/README.SBo b/office/cups-pdf/README.SBo new file mode 100644 index 000000000000..22ff32d60f0a --- /dev/null +++ b/office/cups-pdf/README.SBo @@ -0,0 +1,102 @@ +Welcome to CUPS-PDF v2 + + CONTENTS: + + 1. building CUPS-PDF + 2. setting up the PDF queue with CUPS + 3. note for MacOSX + 4. contact + + +1. building CUPS-PDF +-------------------- + + Edit src/cups-pdf.h if you do not like /etc/cups/cups-pdf.conf as name + for the configuration file. + To compile CUPS-PDF, invoke gcc in the src/ directory: + + gcc -O9 -s -o cups-pdf cups-pdf.c + + To install the binary, simply copy cups-pdf to the backend directory + of CUPS (usually /usr/lib/cups/backend). + + Now copy extra/cups-pdf.conf to /etc/cups (or whatever location you + selected in cups-pdf.h above). Here you can set all properties of + CUPS-PDF at runtime without the need for restarting any services. + (The defaults should work fine on most systems.) + + In case you want to use the color PostScript driver that comes with + CUPS-PDF go to the extra/ subdirectory and copy CUPS-PDF.ppd to your + CUPS model directory (usually /usr/share/cups/model [ /Generic ] ). + + +2. setting up the PDF queue with CUPS +------------------------------------- + + Important notes: + ================ + *CUPS-PDF requires root privileges since it has to modify file ownerships. + In recent distributions the "RunAsUser" option in cupsd.conf is set to + "Yes" which removes these privileges. Please make sure to set + "RunAsUser No" if you want to use CUPS-PDF. + *** Starting with version 1.2.0 CUPS implements the "RunAsOption" no + longer. In order to ensure CUPS-PDF is running with the required root + privileges you have to make 'root' the owner of the cups-pdf backend + and set the file permissions of the backend to 0700 (root only). + *make sure if any of CUPS-PDF's working directories (e.g. output) is a + NFS mounted volume it is mounted without root_squash! + *CUPS-PDF is known to fail if the gs (GhostScript) binary on a system is + compressed by upx (Ultimate Packer for eXecutables). + *if you are using SELinux make sure it does not interfere with CUPS-PDF + (you can disable SELinux for CUPS by "setsebool -P cupsd_disable_trans 1" + or have a look at contrib/SELinux-HOWTO to make it work) + + Now after restarting CUPS you will be able to choose "Virtual Printer (PDF + Printer)" when setting up a new printer in CUPS. + To set up a queue for other UNIX clients you should select Postscript as + vendor and the Color Printer as model for your new printer; queues that get + their input from samba or netatalk (i.e. Windows, OS/2 or MacOS) can be set + up as raw queues. On the Windows, OS/2 or MacOS system choose a color + postscript driver for that network printer (the drivers for Minolta Page + Works or HP DesignJet printers do a good job). + Hint: If you want to create grayscale PDFs you just have to choose a + grayscale printer driver, i.e. the postscript.ppd that comes with CUPS on + the Linux side or a b/w laser printer (e.g. a HP LaserJet) on the Windows + side. On the Linux side be aware that the postscript.ppd will not + re-process data that is already supplied in Postscript format, i.e. a color + Postscript will keep it's colors. + + Once you print to the new device the output directory selected in + cups-pdf.conf (defaults to /var/spool/cups-pdf) will be created and all + converted PDF files will be placed in subdirectories named after the owner + of the print job. In case the owner cannot be identified (i.e. does not + exist on the server) the output is placed in the directory for anonymous + operation (if not disabled in cups-pdf.conf - defaults to + /var/spool/cups-pdf/ANONYMOUS/). + Furthermore if logging is enabled the logfile will be placed by default in + /var/log/cups. + + The file "CUPS-PDF.ppd" is a modified version of the "Postscript.ppd.gz" + that comes with CUPS 1.1.15 that is able to handle color output. + + You should have a look at the contrib/ directory in this bundle which + contains several additions to CUPS-PDF which enhance functionality or + supports the setup of CUPS-PDF on different platforms. + + +3. note for MacOSX +------------------ + + Since MacOSX' AFPL GhostScript does not support the way of PDF generation + used by CUPS-PDF you will have to use pstopdf instead. For this the + settings of GhostScript, GSCall and PDFVer in cups-pdf.conf have to be + changed accordingly. The values are documented in cups-pdf.conf . + + +4. contact +---------- + + Volker Christian Behr + behr@physik.uni-wuerzburg.de + http://www.cups-pdf.de + diff --git a/office/cups-pdf/cups-pdf.SlackBuild b/office/cups-pdf/cups-pdf.SlackBuild new file mode 100644 index 000000000000..8ddcb08cd852 --- /dev/null +++ b/office/cups-pdf/cups-pdf.SlackBuild @@ -0,0 +1,52 @@ +#!/bin/sh + +# Slackware build script for cups-pdf +# Written by Sebastien Ballet (phenixi@aliceadsl.fr) +# Modified by SlackBuilds.org + +PRGNAM=cups-pdf +VERSION=2.4.8 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O9 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O9 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar -xvf $CWD/$PRGNAM'_'$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir -p $PKG/usr/lib/cups/backend +mkdir -p $PKG/etc/cups +mkdir -p $PKG/usr/share/cups/model +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION + +gcc $SLCKFLAGS -s -o $PKG/usr/lib/cups/backend/cups-pdf src/cups-pdf.c || exit 1 + +chmod 0700 $PKG/usr/lib/cups/backend/cups-pdf + +cp -a extra/cups-pdf.conf $PKG/etc/cups +cp -a extra/CUPS-PDF.ppd $PKG/usr/share/cups/model +cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/README.SBo > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/office/cups-pdf/cups-pdf.info b/office/cups-pdf/cups-pdf.info new file mode 100644 index 000000000000..2a2810609bec --- /dev/null +++ b/office/cups-pdf/cups-pdf.info @@ -0,0 +1,8 @@ +PRGNAM="cups-pdf" +VERSION="2.4.8" +HOMEPAGE="http://www.cups-pdf.de/" +DOWNLOAD="http://www.cups-pdf.de/src/cups-pdf_2.4.8.tar.gz" +MD5SUM="0d17dc5e094b366c8ad43cc27c7f82c9" +MAINTAINER="Sebastien Ballet" +EMAIL="phenixi@aliceadsl.fr" +APPROVED="dsomero" diff --git a/office/cups-pdf/slack-desc b/office/cups-pdf/slack-desc new file mode 100644 index 000000000000..4f02a0445466 --- /dev/null +++ b/office/cups-pdf/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +cups-pdf: cups-pdf (print to a PDF file) +cups-pdf: +cups-pdf: This software is designed to produce PDF files by providing a PDF +cups-pdf: printer. +cups-pdf: +cups-pdf: +cups-pdf: Homepage: http://www.cups-pdf.de/ +cups-pdf: +cups-pdf: +cups-pdf: +cups-pdf:
\ No newline at end of file |