summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2009-11-21 16:07:32 +0100
committersibel <lesibel@free.fr>2009-11-21 16:07:32 +0100
commit82ddce3ca1fb63bcd3f2ea5599f43cd96a81a405 (patch)
tree6714a3b75e765067b0edd7d787de45974a71f497 /extra
parenta7cfd481f564facd6e9e1c7d6bf6915e0be0ebd3 (diff)
downloadnutyx-extra-82ddce3ca1fb63bcd3f2ea5599f43cd96a81a405.tar.gz
nutyx-extra-82ddce3ca1fb63bcd3f2ea5599f43cd96a81a405.tar.bz2
nutyx-extra-82ddce3ca1fb63bcd3f2ea5599f43cd96a81a405.tar.xz
nutyx-extra-82ddce3ca1fb63bcd3f2ea5599f43cd96a81a405.zip
Ajout de cups-pdf#2.5.0-1
Diffstat (limited to 'extra')
-rw-r--r--extra/cups-pdf/.footprint12
-rw-r--r--extra/cups-pdf/.md5sum1
-rwxr-xr-xextra/cups-pdf/Pkgfile30
-rw-r--r--extra/cups-pdf/cups-pdf.install20
4 files changed, 63 insertions, 0 deletions
diff --git a/extra/cups-pdf/.footprint b/extra/cups-pdf/.footprint
new file mode 100644
index 000000000..7ecd5e224
--- /dev/null
+++ b/extra/cups-pdf/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/cups/
+-rw-r--r-- root/root etc/cups/cups-pdf.conf
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/cups/
+drwxr-xr-x root/root usr/lib/cups/backend/
+-rwx------ root/root usr/lib/cups/backend/cups-pdf
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/cups/
+drwxr-xr-x root/root usr/share/cups/model/
+-rw-r--r-- root/root usr/share/cups/model/CUPS-PDF.ppd
diff --git a/extra/cups-pdf/.md5sum b/extra/cups-pdf/.md5sum
new file mode 100644
index 000000000..07191c3e7
--- /dev/null
+++ b/extra/cups-pdf/.md5sum
@@ -0,0 +1 @@
+9194af099a8c0e9aa213505b29ec6818 cups-pdf_2.5.0.tar.gz
diff --git a/extra/cups-pdf/Pkgfile b/extra/cups-pdf/Pkgfile
new file mode 100755
index 000000000..3c131f09f
--- /dev/null
+++ b/extra/cups-pdf/Pkgfile
@@ -0,0 +1,30 @@
+# Description: Common UNIX Printing System, le système d'impression pour Linux
+# URL: http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf
+# Maintainer: NuTyX core team
+# Packager: lesibel at free dot fr
+# Depends on: cups, ghostscript
+
+name=cups-pdf
+version=2.5.0
+release=1
+
+install=cups-pdf.install
+
+source=(http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/cups-pdf_$version.tar.gz)
+
+
+build() {
+ # Build and install
+ cd $name-$version/src
+ [ -z "$CC" ] && CC=gcc
+ $CC $CFLAGS -Wall -o cups-pdf cups-pdf.c
+ install -D -m700 cups-pdf $PKG/usr/lib/cups/backend/cups-pdf
+
+ # Install Postscript Color printer
+ cd ../extra
+ install -D -m644 CUPS-PDF.ppd $PKG/usr/share/cups/model/CUPS-PDF.ppd
+
+ # Install config file
+ install -D -m644 cups-pdf.conf $PKG/etc/cups/cups-pdf.conf
+
+}
diff --git a/extra/cups-pdf/cups-pdf.install b/extra/cups-pdf/cups-pdf.install
new file mode 100644
index 000000000..0ef82189a
--- /dev/null
+++ b/extra/cups-pdf/cups-pdf.install
@@ -0,0 +1,20 @@
+post_install() {
+ cat << "EOF"
+-------------------------------------------------
+To use cups-pdf, restart cups and visit the cups
+web interface at http://localhost:631/
+
+You can now add a "Virtual Printer (PDF Printer)"
+and use the Postscript/Generic postscript color
+printer driver.
+
+Note that cups-pdf has a configuration
+file in /etc/cups. The default location for
+pdf output is /var/spool/cups-pdf/$username.
+-------------------------------------------------
+EOF
+}
+
+op=$1
+shift
+$op $*