using cupsd instead of base lpr [was Re: [HEADS UP] Kernel
modules don't work properly in FreeBSD 8.1-RC1 (solved)]
Tom Evans
tevans.uk at googlemail.com
Thu Jun 24 09:32:57 UTC 2010
On Thu, Jun 24, 2010 at 10:21 AM, Andrew Reilly <areilly at bigpond.net.au> wrote:
> On Thu, Jun 24, 2010 at 09:23:37AM +0200, Gary Jennejohn wrote:
>> in /etc/src.conf - WITHOUT_LPR=yes
>>
>> and these symbolic links in /usr/bin
>> lrwxr-xr-x 1 root wheel 17 Mar 18 2009 /usr/bin/lp -> /usr/local/bin/lp
>> lrwxr-xr-x 1 root wheel 24 Mar 18 2009 /usr/bin/lpoptions -> /usr/local/bin/lpoptions
>> lrwxr-xr-x 1 root wheel 18 Mar 18 2009 /usr/bin/lpq -> /usr/local/bin/lpq
>> lrwxr-xr-x 1 root wheel 18 Mar 18 2009 /usr/bin/lpr -> /usr/local/bin/lpr
>> lrwxr-xr-x 1 root wheel 19 Mar 18 2009 /usr/bin/lprm -> /usr/local/bin/lprm
>> lrwxr-xr-x 1 root wheel 21 Mar 18 2009 /usr/bin/lpstat -> /usr/local/bin/lpstat
>>
>> and /usr/bin is _before_ /usr/local/bin in my PATH.
>
> Since you have /usr/local/bin in your path, why bother with
> the symlinks at all? Your shell will find them in their new
> locations just fine. You'll want to remove the old ones from
> /usr/bin, but make delete-old will probably do that nicely
> anyway.
>
> Cheers,
>
> --
> Andrew
make delete-old removes old deprecated files, not files that weren't
built because of src.conf options. It definitely will not remove the
lpr binaries from /usr/bin if they exist there.
There already is a proper solution for this: if you want to have LPR
from CUPS, and don't want to use LPR from base, then you set these
settings in make.conf:
CUPS_OVERWRITE_BASE=yes
WITHOUT_LPR=yes
With these, lpr in base will not be built, and print/cups-base will
deactivate any base system lpr binaries that are installed. It's
documented in the FreeBSD CUPS article here:
http://www.freebsd.org/doc/en/articles/cups/article.html#PRINTING-CUPS-PORTS-KNOBS
Cheers
Tom
More information about the freebsd-current
mailing list