From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 24 15:46:24 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 E4724106566B for ; Thu, 24 Jun 2010 15:46:23 +0000 (UTC) (envelope-from roam@ringlet.net) Received: from praag.hoster.bg (praag.hoster.bg [77.77.142.10]) by mx1.freebsd.org (Postfix) with ESMTP id 552608FC08 for ; Thu, 24 Jun 2010 15:46:22 +0000 (UTC) Received: from middenheim.hoster.bg (middenheim.hoster.bg [77.77.142.11]) by praag.hoster.bg (Postfix) with ESMTP id 51F428CA5F for ; Thu, 24 Jun 2010 18:46:20 +0300 (EEST) Received: from straylight.ringlet.net (office.hoster.bg [78.90.131.77]) (Authenticated sender: roam@hoster.bg) by mail.hoster.bg (Postfix) with ESMTP id 2F4855C53A for ; Thu, 24 Jun 2010 18:46:17 +0300 (EEST) Received: from roam (uid 1000) (envelope-from roam@ringlet.net) id 41600c by straylight.ringlet.net (DragonFly Mail Agent) Thu, 24 Jun 2010 18:46:10 +0300 Date: Thu, 24 Jun 2010 18:46:10 +0300 From: Peter Pentchev To: Dag-Erling =?utf-8?B?U23DuHJncmF2?= Message-ID: <20100624154610.GC18189@straylight.ringlet.net> Mail-Followup-To: Dag-Erling =?utf-8?B?U23DuHJncmF2?= , Ed Schouten , freebsd-hackers@freebsd.org, Mike Meyer , Andrew Reilly , freebsd-current@freebsd.org References: <4C21B383.2000602@icyb.net.ua> <20100623154531.GB31578@zod.isi.edu> <20100624011509.GI31578@zod.isi.edu> <20100624092337.6bed1f45@ernst.jennejohn.org> <20100624092148.GA6948@duncan.reilly.home> <20100624132154.GT2179@hoeg.nl> <20100624094408.68d13c41@bhuda.mired.org> <20100624134550.GU2179@hoeg.nl> <86pqzg8rfb.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XMCwj5IQnwKtuyBG" Content-Disposition: inline In-Reply-To: <86pqzg8rfb.fsf@ds4.des.no> User-Agent: Mutt/1.5.20 (2009-06-14) X-MailScanner-ID: 2F4855C53A.7E2A1 X-hoster-MailScanner: Found to be clean X-hoster-MailScanner-SpamCheck: not spam, SpamAssassin (cached, score=0.001, required 10, autolearn=disabled, UNPARSEABLE_RELAY 0.00) X-hoster-MailScanner-From: roam@ringlet.net X-hoster-MailScanner-To: freebsd-hackers@freebsd.org X-Spam-Status: No Cc: Ed Schouten , Mike Meyer , freebsd-current@freebsd.org, Andrew Reilly , freebsd-hackers@freebsd.org Subject: Re: using cupsd instead of base lpr 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 15:46:24 -0000 --XMCwj5IQnwKtuyBG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 24, 2010 at 03:56:56PM +0200, Dag-Erling Sm=C3=B8rgrav wrote: > Ed Schouten writes: > > In my opinion, we should just rename mailwrapper to whateverwrapper > > and list the lpr programs in there as well. >=20 > Take a look at /etc/alternatives in any Debian-based Linux distro... Yeah, that's actually something I've long wondered about implementing; shouldn't be too hard, really. Never found the tuits, though :) For those who don't know what the idea is: /usr/bin/ftp is a symlink to /etc/alternatives/ftp, which in its turn is a symlink to /usr/bin/tnftp. The /etc/alternatives/ links are maintained by the update-alternatives utility which knows about priorities, defaults, slave symlinks (e.g. if the ftp(1) utility's symlink changes, it would be best to also change the ftp.1.gz manpage symlink, wouldn't it?), and a whole lot more. =46rom a user's standpoint, all you have to do is install a package that declares a higher-priority alternative, and update-alternatives switches the symlink behind the scenes (unless you have explicitly specified one of the choices). If you don't like that, run update-alternatives by hand, and your choice is honored even if later a package with an even higher priority is installed. G'luck, Peter --=20 Peter Pentchev roam@space.bg roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Hey, out there - is it *you* reading me, or is it someone else? --XMCwj5IQnwKtuyBG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJMI33CAAoJEGUe77AlJ98TFusP/iN2zNk/bj5DJGwaQKgYfEqq oaLi6cUd/5P5bJPNm+8freXHgU9Hg5VangGOYGyvyXhGDZ9nthCEU+rga1SA5IYR y97XooViSQGS+x8BqqXKuBG/zv4TZ7y4zZOWb6Kaz3QwiwdyG1GO1/OLqG93Sru/ 1i0eWK+oOZUhuQavWu+e83DiDUW0DT3etzTB+GumkXt35z8jAC++xDXZR1IB2bBl 29pLunPrLWz2/u9Pax9EPVUNnEuosgDYAP7qHLjohk+zgClCDQSb23QfFJ50sGE6 SXeEcSQpLIp8BSnffdkGnqBJRpc8g6EcP/KjKf2imHMZFzgaJkM4dLL3cQSx2U2b XR6qemE7kEfeu6zRc7dSOF93+/EZ/siFieLK8nbWGfjVks9kwa9gvIRXS5KTPfHr 8PsB4WKNbpoIUEBTILog7bCZjNKO2klwXT3VbJo0F5UNO8LUab3ZK7tqkeLwEp3j RUeUVkPWdmSi/qhh22E2fECLE6iJgFsu75HeHq6O/F+DvF3ey7TYi5W9EO6m2YYO Tz20U0/tQhXqNi540Du6GoOHKP4XGl5CuD5Kn6/W3MnEZW6DAiSq5OuWDAve5vnh wIJHz40tVCxQEFCyykxsCv3zi7kTnDiEWD33N2HzGuo6Z7fdrZktAW8fa4Q/eKaN S7zFn/85EgtzJotFIxjS =o9DP -----END PGP SIGNATURE----- --XMCwj5IQnwKtuyBG--