Re: disable lpr

2012-01-03 Thread Matthew Dillon

: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 
dil...@backplane.com


disable lpr

2012-01-02 Thread Pierre Abbat
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


Re: disable lpr

2012-01-02 Thread Peter Avalos
On Mon, Jan 02, 2012 at 07:08:20PM -0500, Pierre Abbat wrote:
 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.
 

Throw NO_LPR=true in /etc/make.conf.


pgpoL0gunIXqG.pgp
Description: PGP signature


Re: disable lpr

2012-01-02 Thread Pierre Abbat
On Monday 02 January 2012 19:16:03 Peter Avalos wrote:
 On Mon, Jan 02, 2012 at 07:08:20PM -0500, Pierre Abbat wrote:
  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.

 Throw NO_LPR=true in /etc/make.conf.

That's not where I disabled sendmail (I don't have /etc/make.conf, and the 
line in /etc/defaults/make.conf is commented out). Where else could I have 
disabled it?

Pierre

-- 
Jews use a lunisolar calendar; Muslims use a solely lunar calendar.


Re: disable lpr

2012-01-02 Thread Peter Avalos
On Mon, Jan 02, 2012 at 07:30:17PM -0500, Pierre Abbat wrote:
  Throw NO_LPR=true in /etc/make.conf.
 
 That's not where I disabled sendmail (I don't have /etc/make.conf, and the 
 line in /etc/defaults/make.conf is commented out). Where else could I have 
 disabled it?
 

Perhaps for sendmail you're thinking about mailer.conf (I'm not very
good at mind reading), but that won't help you with your original
question.

--Peter


pgpGQ9NIIuMfD.pgp
Description: PGP signature


Re: disable lpr

2012-01-02 Thread Pierre Abbat
On Monday 02 January 2012 19:36:36 Peter Avalos wrote:
 Perhaps for sendmail you're thinking about mailer.conf (I'm not very
 good at mind reading), but that won't help you with your original
 question.

Yes it is mailer.conf. I get this error in the daily run output:
Removing stale entries from sendmail host status cache:
purgestat: fatal: Recipient addresses must be specified on the command line or 
via the -t option
Postfix doesn't have hoststat or purgestat. How do I get rid of this error?

Are there any gotchas currently in the kernel or world? The last time I built 
them was August 21.

Pierre
-- 
I believe in Yellow when I'm in Sweden and in Black when I'm in Wales.