Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 09:40:00 +0100
From:      Tom Evans <tevans.uk@googlemail.com>
To:        gljennjohn@googlemail.com
Cc:        freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: using cupsd instead of base lpr [was Re: [HEADS UP] Kernel  modules don't work properly in FreeBSD 8.1-RC1 (solved)]
Message-ID:  <AANLkTilFnJpwlQiB7PQjY-5qoeAKEqBoz-RYD4TtqGsm@mail.gmail.com>
In-Reply-To: <20100624092337.6bed1f45@ernst.jennejohn.org>
References:  <201006230238.06831.hselasky@c2i.net> <4C21AE18.4050400@icyb.net.ua> <201006230852.26536.hselasky@c2i.net> <4C21B170.2030903@icyb.net.ua> <4C21B383.2000602@icyb.net.ua> <AANLkTilZfLDUKzMe-B9kqWCnr1trjvPUoLrqFaVbK78R@mail.gmail.com> <20100623154531.GB31578@zod.isi.edu> <20100624011509.GI31578@zod.isi.edu> <20100624092337.6bed1f45@ernst.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 24, 2010 at 8:23 AM, Gary Jennejohn
<gljennjohn@googlemail.com> wrote:
> On Wed, 23 Jun 2010 18:15:09 -0700
> Ted Faber <faber@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=3Dyes
>
> and these symbolic links in /usr/bin
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A017 Mar 18 =C2=A02=
009 /usr/bin/lp -> /usr/local/bin/lp
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A024 Mar 18 =C2=A02=
009 /usr/bin/lpoptions -> /usr/local/bin/lpoptions
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A018 Mar 18 =C2=A02=
009 /usr/bin/lpq -> /usr/local/bin/lpq
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A018 Mar 18 =C2=A02=
009 /usr/bin/lpr -> /usr/local/bin/lpr
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A019 Mar 18 =C2=A02=
009 /usr/bin/lprm -> /usr/local/bin/lprm
> lrwxr-xr-x =C2=A01 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A021 Mar 18 =C2=A02=
009 /usr/bin/lpstat -> /usr/local/bin/lpstat
>
> and /usr/bin is _before_ /usr/local/bin in my PATH.
>
> =C2=A0---
> Gary Jennejohn

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilFnJpwlQiB7PQjY-5qoeAKEqBoz-RYD4TtqGsm>