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 08:40:02 UTC 2010


On Thu, Jun 24, 2010 at 8:23 AM, Gary Jennejohn
<gljennjohn at googlemail.com> wrote:
> On Wed, 23 Jun 2010 18:15:09 -0700
> Ted Faber <faber at isi.edu> wrote:
>
>> (/usr/local/bin/ preceeds /usr/bin in my path so I can use the lpr
>> commands from cupsd, though it's evidently a bit of a dangerous idea.)
>>
> [trimmed Cc]
>
> I use cupsd and have these settings to get around using the base system
> lp stuff:
>
> 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.
>
>  ---
> Gary Jennejohn

I also have this in make.conf:
CUPS_OVERWRITE_BASE=yes
WITHOUT_LPR=yes

which print/cups-base uses to do make any lpr related binaries in
/usr/bin non-executable, so they are skipped over and the cups
specific ones in /usr/loca/bin are used instead. WITHOUT_LPR just
stops LPR being built by buildworld.

Cheers

Tom


More information about the freebsd-current mailing list