DragonFly BSD
DragonFly users List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: disable lpr


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 3 Jan 2012 22:53:05 -0800 (PST)

:I installed cups, which has its own lpr program, and deleted the lpr that is 
:in world. If I rebuild world, how do I tell it not to install lpr? I know I 
:did this for sendmail, but I forgot where the configuration is.
:
:Pierre
:-- 
:lo ponse be lo mruli po'o cu ga'ezga roda lo ka dinko

    I'm running cups on my workstation too, talking to a Canon printer.

    Instead of disabling lpr I just reworked the PATH environment variable
    to put /usr/pkg/bin before /usr/bin.

    Another trick I use if the above is too sneaky is to put /usr/local/bin
    first in the PATH and create a script called lpr to exec the the one
    from /usr/pkg/bin.

    --

    If we really wanted to make things easy we could make /usr/bin/lpr
    recognize an environment variable to tell it to forward to another
    lpr (aka /usr/pkg/bin/lpr).. though we'd have to be careful since
    /usr/bin/lpr is suid and sgid.  Maybe a simple 'LPR_USE_PKGSRC'
    env variable that could be set to '1'.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]