Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 18:46:10 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Dag-Erling =?utf-8?B?U23DuHJncmF2?= <des@des.no>
Cc:        Ed Schouten <ed@80386.nl>, Mike Meyer <mwm@mired.org>, freebsd-current@freebsd.org, Andrew Reilly <areilly@bigpond.net.au>, freebsd-hackers@freebsd.org
Subject:   Re: using cupsd instead of base lpr
Message-ID:  <20100624154610.GC18189@straylight.ringlet.net>
In-Reply-To: <86pqzg8rfb.fsf@ds4.des.no>
References:  <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> <20100624092148.GA6948@duncan.reilly.home> <20100624132154.GT2179@hoeg.nl> <20100624094408.68d13c41@bhuda.mired.org> <20100624134550.GU2179@hoeg.nl> <86pqzg8rfb.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <ed@80386.nl> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100624154610.GC18189>