From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14413 invoked by alias); 2 Nov 2014 12:44:04 -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 14395 invoked by uid 89); 2 Nov 2014 12:44:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout10.t-online.de Received: from mailout10.t-online.de (HELO mailout10.t-online.de) (194.25.134.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 02 Nov 2014 12:44:01 +0000 Received: from fwd37.aul.t-online.de (fwd37.aul.t-online.de [172.20.27.137]) by mailout10.t-online.de (Postfix) with SMTP id DBC582DA609 for ; Sun, 2 Nov 2014 13:43:57 +0100 (CET) Received: from [192.168.2.108] (GWysDQZJwhTiy3-rPY+7vQL4x9y6HdjW+cxn6WTUglkoYLtN0D-p2cdPK9QH7kHZ3r@[84.180.89.5]) by fwd37.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1XkuVf-2aZBaq0; Sun, 2 Nov 2014 13:43:55 +0100 Message-ID: <5456270A.2050802@t-online.de> Date: Sun, 02 Nov 2014 12:44:00 -0000 From: Christian Franke User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1 MIME-Version: 1.0 To: cygwin-apps@cygwin.com Subject: Re: [ITP] Sendmail 8.14.9 References: <544D33B5.A9000DAF@boland.nl> <544E7BA7.5080405@t-online.de> <5455D76D.D83CC760@boland.nl> In-Reply-To: <5455D76D.D83CC760@boland.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00004.txt.bz2 D. Boland wrote: > Hi Christian, > > Christian Franke wrote: >> D. Boland wrote: >>> Hi group, >>> >>> I intend to package the Cygwin version of Sendmail, version 8.14.9. >>> >>> category: Mail >>> requires: bash libdb4.8 libgcc1 libopenssl100 libsasl2_3 libwrap0 inetutils-server >>> m4 procmail tcp_wrappers cyrus-sasl cygrunsrv >>> sdesc: "The Mail Transfer Agent (mail server)" >>> ldesc: "General purpose internetwork email routing facility that supports many kinds >>> of mail-transfer and delivery methods, including SMTP, SMTPS (STARTTLS), SMTPA >>> (AUTH) used for email transport over the internet." >>> >>> I've implementented the "alternatives" mechanism, so it can be installed alongside >>> other Mail Transfer Agents, such as Exim, Postfix or ssmtp. >> Please handle also the following man pages via "alternatives": >> >> mailq(1), newaliases(1), aliases(5), sendmail(8). >> >> These definitely will be in conflict with upcoming postfix package. Use >> e.g. aliases.sendmail.5.gz as the real filename (as done on Fedora). >> See also https://cygwin.com/ml/cygwin-apps/2014-10/msg00010.html and its >> attachment. > Is it possible for the Postfix package to not override the 'sendmail' man page? That > way one can compare the two programs without having to switch like this: > > /usr/sbin/alternatives --set mta /usr/sbin/postfix > man sendmail > > /usr/sbin/alternatives --set mta /usr/libexec/sendmail > man sendmail Not needed, because both man pages would be still accessible via 'man sendmail.sendmail' and 'man sendmail.postfix'. The /usr/bin/postfix-config script will link sendmail1.gz -> sendmail.postfix.1.gz via alternatives because then the user has then *decided* to run postfix as an MTA. The /etc/postinstall/postfix.sh script will only copy the /etc/defaults/etc/postfix files (no alternatives, no user/group creation, no service installation). >> Further suggestions: >> >> The following should IMO never be done in a postinstall script: >> - Creation of user and group accounts. >> - Installation of services. >> - Setting alternatives to manual mode (/usr/sbin/alternatives --set ...) >> Please consider moving the above to the sendmail-config script. > All steps in postinstall are necessary for running Sendmail. Note that the above steps are re-done on each package update. The installation of sendmail does not imply that the user wants to run it immediately. > The sendmail-config > script contains steps where user-intervention is needed. An MTA typically cannot be run without some manual local configuration. Then it IMO does not make sense to do intrusive changes like creation of Windows user and group creation early in an unattended postinstall script. > I'll move the '--set' instruction to the 'sendmail-config' script. > > I will provide a pre-remove script that rolls back user-creation and > service-installation. In /etc/preremove? Note that this script is also run on each package update. >> - Remove formatted man pages in /usr/share/man/cat*, add troff versions >> in /usr/share/man/man*. > I will comply, but consider the following. Making man pages smear lines of text > across the entire width of the screen makes the text unreadable and the layout ugly, > especially with the omnipresent wide-screen displays nowadays. I disagree. These formatted man page *with embedded terminal escape sequences* are useless for non-terminal output (printing, conversion to pdf, ...). According to Cygwin package search, only the libfltk-devel package provides formatted man pages, but it also includes the troff versions. Christian