[Pkg-cups-devel] r179 - cupsys/branches/cups-1.2-ubuntu/debian

Martin Pitt mpitt at costa.debian.org
Thu Apr 13 09:19:54 UTC 2006


Author: mpitt
Date: Thu Apr 13 09:19:53 2006
New Revision: 179

Modified:
   cupsys/branches/cups-1.2-ubuntu/debian/changelog
   cupsys/branches/cups-1.2-ubuntu/debian/cupsys.dirs
   cupsys/branches/cups-1.2-ubuntu/debian/rules
Log:
* Implement http://wiki.debian.org/PpdFileStructureSpecification:
   - debian/dirs: Create /usr/share/ppd/cups-included/.
   - debian/rules: Install shipped PPDs into
     /usr/share/ppd/cups-included/<Manufacturer>/ and provide a symlink to
     the old /usr/share/cups/model directory for backwards compatibility.



Modified: cupsys/branches/cups-1.2-ubuntu/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/changelog	(original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/changelog	Thu Apr 13 09:19:53 2006
@@ -27,8 +27,13 @@
     reenable it.
   * debian/patches/55_ppd_okidata_name.dpatch: Change "Oki" manufacturer name
     to "Okidata" to be consistent with other PPD files.
+  * Implement http://wiki.debian.org/PpdFileStructureSpecification:
+    - debian/dirs: Create /usr/share/ppd/cups-included/.
+    - debian/rules: Install shipped PPDs into
+      /usr/share/ppd/cups-included/<Manufacturer>/ and provide a symlink to
+      the old /usr/share/cups/model directory for backwards compatibility.
 
- -- Martin Pitt <martin.pitt at ubuntu.com>  Thu, 13 Apr 2006 11:03:48 +0200
+ -- Martin Pitt <martin.pitt at ubuntu.com>  Thu, 13 Apr 2006 11:13:13 +0200
 
 cupsys (1.1.99.rc2-1) UNRELEASED-experimental; urgency=low
 

Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys.dirs
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys.dirs	(original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys.dirs	Thu Apr 13 09:19:53 2006
@@ -4,3 +4,4 @@
 etc/cups/cups.d
 usr/lib/cups/backend-available
 var/cache/cups/ppd
+usr/share/ppd/cups-included

Modified: cupsys/branches/cups-1.2-ubuntu/debian/rules
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/rules	(original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/rules	Thu Apr 13 09:19:53 2006
@@ -58,6 +58,17 @@
 	install -o root -g root -m 644 debian/cupsys.default debian/cupsys/etc/default/cupsys
 	install -m 755 debian/local/browsing_status debian/local/enable_browsing $(DEB_DESTDIR)/../cupsys/usr/share/cups
 
+	# Install PPDs into /usr/share/ppd/cups-included/<Manufacturer>, see
+	# http://wiki.debian.org/PpdFileStructureSpecification
+	for i in $(DEB_DESTDIR)/../cupsys/usr/share/cups/model/*.ppd; do \
+	  m=$$(sed -n -e '/^\*Manufacturer:/s/.*"\([^"]*\)".*/\1/p' $$i); \
+	  mkdir -p "$(DEB_DESTDIR)/../cupsys/usr/share/ppd/cups-included/$$m"; \
+	  mv $$i "$(DEB_DESTDIR)/../cupsys/usr/share/ppd/cups-included/$$m/"; \
+	done
+
+	# Compatibility for programs which still look in the old location
+	ln -s ../../ppd/cups-included $(DEB_DESTDIR)/../cupsys/usr/share/cups/model/cups-included
+
 binary-post-install/libcupsimage2-dev::
 	rm -r debian/libcupsimage2-dev/usr/share/doc/libcupsimage2-dev
 	ln -s libcupsimage2 debian/libcupsimage2-dev/usr/share/doc/libcupsimage2-dev



More information about the Pkg-cups-devel mailing list