From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 24 08:40:02 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A65C21065686; Thu, 24 Jun 2010 08:40:02 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id F3EBB8FC17; Thu, 24 Jun 2010 08:40:01 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id l26so1410655fgb.13 for ; Thu, 24 Jun 2010 01:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rI+CN0Xvf0lLktdVKBc1hEm21c0Gd2+laUl3GG2tf9M=; b=mX49cMipIqU+uBQQj3CY7k/nzzlUJsRH+9gJ01/m5tXOqNH3ITEqroF0xU05vEH3SN +XyS2bQjAtCwDc9STYYJLT8+yPd0jgCBRxpuAMGvrnmCnRhG5n+Qn4gEQ+xzNfPuNLt8 cARCwFtmJ05MvT6quUTC4Xr6okEvA/dqeV67o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OJSQRCJ7VOh8iDSa0JDfrWnR7yXrlAqtFOexgh2pBgfApdYx3iHNROjntHNt+MiMGp WFHTDjxViG+eMrHJO3giOhEaUGTmhhPPieWzmIpxap9wkphsk8AiDVKzdvjB7LLnvKOn AgWqYPdFk6fHZxyL0wvRoTl2o2kA5SAXwKUsw= MIME-Version: 1.0 Received: by 10.239.192.74 with SMTP id d10mr685595hbi.74.1277368800631; Thu, 24 Jun 2010 01:40:00 -0700 (PDT) Received: by 10.239.185.1 with HTTP; Thu, 24 Jun 2010 01:40:00 -0700 (PDT) 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> <20100623154531.GB31578@zod.isi.edu> <20100624011509.GI31578@zod.isi.edu> <20100624092337.6bed1f45@ernst.jennejohn.org> Date: Thu, 24 Jun 2010 09:40:00 +0100 Message-ID: From: Tom Evans To: gljennjohn@googlemail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 08:40:02 -0000 On Thu, Jun 24, 2010 at 8:23 AM, Gary Jennejohn wrote: > On Wed, 23 Jun 2010 18:15:09 -0700 > Ted Faber 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