All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Michael Sweet <mike@easysw.com>
Cc: printing-architecture@lists.freestandards.org,
	Dan Kohn <dan@dankohn.com>, Ian Murdock <imurdock@imurdock.com>,
	lsb-discuss <lsb-discuss@lists.freestandards.org>
Subject: Re: [Printing-architecture] FHS extension and CUPS
Date: Tue, 23 Jan 2007 17:54:58 +0000	[thread overview]
Message-ID: <45B64BF2.5000002@gmail.com> (raw)
In-Reply-To: <45B12967.1000504@easysw.com>

I have investigated somewhat more and my recommendations are to do the 
following in the distros:

1. Create directories

mkdir -p /usr/share/ppd (not needed in Ubuntu)
mkdir -p /opt/share/ppd
mkdir -p /usr/local/share/ppd

mkdir -p /usr/lib/printdriver
mkdir -p /opt/lib/printdriver
mkdir -p /usr/local/lib/printdriver

2, Set symlinks for CUPS to find the PPDs:

Ubuntu:

ln -s /usr/local/share/ppd /usr/share/ppd/1-local-admin
ln -s /opt/share/ppd /usr/share/ppd/2-third-party

Other distributions:

ln -s /usr/local/share/ppd /usr/share/cups/model/1-local-admin
ln -s /opt/share/ppd /usr/share/cups/model/2-third-party
ln -s /usr/share/ppd /usr/share/cups/model/3-distribution

These serves for CUPS finding the PPDs in the standardized directories. 
The numbers in the link names make the PPDs being listed in the right 
order, so that when the printer setup tool marks te first suitable PPD 
by default, the precedence rules are fulfilled.

The PPDs must contain absolute paths to the driver binaries. so that 
they get found.

    Till


Michael Sweet wrote:
> Ian Murdock wrote:
>> I'm appending a conversation I had with Tim Waugh of Red Hat about this
>> (posted with his permission). In short, unless it's a very trivial change
>> to make the current RHEL 5, SLE 10, etc. compliant with the printer 
>> driver
>> standard, it is not reasonable to expect this to be in LSB 3.2 (it was
>> my understanding that it would be trivial, as you'll read in the included
>> exchange). It should go without saying that it's not reasonable
>> to expect them to uplift to something that hasn't even been released yet.
>>
>> In short, the only way this will make it into LSB 3.2 is if it's trivial
>> to implement, i.e., a change to the CUPS configuration or the creation of
>> symlinks. If it takes more than that, this will have to wait for LSB 4.0.
>  > ...
> 
> OK, for PPD "paths", I would recommend simply making symlinks in
> /usr/share/cups/model so that CUPS can find the PPD files.  That
> works with current CUPS and all the way back to the 1.0 release.
> 
> Another method would be to provide a separate CUPS driver interface
> program that scans the FHS PPD directories, but IMHO that is
> overkill and completely unnecessary.
> 
> FWIW, I *do not* support the notion of a "relative" PPD name that is
> then looked up in a specific order of directories.  That is, adding
> a printer using a PPD file called "foo.ppd" should always use the
> same PPD file - otherwise you can run into a lot of issues ranging
> from simple confusion to security problems.  The separate system/
> local/vendor directories do not prevent a user/administrator from
> choosing a locally-modified PPD, and part of those modifications can
> be to the NickName so that the local users realize that the modified
> PPD is the one they want, e.g. "HP LaserJet 4000 - Use This One".
> 
> Similarly, LSB printer drivers should specify their install
> path in the cupsFilter attribute unless they are using a
> standard CUPS-supplied driver, currently rastertoescpx,
> rastertoepson, rastertohp, rastertolabel, or rastertopclx.
> 


  reply	other threads:[~2007-01-23 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19 18:56 [Printing-architecture] FHS extension and CUPS Till Kamppeter
2007-01-19 19:31 ` Ian Murdock
2007-01-19 19:52   ` Till Kamppeter
2007-01-19 20:26   ` Michael Sweet
2007-01-23 17:54     ` Till Kamppeter [this message]
2007-01-19 20:06 ` Michael Sweet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B64BF2.5000002@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=dan@dankohn.com \
    --cc=imurdock@imurdock.com \
    --cc=lsb-discuss@lists.freestandards.org \
    --cc=mike@easysw.com \
    --cc=printing-architecture@lists.freestandards.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.