From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 806 invoked by alias); 28 Aug 2014 16:00:16 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 783 invoked by uid 89); 28 Aug 2014 16:00:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Aug 2014 16:00:14 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id E07BC8E0789; Thu, 28 Aug 2014 18:00:11 +0200 (CEST) Date: Thu, 28 Aug 2014 16:00:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [ITP] Sendmail 8.14.9 Message-ID: <20140828160011.GB29332@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <53ED0870.68FBA51E@boland.nl> <20140814202312.GE28562@calimero.vinschen.de> <53F6D89D.121ED683@boland.nl> <20140822084125.GH32314@calimero.vinschen.de> <53F789BC.2E74B69D@boland.nl> <53F7B89E.9030106@cygwin.com> <00ff01cfc134$d47cc2c0$7d764840$@ieee.org> <20140826184940.GA11626@calimero.vinschen.de> <01d701cfc209$d9ed1040$8dc730c0$@ieee.org> <20140828102738.GB30012@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: <20140828102738.GB30012@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2014-08/txt/msg00189.txt.bz2 --K8nIJk4ghYZn606h Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 3765 On Aug 28 12:27, Corinna Vinschen wrote: > On Aug 27 11:16, Pierre A. Humblet wrote: > > > From: Corinna Vinschen > > > Anyway, to have some working example, here's how Fedora does it: > > >=20 > > > The binaries, or symlinks to the actual binaries are called: > > >=20 > > > /usr/sbin/sendmail.sendmail > > > /usr/bin/mailq.sendmail > > > /usr/bin/newaliases.sendmail > > >=20 > > > /usr/sbin/sendmail.exim > > > /usr/bin/mailq.exim > > > /usr/bin/newaliases.exim > > >=20 > > > /usr/sbin/sendmail.postfix > > > /usr/bin/mailq.postfix > > > /usr/bin/newaliases.postfix > > >=20 > > > [analog for other MTAs] > > >=20 > > > Sendmail, mailq, newalias (etc.) are alternatives symlinks: > > >=20 > > > /usr/sbin/sendmail -> /etc/alternatives/mta > > > /usr/bin/mailq -> /etc/alternatives/mta-mailq > > > /usr/bin/newaliases -> /etc/alternatives/mta-newaliases > > >=20 > > > And in /etc/alternatives are the symlinks to the actual binaries, as = configured > > > by postinstall or the user: > > >=20 > > > /etc/alternatives/mta -> /usr/sbin/sendmail.exim > > > /etc/alternatives/mta-mailq -> /usr/bin/mailq.exim > > > /etc/alternatives/mta-newaliases -> /usr/bin/newaliases.exim > > >=20 > > > In fact, there are more than these three symlinks, mainly to rmail an= d to the > > > man pages for the aforementioned binaries. > > >=20 > > > Maybe we can shamelessly borrow this scheme?!? > > >=20 > >=20 > > I am fine with the idea, except that I don=E2=80=99t see the need for t= hings > > such as /usr/sbin/sendmail.exim The executables can be installed in > > the current locations (/usr/bin for exim) and symbolic links such as > > /etc/alternatives/mta can point directly to the executables. >=20 > That's ok, I guess. >=20 > > Also it > > looks like we don't need to use the alternatives package itself, > > although we reuse the /etc/alternatives directory and naming scheme > >=20 > > Below is what I would do in the MTA postinstall and -config files, > > using mailq as an example I am assuming that /usr/bin/mailq will not > > be created by setup. > >=20 > > In the postinstall: > > If /usr/bin/mailq is a symbolic link NOT already pointing to > > /etc/alternatives/mta-mailq { > > create a symbolic link /etc/alternative/mta-mailq pointing t= o /usr/bin/mailq's target > > replace the target of /usr/bin/mailq to /etc/alternatives/mt= a-mailq > > } > > else if /usr/bin/mailq is a file { > > rename /usr/bin/mailq to /usr/bin/mailq.somemta > > create a symbolic link /etc/alternatives/mta-mailq pointing t= o /usr/bin/mailq.somemta > > create a symbolic link /usr/bin/mailq to /etc/alternatives/mt= a-mailq This part won't work as expected btw. If the sendmail package installs the actual binaries under the names reserved for the symlinks to the user-defined MTA tools, then you change the installation. Consider what happens when you have an exim installation and deliberately or accidentally install sendmail: It will overwrite your symlinks and break a perfectly fine exim installation. Same when uninstalling: Assuming you have exim and sendmail installed, with the symlinks pointing to exim, then you uninstall the sendmail package. Setup will remove the symlinks but the "mailq.somemta" binaries will stay in /usr/bin since setup doesn't know about them. I think the right thing to do would be to install either renamed binaries, as Fedora does it, or to keep the names and install the binaries into some different directory (perhaps something like /usr/lib/sendmail/bin) and symlink to this dir.=20=20 Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJT/1ILAAoJEPU2Bp2uRE+goPQQAIw7Uwqf9G5bDr/9XSSwq0E8 4mGq4/GNHjs5ysQmRONEOwpjTuY6GVYDkugH4HiCHe+ypkv+aeMeIZPX/FF3YB+e m5N8fMKDQ3upO86vJoXKcWDOYPSNJpCudXU1ssrxRJfKJi71/hs8qYtdH2LBgLIz ywRcjd2lDqmMypqYbwYc2NHm3iJnyQjh6utEJowN82xDLTWscN9FR9RUEp2BylU+ mfzuHQLj+8Pm8RAbNlHSLoAC7lfgSpDo7euVbE+RR4Ytc59x5V6ZLSrj4S6D+xST nCgLU3vjBJMW5W2CyAZtYLyDmvWXHHOCRkL0RbNNuo+cVFZR7EryVtvHJ4khBWDK EgsEq94TUGg5Ur4m2v2qRFYbil4rxnJd//XXouMWgAX4mtqAJJ1HvijOc1zOrqNU q3IqudHy4J/7X7fgJp0V/pYxbkxsuofkdZEyZHMJdFCQpaLGIAgF5GAjAKYojAm0 YGQGD1eMrJV1rxqerDwu0RAaV5YaGQo28g04whnDUY1Btle7atEJipzd1wko5AxM D4DH9Gotnoqr6kpi2rp0K27j3d2JtPJfFDa2ak4rEZapnNh8JQ0ylDdL00ic0JOS 28/NEo1FNpOzxR5vCV75B9Yq7trmN/qsXBhfxzwuNt+dE+OaHsR/1MrtccAFrt3m zb1PURwGV9IVlCigisRb =Ip9p -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--