Package: linuxprinting.org-ppds
Version: 20060408-1
Tags: patch

linuxprinting.org-ppds should only contain PostScript PPDs.
Currently there are manufacturer provided non-PostScript PPDs in this package (e.g. PXL PPDs under Ricoh, Savin, NRG, ...) which belong in package foomatic-filters-ppds. These can easily be deleted by looking for PPDs which have "FoomaticRIPCommandLine" inside.
A patch is provided in attachment.

Regards,
Pascal De Vuyst
--- debian/rules.orig	2006-04-15 15:03:47.000000000 +0200
+++ debian/rules	2006-04-15 15:06:05.000000000 +0200
@@ -74,6 +74,10 @@
 
 	# And move them all into linuxprinting.org-ppds
 	mv $(CURDIR)/debian/foomatic-db/usr/share/ppd $(CURDIR)/debian/linuxprinting.org-ppds/usr/share
+
+	# Delete non-PostScript PPDs
+	(cd $(CURDIR)/debian/linuxprinting.org-ppds/usr/share/ppd/postscript; mfrs=`echo *`; for mfr in $$mfrs; do cd $(CURDIR)/debian/linuxprinting.org-ppds/usr/share/ppd/postscript/$$mfr; zgrep -l 'FoomaticRIPCommandLine' * >> nonps; rm -f `cat nonps`; rm nonps; done)
+
 	# And remove them from foomatic-db
 	rm -rf $(CURDIR)/debian/foomatic-db/usr/share/foomatic/db/source/PPD
 

Reply via email to