[Foo2zjs-commits] r257 - trunk/foo2zjs_20100728dfsg/debian

Luca Capello gismo at alioth.debian.org
Fri Feb 18 14:24:55 UTC 2011


Author: gismo
Date: 2011-02-18 14:24:52 +0000 (Fri, 18 Feb 2011)
New Revision: 257

Modified:
   trunk/foo2zjs_20100728dfsg/debian/changelog
   trunk/foo2zjs_20100728dfsg/debian/rules
Log:
debian/rules: add *cupsFilter line for PDF input to the PPDs

Modified: trunk/foo2zjs_20100728dfsg/debian/changelog
===================================================================
--- trunk/foo2zjs_20100728dfsg/debian/changelog	2011-02-16 23:15:50 UTC (rev 256)
+++ trunk/foo2zjs_20100728dfsg/debian/changelog	2011-02-18 14:24:52 UTC (rev 257)
@@ -30,6 +30,7 @@
     + Install ICM files into the directories of the correct drivers.
   * debian/rules:
     + Add "CUPS_SERVERBIN=..." to the "make install" command line.
+    + Add "*cupsFilter" line to accept PDF input data to the PPDs.
     + Add useful comments.
     + Correct upstream link to the CUPS filter.
     + Install additional PPDs and compress them.

Modified: trunk/foo2zjs_20100728dfsg/debian/rules
===================================================================
--- trunk/foo2zjs_20100728dfsg/debian/rules	2011-02-16 23:15:50 UTC (rev 256)
+++ trunk/foo2zjs_20100728dfsg/debian/rules	2011-02-18 14:24:52 UTC (rev 257)
@@ -67,9 +67,14 @@
 	install -m 755 getweb $(CURDIR)/debian/foo2zjs/usr/bin/getweb
 	# Correct link
 	dh_link /usr/bin/command2foo2lava-pjl /usr/lib/cups/filter/command2foo2lava-pjl
-	# Install PPD files for additional printers and compress them
+	# Install PPD files for additional printers
 	install -D -m 644 debian/local/*.ppd $(CURDIR)/debian/foo2zjs/usr/share/ppd/foo2zjs/
-	gzip -9 $(CURDIR)/debian/foo2zjs/usr/share/ppd/foo2zjs/*.ppd
+	# Add "*cupsFilter" line to accept PDF input data to the PPDs and compress them
+	( cd $(CURDIR)/debian/foo2zjs/usr/share/ppd/foo2zjs; \
+	  find -name '*.ppd.gz' | xargs gunzip; \
+	  find -name '*.ppd' | xargs perl -p -i -e 's,^\*cupsFilter:\s*\"application/vnd.cups-postscript\s+0\s+foomatic-rip\",*cupsFilter: "application/vnd.cups-postscript 100 foomatic-rip"\n*cupsFilter: "application/vnd.cups-pdf 0 foomatic-rip",'; \
+	  find -name '*.ppd' | xargs gzip -9 \
+	)
 
 # Build architecture-independent files here.
 binary-indep: build install




More information about the Foo2zjs-commits mailing list